Class AuthorizationData
java.lang.Object
software.amazon.awssdk.services.ecr.model.AuthorizationData
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
@Generated("software.amazon.awssdk:codegen")
public final class AuthorizationData
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
An object representing authorization data for an Amazon ECR registry.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringA base64-encoded string that contains authorization data for the specified Amazon ECR registry.static AuthorizationData.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final InstantThe Unix time in seconds and milliseconds when the authorization token expires.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe registry URL to use for this authorization token in adocker logincommand.static Class<? extends AuthorizationData.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
authorizationToken
A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format
user:passwordfor private registry authentication usingdocker login.- Returns:
- A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the
string is decoded, it is presented in the format
user:passwordfor private registry authentication usingdocker login.
-
expiresAt
The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
- Returns:
- The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
-
proxyEndpoint
The registry URL to use for this authorization token in a
docker logincommand. The Amazon ECR registry URL format ishttps://aws_account_id.dkr.ecr.region.amazonaws.com. For example,https://012345678910.dkr.ecr.us-east-1.amazonaws.com..- Returns:
- The registry URL to use for this authorization token in a
docker logincommand. The Amazon ECR registry URL format ishttps://aws_account_id.dkr.ecr.region.amazonaws.com. For example,https://012345678910.dkr.ecr.us-east-1.amazonaws.com..
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-