ManagedHsmRotationPolicy Class

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

Implements

public final class ManagedHsmRotationPolicy
implements JsonSerializable<ManagedHsmRotationPolicy>

The ManagedHsmRotationPolicy model.

Constructor Summary

Constructor Description
ManagedHsmRotationPolicy()

Creates an instance of ManagedHsmRotationPolicy class.

Method Summary

Modifier and Type Method and Description
ManagedHsmKeyRotationPolicyAttributes attributes()

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

static ManagedHsmRotationPolicy fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmRotationPolicy from the JsonReader.

List<ManagedHsmLifetimeAction> lifetimeActions()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedHsmRotationPolicy withAttributes(ManagedHsmKeyRotationPolicyAttributes attributes)

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

ManagedHsmRotationPolicy withLifetimeActions(List<ManagedHsmLifetimeAction> lifetimeActions)

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

Methods inherited from java.lang.Object

Constructor Details

ManagedHsmRotationPolicy

public ManagedHsmRotationPolicy()

Creates an instance of ManagedHsmRotationPolicy class.

Method Details

attributes

public ManagedHsmKeyRotationPolicyAttributes attributes()

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

Returns:

the attributes value.

fromJson

public static ManagedHsmRotationPolicy fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmRotationPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 ManagedHsmRotationPolicy withAttributes(ManagedHsmKeyRotationPolicyAttributes attributes)

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

Parameters:

attributes - the attributes value to set.

Returns:

the ManagedHsmRotationPolicy object itself.

withLifetimeActions

public ManagedHsmRotationPolicy withLifetimeActions(List lifetimeActions)

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

Parameters:

lifetimeActions - the lifetimeActions value to set.

Returns:

the ManagedHsmRotationPolicy object itself.

Applies to