LifetimeAction Class

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

Implements

public final class LifetimeAction
implements JsonSerializable<LifetimeAction>

The LifetimeAction model.

Constructor Summary

Constructor Description
LifetimeAction()

Creates an instance of LifetimeAction class.

Method Summary

Modifier and Type Method and Description
Action action()

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

static LifetimeAction fromJson(JsonReader jsonReader)

Reads an instance of LifetimeAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Trigger trigger()

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

void validate()

Validates the instance.

LifetimeAction withAction(Action action)

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

LifetimeAction withTrigger(Trigger trigger)

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

Methods inherited from java.lang.Object

Constructor Details

LifetimeAction

public LifetimeAction()

Creates an instance of LifetimeAction class.

Method Details

action

public Action action()

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

Returns:

the action value.

fromJson

public static LifetimeAction fromJson(JsonReader jsonReader)

Reads an instance of LifetimeAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trigger

public Trigger 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 LifetimeAction withAction(Action action)

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

Parameters:

action - the action value to set.

Returns:

the LifetimeAction object itself.

withTrigger

public LifetimeAction withTrigger(Trigger trigger)

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

Parameters:

trigger - the trigger value to set.

Returns:

the LifetimeAction object itself.

Applies to