Class RotationPolicy
java.lang.Object
com.azure.resourcemanager.keyvault.models.RotationPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RotationPolicy>
public final class RotationPolicy
extends Object
implements com.azure.json.JsonSerializable<RotationPolicy>
The RotationPolicy model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the attributes property: The attributes of key rotation policy.static RotationPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RotationPolicy from the JsonReader.Get the lifetimeActions property: The lifetimeActions for key rotation action.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAttributes(KeyRotationPolicyAttributes attributes) Set the attributes property: The attributes of key rotation policy.withLifetimeActions(List<LifetimeAction> lifetimeActions) Set the lifetimeActions property: The lifetimeActions for key rotation action.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
-
RotationPolicy
public RotationPolicy()Creates an instance of RotationPolicy class.
-
-
Method Details
-
attributes
Get the attributes property: The attributes of key rotation policy.- Returns:
- the attributes value.
-
withAttributes
Set the attributes property: The attributes of key rotation policy.- Parameters:
attributes- the attributes value to set.- Returns:
- the RotationPolicy object itself.
-
lifetimeActions
Get the lifetimeActions property: The lifetimeActions for key rotation action.- Returns:
- the lifetimeActions value.
-
withLifetimeActions
Set the lifetimeActions property: The lifetimeActions for key rotation action.- Parameters:
lifetimeActions- the lifetimeActions value to set.- Returns:
- the RotationPolicy 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<RotationPolicy>- Throws:
IOException
-
fromJson
Reads an instance of RotationPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RotationPolicy 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 RotationPolicy.
-