다음을 통해 공유


ManagedHsmLifetimeAction Class

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

Implements

public final class ManagedHsmLifetimeAction
implements JsonSerializable<ManagedHsmLifetimeAction>

The ManagedHsmLifetimeAction model.

Constructor Summary

Constructor Description
ManagedHsmLifetimeAction()

Creates an instance of ManagedHsmLifetimeAction class.

Method Summary

Modifier and Type Method and Description
ManagedHsmAction action()

Get the action property: The action of key rotation policy lifetimeAction.

static ManagedHsmLifetimeAction fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmLifetimeAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ManagedHsmTrigger trigger()

Get the trigger property: The trigger of key rotation policy lifetimeAction.

void validate()

Validates the instance.

ManagedHsmLifetimeAction withAction(ManagedHsmAction action)

Set the action property: The action of key rotation policy lifetimeAction.

ManagedHsmLifetimeAction withTrigger(ManagedHsmTrigger trigger)

Set the trigger property: The trigger of key rotation policy lifetimeAction.

Methods inherited from java.lang.Object

Constructor Details

ManagedHsmLifetimeAction

public ManagedHsmLifetimeAction()

Creates an instance of ManagedHsmLifetimeAction class.

Method Details

action

public ManagedHsmAction action()

Get the action property: The action of key rotation policy lifetimeAction.

Returns:

the action value.

fromJson

public static ManagedHsmLifetimeAction fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmLifetimeAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedHsmLifetimeAction 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 ManagedHsmLifetimeAction.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trigger

public ManagedHsmTrigger trigger()

Get the trigger property: The trigger of key rotation policy lifetimeAction.

Returns:

the trigger value.

validate

public void validate()

Validates the instance.

withAction

public ManagedHsmLifetimeAction withAction(ManagedHsmAction action)

Set the action property: The action of key rotation policy lifetimeAction.

Parameters:

action - the action value to set.

Returns:

the ManagedHsmLifetimeAction object itself.

withTrigger

public ManagedHsmLifetimeAction withTrigger(ManagedHsmTrigger trigger)

Set the trigger property: The trigger of key rotation policy lifetimeAction.

Parameters:

trigger - the trigger value to set.

Returns:

the ManagedHsmLifetimeAction object itself.

Applies to