EncryptionProperty Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.EncryptionProperty

Implements

public final class EncryptionProperty
implements JsonSerializable<EncryptionProperty>

The EncryptionProperty model.

Constructor Summary

Constructor Description
EncryptionProperty()

Creates an instance of EncryptionProperty class.

Method Summary

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

Reads an instance of EncryptionProperty from the JsonReader.

KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key vault properties.

EncryptionStatus status()

Get the status property: Indicates whether or not the encryption is enabled for container registry.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionProperty withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key vault properties.

EncryptionProperty withStatus(EncryptionStatus status)

Set the status property: Indicates whether or not the encryption is enabled for container registry.

Methods inherited from java.lang.Object

Constructor Details

EncryptionProperty

public EncryptionProperty()

Creates an instance of EncryptionProperty class.

Method Details

fromJson

public static EncryptionProperty fromJson(JsonReader jsonReader)

Reads an instance of EncryptionProperty from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyVaultProperties

public KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key vault properties.

Returns:

the keyVaultProperties value.

status

public EncryptionStatus status()

Get the status property: Indicates whether or not the encryption is enabled for container registry.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyVaultProperties

public EncryptionProperty withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key vault properties.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the EncryptionProperty object itself.

withStatus

public EncryptionProperty withStatus(EncryptionStatus status)

Set the status property: Indicates whether or not the encryption is enabled for container registry.

Parameters:

status - the status value to set.

Returns:

the EncryptionProperty object itself.

Applies to