Class ManagedHsmLifetimeAction

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

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

    • ManagedHsmLifetimeAction

      public ManagedHsmLifetimeAction()
      Creates an instance of ManagedHsmLifetimeAction class.
  • Method Details

    • trigger

      public ManagedHsmTrigger trigger()
      Get the trigger property: The trigger of key rotation policy lifetimeAction.
      Returns:
      the trigger value.
    • withTrigger

      public ManagedHsmLifetimeAction withTrigger(ManagedHsmTrigger trigger)
      Set the trigger property: The trigger of key rotation policy lifetimeAction.
      Parameters:
      trigger - the trigger value to set.
      Returns:
      the ManagedHsmLifetimeAction object itself.
    • action

      public ManagedHsmAction action()
      Get the action property: The action of key rotation policy lifetimeAction.
      Returns:
      the action value.
    • withAction

      public ManagedHsmLifetimeAction withAction(ManagedHsmAction action)
      Set the action property: The action of key rotation policy lifetimeAction.
      Parameters:
      action - the action value to set.
      Returns:
      the ManagedHsmLifetimeAction 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<ManagedHsmLifetimeAction>
      Throws:
      IOException
    • fromJson

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