|
8 | 8 |
|
9 | 9 | package com.microsoft.azure.management.storage.v2019_04_01; |
10 | 10 |
|
| 11 | +import com.microsoft.azure.arm.model.HasInner; |
| 12 | +import com.microsoft.azure.arm.resources.models.HasManager; |
| 13 | +import com.microsoft.azure.management.storage.v2019_04_01.implementation.StorageManager; |
| 14 | +import com.microsoft.azure.management.storage.v2019_04_01.implementation.ListContainerItemInner; |
11 | 15 | import org.joda.time.DateTime; |
12 | 16 | import java.util.Map; |
13 | | -import com.fasterxml.jackson.annotation.JsonProperty; |
14 | | -import com.microsoft.rest.serializer.JsonFlatten; |
15 | 17 |
|
16 | 18 | /** |
17 | | - * The blob container properties be listed out. |
| 19 | + * Type representing ListContainerItem. |
18 | 20 | */ |
19 | | -@JsonFlatten |
20 | | -public class ListContainerItem extends AzureEntityResource { |
| 21 | +public interface ListContainerItem extends HasInner<ListContainerItemInner>, HasManager<StorageManager> { |
21 | 22 | /** |
22 | | - * Specifies whether data in the container may be accessed publicly and the |
23 | | - * level of access. Possible values include: 'Container', 'Blob', 'None'. |
| 23 | + * @return the etag value. |
24 | 24 | */ |
25 | | - @JsonProperty(value = "properties.publicAccess") |
26 | | - private PublicAccess publicAccess; |
| 25 | + String etag(); |
27 | 26 |
|
28 | 27 | /** |
29 | | - * Returns the date and time the container was last modified. |
| 28 | + * @return the hasImmutabilityPolicy value. |
30 | 29 | */ |
31 | | - @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) |
32 | | - private DateTime lastModifiedTime; |
| 30 | + Boolean hasImmutabilityPolicy(); |
33 | 31 |
|
34 | 32 | /** |
35 | | - * The lease status of the container. Possible values include: 'Locked', |
36 | | - * 'Unlocked'. |
| 33 | + * @return the hasLegalHold value. |
37 | 34 | */ |
38 | | - @JsonProperty(value = "properties.leaseStatus", access = JsonProperty.Access.WRITE_ONLY) |
39 | | - private LeaseStatus leaseStatus; |
| 35 | + Boolean hasLegalHold(); |
40 | 36 |
|
41 | 37 | /** |
42 | | - * Lease state of the container. Possible values include: 'Available', |
43 | | - * 'Leased', 'Expired', 'Breaking', 'Broken'. |
| 38 | + * @return the id value. |
44 | 39 | */ |
45 | | - @JsonProperty(value = "properties.leaseState", access = JsonProperty.Access.WRITE_ONLY) |
46 | | - private LeaseState leaseState; |
| 40 | + String id(); |
47 | 41 |
|
48 | 42 | /** |
49 | | - * Specifies whether the lease on a container is of infinite or fixed |
50 | | - * duration, only when the container is leased. Possible values include: |
51 | | - * 'Infinite', 'Fixed'. |
| 43 | + * @return the immutabilityPolicy value. |
52 | 44 | */ |
53 | | - @JsonProperty(value = "properties.leaseDuration", access = JsonProperty.Access.WRITE_ONLY) |
54 | | - private LeaseDuration leaseDuration; |
| 45 | + ImmutabilityPolicyProperties immutabilityPolicy(); |
55 | 46 |
|
56 | 47 | /** |
57 | | - * A name-value pair to associate with the container as metadata. |
| 48 | + * @return the lastModifiedTime value. |
58 | 49 | */ |
59 | | - @JsonProperty(value = "properties.metadata") |
60 | | - private Map<String, String> metadata; |
| 50 | + DateTime lastModifiedTime(); |
61 | 51 |
|
62 | 52 | /** |
63 | | - * The ImmutabilityPolicy property of the container. |
| 53 | + * @return the leaseDuration value. |
64 | 54 | */ |
65 | | - @JsonProperty(value = "properties.immutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) |
66 | | - private ImmutabilityPolicyProperties immutabilityPolicy; |
| 55 | + LeaseDuration leaseDuration(); |
67 | 56 |
|
68 | 57 | /** |
69 | | - * The LegalHold property of the container. |
| 58 | + * @return the leaseState value. |
70 | 59 | */ |
71 | | - @JsonProperty(value = "properties.legalHold", access = JsonProperty.Access.WRITE_ONLY) |
72 | | - private LegalHoldProperties legalHold; |
| 60 | + LeaseState leaseState(); |
73 | 61 |
|
74 | 62 | /** |
75 | | - * The hasLegalHold public property is set to true by SRP if there are at |
76 | | - * least one existing tag. The hasLegalHold public property is set to false |
77 | | - * by SRP if all existing legal hold tags are cleared out. There can be a |
78 | | - * maximum of 1000 blob containers with hasLegalHold=true for a given |
79 | | - * account. |
| 63 | + * @return the leaseStatus value. |
80 | 64 | */ |
81 | | - @JsonProperty(value = "properties.hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) |
82 | | - private Boolean hasLegalHold; |
| 65 | + LeaseStatus leaseStatus(); |
83 | 66 |
|
84 | 67 | /** |
85 | | - * The hasImmutabilityPolicy public property is set to true by SRP if |
86 | | - * ImmutabilityPolicy has been created for this container. The |
87 | | - * hasImmutabilityPolicy public property is set to false by SRP if |
88 | | - * ImmutabilityPolicy has not been created for this container. |
| 68 | + * @return the legalHold value. |
89 | 69 | */ |
90 | | - @JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) |
91 | | - private Boolean hasImmutabilityPolicy; |
| 70 | + LegalHoldProperties legalHold(); |
92 | 71 |
|
93 | 72 | /** |
94 | | - * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. |
95 | | - * |
96 | | - * @return the publicAccess value |
| 73 | + * @return the metadata value. |
97 | 74 | */ |
98 | | - public PublicAccess publicAccess() { |
99 | | - return this.publicAccess; |
100 | | - } |
| 75 | + Map<String, String> metadata(); |
101 | 76 |
|
102 | 77 | /** |
103 | | - * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. |
104 | | - * |
105 | | - * @param publicAccess the publicAccess value to set |
106 | | - * @return the ListContainerItem object itself. |
| 78 | + * @return the name value. |
107 | 79 | */ |
108 | | - public ListContainerItem withPublicAccess(PublicAccess publicAccess) { |
109 | | - this.publicAccess = publicAccess; |
110 | | - return this; |
111 | | - } |
| 80 | + String name(); |
112 | 81 |
|
113 | 82 | /** |
114 | | - * Get returns the date and time the container was last modified. |
115 | | - * |
116 | | - * @return the lastModifiedTime value |
| 83 | + * @return the publicAccess value. |
117 | 84 | */ |
118 | | - public DateTime lastModifiedTime() { |
119 | | - return this.lastModifiedTime; |
120 | | - } |
| 85 | + PublicAccess publicAccess(); |
121 | 86 |
|
122 | 87 | /** |
123 | | - * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. |
124 | | - * |
125 | | - * @return the leaseStatus value |
| 88 | + * @return the type value. |
126 | 89 | */ |
127 | | - public LeaseStatus leaseStatus() { |
128 | | - return this.leaseStatus; |
129 | | - } |
130 | | - |
131 | | - /** |
132 | | - * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. |
133 | | - * |
134 | | - * @return the leaseState value |
135 | | - */ |
136 | | - public LeaseState leaseState() { |
137 | | - return this.leaseState; |
138 | | - } |
139 | | - |
140 | | - /** |
141 | | - * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. |
142 | | - * |
143 | | - * @return the leaseDuration value |
144 | | - */ |
145 | | - public LeaseDuration leaseDuration() { |
146 | | - return this.leaseDuration; |
147 | | - } |
148 | | - |
149 | | - /** |
150 | | - * Get a name-value pair to associate with the container as metadata. |
151 | | - * |
152 | | - * @return the metadata value |
153 | | - */ |
154 | | - public Map<String, String> metadata() { |
155 | | - return this.metadata; |
156 | | - } |
157 | | - |
158 | | - /** |
159 | | - * Set a name-value pair to associate with the container as metadata. |
160 | | - * |
161 | | - * @param metadata the metadata value to set |
162 | | - * @return the ListContainerItem object itself. |
163 | | - */ |
164 | | - public ListContainerItem withMetadata(Map<String, String> metadata) { |
165 | | - this.metadata = metadata; |
166 | | - return this; |
167 | | - } |
168 | | - |
169 | | - /** |
170 | | - * Get the ImmutabilityPolicy property of the container. |
171 | | - * |
172 | | - * @return the immutabilityPolicy value |
173 | | - */ |
174 | | - public ImmutabilityPolicyProperties immutabilityPolicy() { |
175 | | - return this.immutabilityPolicy; |
176 | | - } |
177 | | - |
178 | | - /** |
179 | | - * Get the LegalHold property of the container. |
180 | | - * |
181 | | - * @return the legalHold value |
182 | | - */ |
183 | | - public LegalHoldProperties legalHold() { |
184 | | - return this.legalHold; |
185 | | - } |
186 | | - |
187 | | - /** |
188 | | - * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. |
189 | | - * |
190 | | - * @return the hasLegalHold value |
191 | | - */ |
192 | | - public Boolean hasLegalHold() { |
193 | | - return this.hasLegalHold; |
194 | | - } |
195 | | - |
196 | | - /** |
197 | | - * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. |
198 | | - * |
199 | | - * @return the hasImmutabilityPolicy value |
200 | | - */ |
201 | | - public Boolean hasImmutabilityPolicy() { |
202 | | - return this.hasImmutabilityPolicy; |
203 | | - } |
| 90 | + String type(); |
204 | 91 |
|
205 | 92 | } |
0 commit comments