KeyRotationPolicyAttributes Class

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

Implements

public final class KeyRotationPolicyAttributes
implements JsonSerializable<KeyRotationPolicyAttributes>

The KeyRotationPolicyAttributes model.

Constructor Summary

Constructor Description
KeyRotationPolicyAttributes()

Creates an instance of KeyRotationPolicyAttributes class.

Method Summary

Modifier and Type Method and Description
Long created()

Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.

String expiryTime()

Get the expiryTime property: The expiration time for the new key version.

static KeyRotationPolicyAttributes fromJson(JsonReader jsonReader)

Reads an instance of KeyRotationPolicyAttributes from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Long updated()

Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.

void validate()

Validates the instance.

KeyRotationPolicyAttributes withExpiryTime(String expiryTime)

Set the expiryTime property: The expiration time for the new key version.

Methods inherited from java.lang.Object

Constructor Details

KeyRotationPolicyAttributes

public KeyRotationPolicyAttributes()

Creates an instance of KeyRotationPolicyAttributes class.

Method Details

created

public Long created()

Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.

Returns:

the created value.

expiryTime

public String expiryTime()

Get the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.

Returns:

the expiryTime value.

fromJson

public static KeyRotationPolicyAttributes fromJson(JsonReader jsonReader)

Reads an instance of KeyRotationPolicyAttributes from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updated

public Long updated()

Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.

Returns:

the updated value.

validate

public void validate()

Validates the instance.

withExpiryTime

public KeyRotationPolicyAttributes withExpiryTime(String expiryTime)

Set the expiryTime property: The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.

Parameters:

expiryTime - the expiryTime value to set.

Returns:

the KeyRotationPolicyAttributes object itself.

Applies to