Trigger Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.Trigger

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 JsonReader.

String timeAfterCreate()

Get the timeAfterCreate property: The time duration after key creation to rotate the key.

String timeBeforeExpiry()

Get the timeBeforeExpiry property: The time duration before key expiring to rotate or notify.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Trigger withTimeAfterCreate(String timeAfterCreate)

Set the timeAfterCreate property: The time duration after key creation to rotate the key.

Trigger withTimeBeforeExpiry(String timeBeforeExpiry)

Set the timeBeforeExpiry property: The time duration before key expiring to rotate or notify.

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:

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

timeAfterCreate - the timeAfterCreate value to set.

Returns:

the Trigger object itself.

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.

Applies to