Class EncryptionProperty

java.lang.Object
com.azure.resourcemanager.containerregistry.models.EncryptionProperty
All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionProperty>

public final class EncryptionProperty extends Object implements com.azure.json.JsonSerializable<EncryptionProperty>
The EncryptionProperty model.
  • Constructor Details

    • EncryptionProperty

      public EncryptionProperty()
      Creates an instance of EncryptionProperty class.
  • Method Details

    • status

      public EncryptionStatus status()
      Get the status property: Indicates whether or not the encryption is enabled for container registry.
      Returns:
      the status value.
    • 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.
    • keyVaultProperties

      public KeyVaultProperties keyVaultProperties()
      Get the keyVaultProperties property: Key vault properties.
      Returns:
      the keyVaultProperties value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EncryptionProperty>
      Throws:
      IOException
    • fromJson

      public static EncryptionProperty fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.