RotationPolicy Class

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

Implements

public final class RotationPolicy
implements JsonSerializable<RotationPolicy>

The RotationPolicy model.

Constructor Summary

Constructor Description
RotationPolicy()

Creates an instance of RotationPolicy class.

Method Summary

Modifier and Type Method and Description
KeyRotationPolicyAttributes attributes()

Get the attributes property: The attributes of key rotation policy.

static RotationPolicy fromJson(JsonReader jsonReader)

Reads an instance of RotationPolicy from the JsonReader.

List<LifetimeAction> lifetimeActions()

Get the lifetimeActions property: The lifetimeActions for key rotation action.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RotationPolicy withAttributes(KeyRotationPolicyAttributes attributes)

Set the attributes property: The attributes of key rotation policy.

RotationPolicy withLifetimeActions(List<LifetimeAction> lifetimeActions)

Set the lifetimeActions property: The lifetimeActions for key rotation action.

Methods inherited from java.lang.Object

Constructor Details

RotationPolicy

public RotationPolicy()

Creates an instance of RotationPolicy class.

Method Details

attributes

public KeyRotationPolicyAttributes attributes()

Get the attributes property: The attributes of key rotation policy.

Returns:

the attributes value.

fromJson

public static RotationPolicy fromJson(JsonReader jsonReader)

Reads an instance of RotationPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lifetimeActions

public List lifetimeActions()

Get the lifetimeActions property: The lifetimeActions for key rotation action.

Returns:

the lifetimeActions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAttributes

public RotationPolicy withAttributes(KeyRotationPolicyAttributes attributes)

Set the attributes property: The attributes of key rotation policy.

Parameters:

attributes - the attributes value to set.

Returns:

the RotationPolicy object itself.

withLifetimeActions

public RotationPolicy withLifetimeActions(List lifetimeActions)

Set the lifetimeActions property: The lifetimeActions for key rotation action.

Parameters:

lifetimeActions - the lifetimeActions value to set.

Returns:

the RotationPolicy object itself.

Applies to