Class Trigger
java.lang.Object
com.azure.resourcemanager.keyvault.models.Trigger
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Trigger>
The Trigger model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerfromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
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
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Trigger>- Throws:
IOException
-
fromJson
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.
-