Class RegistryInfo
java.lang.Object
com.azure.resourcemanager.appcontainers.models.RegistryInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryInfo>
public final class RegistryInfo
extends Object
implements com.azure.json.JsonSerializable<RegistryInfo>
Container App registry information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryInfo from the JsonReader.Get the registryPassword property: registry secret.Get the registryUrl property: registry server Url.Get the registryUsername property: registry username.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withRegistryPassword
(String registryPassword) Set the registryPassword property: registry secret.withRegistryUrl
(String registryUrl) Set the registryUrl property: registry server Url.withRegistryUsername
(String registryUsername) Set the registryUsername property: registry username.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RegistryInfo
public RegistryInfo()Creates an instance of RegistryInfo class.
-
-
Method Details
-
registryUrl
Get the registryUrl property: registry server Url.- Returns:
- the registryUrl value.
-
withRegistryUrl
Set the registryUrl property: registry server Url.- Parameters:
registryUrl
- the registryUrl value to set.- Returns:
- the RegistryInfo object itself.
-
registryUsername
Get the registryUsername property: registry username.- Returns:
- the registryUsername value.
-
withRegistryUsername
Set the registryUsername property: registry username.- Parameters:
registryUsername
- the registryUsername value to set.- Returns:
- the RegistryInfo object itself.
-
registryPassword
Get the registryPassword property: registry secret.- Returns:
- the registryPassword value.
-
withRegistryPassword
Set the registryPassword property: registry secret.- Parameters:
registryPassword
- the registryPassword value to set.- Returns:
- the RegistryInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RegistryInfo>
- Throws:
IOException
-
fromJson
Reads an instance of RegistryInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RegistryInfo 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 RegistryInfo.
-