Class CredentialSetUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.CredentialSetUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CredentialSetUpdateParameters>
public final class CredentialSetUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<CredentialSetUpdateParameters>
The parameters for updating a credential set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CredentialSetUpdateParameters 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 CredentialSetUpdateParameters from the JsonReader.identity()Get the identity property: Identities associated with the resource.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.withIdentity(IdentityProperties identity) Set the identity property: Identities associated with the resource.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
-
CredentialSetUpdateParameters
public CredentialSetUpdateParameters()Creates an instance of CredentialSetUpdateParameters class.
-
-
Method Details
-
identity
Get the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.- Parameters:
identity- the identity value to set.- Returns:
- the CredentialSetUpdateParameters object itself.
-
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 CredentialSetUpdateParameters 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<CredentialSetUpdateParameters>- Throws:
IOException
-
fromJson
public static CredentialSetUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CredentialSetUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CredentialSetUpdateParameters 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 CredentialSetUpdateParameters.
-