/
StorageAccountUpdateParametersInner.java
166 lines (148 loc) · 4.63 KB
/
StorageAccountUpdateParametersInner.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.storage.implementation;
import com.microsoft.azure.management.storage.Sku;
import java.util.Map;
import com.microsoft.azure.management.storage.CustomDomain;
import com.microsoft.azure.management.storage.Encryption;
import com.microsoft.azure.management.storage.AccessTier;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* The parameters that can be provided when updating the storage account
* properties.
*/
@JsonFlatten
public class StorageAccountUpdateParametersInner {
/**
* Gets or sets the SKU name. Note that the SKU name cannot be updated to
* Standard_ZRS or Premium_LRS, nor can accounts of those sku names be
* updated to any other value.
*/
@JsonProperty(value = "sku")
private Sku sku;
/**
* Gets or sets a list of key value pairs that describe the resource. These
* tags can be used in viewing and grouping this resource (across resource
* groups). A maximum of 15 tags can be provided for a resource. Each tag
* must have a key no greater in length than 128 characters and a value no
* greater in length than 256 characters.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;
/**
* Custom domain assigned to the storage account by the user. Name is the
* CNAME source. Only one custom domain is supported per storage account at
* this time. To clear the existing custom domain, use an empty string for
* the custom domain name property.
*/
@JsonProperty(value = "properties.customDomain")
private CustomDomain customDomain;
/**
* Provides the encryption settings on the account. The default setting is
* unencrypted.
*/
@JsonProperty(value = "properties.encryption")
private Encryption encryption;
/**
* Required for storage accounts where kind = BlobStorage. The access tier
* used for billing. Possible values include: 'Hot', 'Cool'.
*/
@JsonProperty(value = "properties.accessTier")
private AccessTier accessTier;
/**
* Get the sku value.
*
* @return the sku value
*/
public Sku sku() {
return this.sku;
}
/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the StorageAccountUpdateParametersInner object itself.
*/
public StorageAccountUpdateParametersInner withSku(Sku sku) {
this.sku = sku;
return this;
}
/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}
/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the StorageAccountUpdateParametersInner object itself.
*/
public StorageAccountUpdateParametersInner withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
/**
* Get the customDomain value.
*
* @return the customDomain value
*/
public CustomDomain customDomain() {
return this.customDomain;
}
/**
* Set the customDomain value.
*
* @param customDomain the customDomain value to set
* @return the StorageAccountUpdateParametersInner object itself.
*/
public StorageAccountUpdateParametersInner withCustomDomain(CustomDomain customDomain) {
this.customDomain = customDomain;
return this;
}
/**
* Get the encryption value.
*
* @return the encryption value
*/
public Encryption encryption() {
return this.encryption;
}
/**
* Set the encryption value.
*
* @param encryption the encryption value to set
* @return the StorageAccountUpdateParametersInner object itself.
*/
public StorageAccountUpdateParametersInner withEncryption(Encryption encryption) {
this.encryption = encryption;
return this;
}
/**
* Get the accessTier value.
*
* @return the accessTier value
*/
public AccessTier accessTier() {
return this.accessTier;
}
/**
* Set the accessTier value.
*
* @param accessTier the accessTier value to set
* @return the StorageAccountUpdateParametersInner object itself.
*/
public StorageAccountUpdateParametersInner withAccessTier(AccessTier accessTier) {
this.accessTier = accessTier;
return this;
}
}