Class AuthInfoUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.AuthInfoUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthInfoUpdateParameters>
public final class AuthInfoUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<AuthInfoUpdateParameters>
The authorization properties for accessing the source code repository.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthInfoUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the expiresIn property: Time in seconds that the token remains valid.static AuthInfoUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthInfoUpdateParameters from the JsonReader.Get the refreshToken property: The refresh token used to refresh the access token.scope()Get the scope property: The scope of the access token.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) token()Get the token property: The access token used to access the source control provider.Get the tokenType property: The type of Auth token.voidvalidate()Validates the instance.withExpiresIn(Integer expiresIn) Set the expiresIn property: Time in seconds that the token remains valid.withRefreshToken(String refreshToken) Set the refreshToken property: The refresh token used to refresh the access token.Set the scope property: The scope of the access token.Set the token property: The access token used to access the source control provider.withTokenType(TokenType tokenType) Set the tokenType property: The type of Auth token.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
-
AuthInfoUpdateParameters
public AuthInfoUpdateParameters()Creates an instance of AuthInfoUpdateParameters class.
-
-
Method Details
-
tokenType
Get the tokenType property: The type of Auth token.- Returns:
- the tokenType value.
-
withTokenType
Set the tokenType property: The type of Auth token.- Parameters:
tokenType- the tokenType value to set.- Returns:
- the AuthInfoUpdateParameters object itself.
-
token
Get the token property: The access token used to access the source control provider.- Returns:
- the token value.
-
withToken
Set the token property: The access token used to access the source control provider.- Parameters:
token- the token value to set.- Returns:
- the AuthInfoUpdateParameters object itself.
-
refreshToken
Get the refreshToken property: The refresh token used to refresh the access token.- Returns:
- the refreshToken value.
-
withRefreshToken
Set the refreshToken property: The refresh token used to refresh the access token.- Parameters:
refreshToken- the refreshToken value to set.- Returns:
- the AuthInfoUpdateParameters object itself.
-
scope
Get the scope property: The scope of the access token.- Returns:
- the scope value.
-
withScope
Set the scope property: The scope of the access token.- Parameters:
scope- the scope value to set.- Returns:
- the AuthInfoUpdateParameters object itself.
-
expiresIn
Get the expiresIn property: Time in seconds that the token remains valid.- Returns:
- the expiresIn value.
-
withExpiresIn
Set the expiresIn property: Time in seconds that the token remains valid.- Parameters:
expiresIn- the expiresIn value to set.- Returns:
- the AuthInfoUpdateParameters 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<AuthInfoUpdateParameters>- Throws:
IOException
-
fromJson
public static AuthInfoUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthInfoUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthInfoUpdateParameters 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 AuthInfoUpdateParameters.
-