다음을 통해 공유


ManagedHsmTrigger Class

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

Implements

public final class ManagedHsmTrigger
implements JsonSerializable<ManagedHsmTrigger>

The ManagedHsmTrigger model.

Constructor Summary

Constructor Description
ManagedHsmTrigger()

Creates an instance of ManagedHsmTrigger class.

Method Summary

Modifier and Type Method and Description
static ManagedHsmTrigger fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmTrigger 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.

ManagedHsmTrigger withTimeAfterCreate(String timeAfterCreate)

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

ManagedHsmTrigger 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

ManagedHsmTrigger

public ManagedHsmTrigger()

Creates an instance of ManagedHsmTrigger class.

Method Details

fromJson

public static ManagedHsmTrigger fromJson(JsonReader jsonReader)

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.

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

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.

Applies to