Class ManagedHsmRotationPolicy

java.lang.Object
com.azure.resourcemanager.keyvault.models.ManagedHsmRotationPolicy
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedHsmRotationPolicy>

public final class ManagedHsmRotationPolicy extends Object implements com.azure.json.JsonSerializable<ManagedHsmRotationPolicy>
The ManagedHsmRotationPolicy model.
  • Constructor Details

    • ManagedHsmRotationPolicy

      public ManagedHsmRotationPolicy()
      Creates an instance of ManagedHsmRotationPolicy 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 ManagedHsmRotationPolicy object itself.
    • lifetimeActions

      public List<ManagedHsmLifetimeAction> lifetimeActions()
      Get the lifetimeActions property: The lifetimeActions for key rotation action.
      Returns:
      the lifetimeActions value.
    • withLifetimeActions

      public ManagedHsmRotationPolicy withLifetimeActions(List<ManagedHsmLifetimeAction> lifetimeActions)
      Set the lifetimeActions property: The lifetimeActions for key rotation action.
      Parameters:
      lifetimeActions - the lifetimeActions value to set.
      Returns:
      the ManagedHsmRotationPolicy object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedHsmRotationPolicy>
      Throws:
      IOException
    • fromJson

      public static ManagedHsmRotationPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedHsmRotationPolicy from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedHsmRotationPolicy 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 ManagedHsmRotationPolicy.