@Generated(value="software.amazon.awssdk:codegen") public class AuthorizationData extends Object implements StructuredPojo, ToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
An object representing authorization data for an Amazon ECR registry.
Modifier and Type | Class and Description |
---|---|
static interface |
AuthorizationData.Builder |
Modifier and Type | Method and Description |
---|---|
String |
authorizationToken()
A base64-encoded string that contains authorization data for the specified Amazon ECR registry.
|
static AuthorizationData.Builder |
builder() |
boolean |
equals(Object obj) |
Instant |
expiresAt()
The Unix time in seconds and milliseconds when the authorization token expires.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
proxyEndpoint()
The registry URL to use for this authorization token in a
docker login command. |
static Class<? extends AuthorizationData.Builder> |
serializableBuilderClass() |
AuthorizationData.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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:password
for private registry authentication using
docker login
.
user:password
for private registry
authentication using docker login
.public Instant expiresAt()
The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
public String proxyEndpoint()
The registry URL to use for this authorization token in a docker login
command. The Amazon ECR
registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com
. For example,
https://012345678910.dkr.ecr.us-east-1.amazonaws.com
..
docker login
command. The Amazon
ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com
. For example,
https://012345678910.dkr.ecr.us-east-1.amazonaws.com
..public AuthorizationData.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AuthorizationData.Builder,AuthorizationData>
public static AuthorizationData.Builder builder()
public static Class<? extends AuthorizationData.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.