Class ManagedHsmKeyRotationPolicyAttributes
java.lang.Object
com.azure.resourcemanager.keyvault.models.ManagedHsmKeyRotationPolicyAttributes
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedHsmKeyRotationPolicyAttributes>
public final class ManagedHsmKeyRotationPolicyAttributes
extends Object
implements com.azure.json.JsonSerializable<ManagedHsmKeyRotationPolicyAttributes>
The ManagedHsmKeyRotationPolicyAttributes model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedHsmKeyRotationPolicyAttributes class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.Get the expiryTime property: The expiration time for the new key version.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedHsmKeyRotationPolicyAttributes from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) updated()Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.voidvalidate()Validates the instance.withExpiryTime(String expiryTime) Set the expiryTime property: The expiration time for the new key version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedHsmKeyRotationPolicyAttributes
public ManagedHsmKeyRotationPolicyAttributes()Creates an instance of ManagedHsmKeyRotationPolicyAttributes class.
-
-
Method Details
-
created
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.- Returns:
- the created value.
-
updated
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.- Returns:
- the updated value.
-
expiryTime
Get the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.- Returns:
- the expiryTime value.
-
withExpiryTime
Set the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.- Parameters:
expiryTime- the expiryTime value to set.- Returns:
- the ManagedHsmKeyRotationPolicyAttributes object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedHsmKeyRotationPolicyAttributes>- Throws:
IOException
-
fromJson
public static ManagedHsmKeyRotationPolicyAttributes fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedHsmKeyRotationPolicyAttributes from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedHsmKeyRotationPolicyAttributes if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedHsmKeyRotationPolicyAttributes.
-