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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthorizationData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthorizationToken()A base64-encoded string that contains authorization data for the specified Amazon ECR registry.static AuthorizationData.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpiresAt()The Unix time in seconds and milliseconds when the authorization token expires.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringproxyEndpoint()The registry URL to use for this authorization token in adocker logincommand.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AuthorizationData.Builder>serializableBuilderClass()AuthorizationData.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
authorizationToken
public final String 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
public final Instant 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
public final String 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
public AuthorizationData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
-
builder
public static AuthorizationData.Builder builder()
-
serializableBuilderClass
public static Class<? extends AuthorizationData.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-