Action Class

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

Implements

public final class Action
implements JsonSerializable<Action>

The Action model.

Constructor Summary

Constructor Description
Action()

Creates an instance of Action class.

Method Summary

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

Reads an instance of Action from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
KeyRotationPolicyActionType type()

Get the type property: The type of action.

void validate()

Validates the instance.

Action withType(KeyRotationPolicyActionType type)

Set the type property: The type of action.

Methods inherited from java.lang.Object

Constructor Details

Action

public Action()

Creates an instance of Action class.

Method Details

fromJson

public static Action fromJson(JsonReader jsonReader)

Reads an instance of Action from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public KeyRotationPolicyActionType type()

Get the type property: The type of action.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public Action withType(KeyRotationPolicyActionType type)

Set the type property: The type of action.

Parameters:

type - the type value to set.

Returns:

the Action object itself.

Applies to