Class LifetimeAction

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

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

    Constructors
    Constructor
    Description
    Creates an instance of LifetimeAction class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the action property: The action of key rotation policy lifetimeAction.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LifetimeAction from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the trigger property: The trigger of key rotation policy lifetimeAction.
    void
    Validates the instance.
    Set the action property: The action of key rotation policy lifetimeAction.
    Set the trigger property: The trigger of key rotation policy lifetimeAction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • LifetimeAction

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

    • trigger

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

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

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

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

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