KeyPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. KeyPolicy
- com.
Implements
public final class KeyPolicy
implements JsonSerializable<KeyPolicy>
KeyPolicy assigned to the storage account.
Constructor Summary
Constructor | Description |
---|---|
KeyPolicy() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
int |
keyExpirationPeriodInDays()
Get the key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
KeyPolicy
public KeyPolicy()
Creates an instance of KeyPolicy class.
Method Details
fromJson
public static KeyPolicy fromJson(JsonReader jsonReader)
Reads an instance of KeyPolicy from the JsonReader.
Parameters:
Returns:
Throws:
keyExpirationPeriodInDays
public int keyExpirationPeriodInDays()
Get the keyExpirationPeriodInDays property: The key expiration period in days.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeyExpirationPeriodInDays
public KeyPolicy withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)
Set the keyExpirationPeriodInDays property: The key expiration period in days.
Parameters:
Returns:
Applies to
Azure SDK for Java