Trigger Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. Trigger
- com.
Implements
public final class Trigger
implements JsonSerializable<Trigger>
The Trigger model.
Constructor Summary
Constructor | Description |
---|---|
Trigger() |
Creates an instance of Trigger class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Trigger |
fromJson(JsonReader jsonReader)
Reads an instance of Trigger from the Json |
String |
timeAfterCreate()
Get the time |
String |
timeBeforeExpiry()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Trigger |
withTimeAfterCreate(String timeAfterCreate)
Set the time |
Trigger |
withTimeBeforeExpiry(String timeBeforeExpiry)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
Trigger
public Trigger()
Creates an instance of Trigger class.
Method Details
fromJson
public static Trigger fromJson(JsonReader jsonReader)
Reads an instance of Trigger from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java