Class CredentialSetUpdateProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.CredentialSetUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CredentialSetUpdateProperties>
public final class CredentialSetUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<CredentialSetUpdateProperties>
The parameters for updating credential set properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CredentialSetUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authCredentials property: List of authentication credentials stored for an upstream.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CredentialSetUpdateProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthCredentials(List<AuthCredential> authCredentials) Set the authCredentials property: List of authentication credentials stored for an upstream.Methods inherited from class java.lang.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
-
CredentialSetUpdateProperties
public CredentialSetUpdateProperties()Creates an instance of CredentialSetUpdateProperties class.
-
-
Method Details
-
authCredentials
Get the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.- Returns:
- the authCredentials value.
-
withAuthCredentials
Set the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.- Parameters:
authCredentials- the authCredentials value to set.- Returns:
- the CredentialSetUpdateProperties 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<CredentialSetUpdateProperties>- Throws:
IOException
-
fromJson
public static CredentialSetUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CredentialSetUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CredentialSetUpdateProperties 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 CredentialSetUpdateProperties.
-