Class CredentialSetProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.CredentialSetProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CredentialSetProperties>
public final class CredentialSetProperties
extends Object
implements com.azure.json.JsonSerializable<CredentialSetProperties>
The properties of a credential set resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CredentialSetProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authCredentials property: List of authentication credentials stored for an upstream.Get the creationDate property: The creation date of credential store resource.static CredentialSetPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CredentialSetProperties from the JsonReader.Get the loginServer property: The credentials are stored for this upstream or login server.Get the provisioningState property: Provisioning state of 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.withLoginServer(String loginServer) Set the loginServer property: The credentials are stored for this upstream or login server.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
-
CredentialSetProperties
public CredentialSetProperties()Creates an instance of CredentialSetProperties class.
-
-
Method Details
-
loginServer
Get the loginServer property: The credentials are stored for this upstream or login server.- Returns:
- the loginServer value.
-
withLoginServer
Set the loginServer property: The credentials are stored for this upstream or login server.- Parameters:
loginServer- the loginServer value to set.- Returns:
- the CredentialSetProperties 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 CredentialSetProperties object itself.
-
creationDate
Get the creationDate property: The creation date of credential store resource.- Returns:
- the creationDate value.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CredentialSetProperties>- Throws:
IOException
-
fromJson
public static CredentialSetProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CredentialSetProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CredentialSetProperties 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 CredentialSetProperties.
-