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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryAdapterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryAdapter from the JsonReader.Get the keyVaultSecretReference property: Key vault reference to the value that will be placed in the registry location.Get the registryKey property: Registry key for the adapter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the registry adapter.voidvalidate()Validates the instance.withKeyVaultSecretReference(KeyVaultReferenceWithStatus keyVaultSecretReference) Set the keyVaultSecretReference property: Key vault reference to the value that will be placed in the registry location.withRegistryKey(String registryKey) Set the registryKey property: Registry key for the adapter.withType(RegistryAdapterType type) Set the type property: Type of the registry adapter.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RegistryAdapter
public RegistryAdapter()Creates an instance of RegistryAdapter class.
-
-
Method Details
-
registryKey
Get the registryKey property: Registry key for the adapter.- Returns:
- the registryKey value.
-
withRegistryKey
Set the registryKey property: Registry key for the adapter.- Parameters:
registryKey- the registryKey value to set.- Returns:
- the RegistryAdapter object itself.
-
type
Get the type property: Type of the registry adapter.- Returns:
- the type value.
-
withType
Set the type property: Type of the registry adapter.- Parameters:
type- the type value to set.- Returns:
- the RegistryAdapter object itself.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RegistryAdapter>- Throws:
IOException
-
fromJson
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.
-