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

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

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

    Modifier and Type
    Method
    Description
    static Trigger
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Trigger from the JsonReader.
    Get the timeAfterCreate property: The time duration after key creation to rotate the key.
    Get the timeBeforeExpiry property: The time duration before key expiring to rotate or notify.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withTimeAfterCreate(String timeAfterCreate)
    Set the timeAfterCreate property: The time duration after key creation to rotate the key.
    withTimeBeforeExpiry(String timeBeforeExpiry)
    Set the timeBeforeExpiry property: The time duration before key expiring to rotate or notify.

    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

    • Trigger

      public Trigger()
      Creates an instance of Trigger 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 Trigger 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 Trigger 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 Trigger 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 Trigger 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<Trigger>
      Throws:
      IOException
    • fromJson

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