Class RegistryAdapter

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

public final class RegistryAdapter extends Object implements com.azure.json.JsonSerializable<RegistryAdapter>
Server farm registry adapter configuration.
  • Constructor Details

    • RegistryAdapter

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

    • registryKey

      public String registryKey()
      Get the registryKey property: Registry key for the adapter.
      Returns:
      the registryKey value.
    • withRegistryKey

      public RegistryAdapter withRegistryKey(String registryKey)
      Set the registryKey property: Registry key for the adapter.
      Parameters:
      registryKey - the registryKey value to set.
      Returns:
      the RegistryAdapter object itself.
    • type

      public RegistryAdapterType type()
      Get the type property: Type of the registry adapter.
      Returns:
      the type value.
    • withType

      public RegistryAdapter withType(RegistryAdapterType type)
      Set the type property: Type of the registry adapter.
      Parameters:
      type - the type value to set.
      Returns:
      the RegistryAdapter object itself.
    • keyVaultSecretReference

      public KeyVaultReferenceWithStatus keyVaultSecretReference()
      Get the keyVaultSecretReference property: Key vault reference to the value that will be placed in the registry location.
      Returns:
      the keyVaultSecretReference value.
    • withKeyVaultSecretReference

      public RegistryAdapter withKeyVaultSecretReference(KeyVaultReferenceWithStatus keyVaultSecretReference)
      Set the keyVaultSecretReference property: Key vault reference to the value that will be placed in the registry location.
      Parameters:
      keyVaultSecretReference - the keyVaultSecretReference value to set.
      Returns:
      the RegistryAdapter 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<RegistryAdapter>
      Throws:
      IOException
    • fromJson

      public static RegistryAdapter fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegistryAdapter from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegistryAdapter 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 RegistryAdapter.