KeyRotationPolicyAttributes Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. KeyRotationPolicyAttributes
- com.
Implements
public final class KeyRotationPolicyAttributes
implements JsonSerializable<KeyRotationPolicyAttributes>
The KeyRotationPolicyAttributes model.
Constructor Summary
Constructor | Description |
---|---|
KeyRotationPolicyAttributes() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z. |
String |
expiryTime()
Get the expiry |
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
Json |
toJson(JsonWriter jsonWriter) |
Long |
updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z. |
void |
validate()
Validates the instance. |
Key |
withExpiryTime(String expiryTime)
Set the expiry |
Methods inherited from java.lang.Object
Constructor Details
KeyRotationPolicyAttributes
public KeyRotationPolicyAttributes()
Creates an instance of KeyRotationPolicyAttributes class.
Method Details
created
public Long created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.
Returns:
expiryTime
public String expiryTime()
Get the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
Returns:
fromJson
public static KeyRotationPolicyAttributes fromJson(JsonReader jsonReader)
Reads an instance of KeyRotationPolicyAttributes from the JsonReader.
Parameters:
Returns:
Throws:
toJson
updated
public Long updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.
Returns:
validate
public void validate()
Validates the instance.
withExpiryTime
public KeyRotationPolicyAttributes withExpiryTime(String expiryTime)
Set the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
Parameters:
Returns:
Applies to
Azure SDK for Java