Class ManagedHsmTrigger

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

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

    • ManagedHsmTrigger

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

    • timeAfterCreate

      public String timeAfterCreate()
      Get the timeAfterCreate property: The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
      Returns:
      the timeAfterCreate value.
    • withTimeAfterCreate

      public ManagedHsmTrigger withTimeAfterCreate(String timeAfterCreate)
      Set the timeAfterCreate property: The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
      Parameters:
      timeAfterCreate - the timeAfterCreate value to set.
      Returns:
      the ManagedHsmTrigger object itself.
    • timeBeforeExpiry

      public String timeBeforeExpiry()
      Get the timeBeforeExpiry property: The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
      Returns:
      the timeBeforeExpiry value.
    • withTimeBeforeExpiry

      public ManagedHsmTrigger withTimeBeforeExpiry(String timeBeforeExpiry)
      Set the timeBeforeExpiry property: The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
      Parameters:
      timeBeforeExpiry - the timeBeforeExpiry value to set.
      Returns:
      the ManagedHsmTrigger 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<ManagedHsmTrigger>
      Throws:
      IOException
    • fromJson

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