|
18 | 18 | package org.apache.cloudstack.api.response; |
19 | 19 |
|
20 | 20 | import java.util.Date; |
21 | | - |
22 | | -import com.google.gson.annotations.SerializedName; |
| 21 | +import java.util.LinkedHashSet; |
| 22 | +import java.util.Set; |
23 | 23 |
|
24 | 24 | import org.apache.cloudstack.api.ApiConstants; |
25 | | -import org.apache.cloudstack.api.BaseResponse; |
| 25 | +import org.apache.cloudstack.api.BaseResponseWithTagInformation; |
26 | 26 | import org.apache.cloudstack.api.EntityReference; |
27 | 27 |
|
28 | 28 | import com.cloud.serializer.Param; |
29 | 29 | import com.cloud.vm.snapshot.VMSnapshot; |
| 30 | +import com.google.gson.annotations.SerializedName; |
30 | 31 |
|
31 | 32 | @EntityReference(value = VMSnapshot.class) |
32 | | -public class VMSnapshotResponse extends BaseResponse implements ControlledEntityResponse { |
| 33 | +public class VMSnapshotResponse extends BaseResponseWithTagInformation implements ControlledEntityResponse { |
33 | 34 |
|
34 | 35 | @SerializedName(ApiConstants.ID) |
35 | 36 | @Param(description = "the ID of the vm snapshot") |
@@ -99,6 +100,10 @@ public class VMSnapshotResponse extends BaseResponse implements ControlledEntity |
99 | 100 | @Param(description = "the domain associated with the disk volume") |
100 | 101 | private String domainName; |
101 | 102 |
|
| 103 | + public VMSnapshotResponse() { |
| 104 | + tags = new LinkedHashSet<ResourceTagResponse>(); |
| 105 | + } |
| 106 | + |
102 | 107 | @Override |
103 | 108 | public String getObjectId() { |
104 | 109 | return getId(); |
@@ -226,6 +231,9 @@ public void setDomainId(String domainId) { |
226 | 231 | @Override |
227 | 232 | public void setDomainName(String domainName) { |
228 | 233 | this.domainName = domainName; |
| 234 | + } |
229 | 235 |
|
| 236 | + public void setTags(Set<ResourceTagResponse> tags) { |
| 237 | + this.tags = tags; |
230 | 238 | } |
231 | 239 | } |
0 commit comments