@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizationData extends Object implements Serializable, Cloneable, StructuredPojo
An authorization token data object that corresponds to a public registry.
| Constructor and Description |
|---|
AuthorizationData() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationData |
clone() |
boolean |
equals(Object obj) |
String |
getAuthorizationToken()
A base64-encoded string that contains authorization data for a public Amazon ECR registry.
|
Date |
getExpiresAt()
The Unix time in seconds and milliseconds when the authorization token expires.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAuthorizationToken(String authorizationToken)
A base64-encoded string that contains authorization data for a public Amazon ECR registry.
|
void |
setExpiresAt(Date expiresAt)
The Unix time in seconds and milliseconds when the authorization token expires.
|
String |
toString()
Returns a string representation of this object.
|
AuthorizationData |
withAuthorizationToken(String authorizationToken)
A base64-encoded string that contains authorization data for a public Amazon ECR registry.
|
AuthorizationData |
withExpiresAt(Date expiresAt)
The Unix time in seconds and milliseconds when the authorization token expires.
|
public void setAuthorizationToken(String authorizationToken)
A base64-encoded string that contains authorization data for a public Amazon ECR registry. When the string is
decoded, it's presented in the format user:password for public registry authentication using
docker login.
authorizationToken - A base64-encoded string that contains authorization data for a public Amazon ECR registry. When the string
is decoded, it's presented in the format user:password for public registry authentication
using docker login.public String getAuthorizationToken()
A base64-encoded string that contains authorization data for a public Amazon ECR registry. When the string is
decoded, it's presented in the format user:password for public registry authentication using
docker login.
user:password for public registry
authentication using docker login.public AuthorizationData withAuthorizationToken(String authorizationToken)
A base64-encoded string that contains authorization data for a public Amazon ECR registry. When the string is
decoded, it's presented in the format user:password for public registry authentication using
docker login.
authorizationToken - A base64-encoded string that contains authorization data for a public Amazon ECR registry. When the string
is decoded, it's presented in the format user:password for public registry authentication
using docker login.public void setExpiresAt(Date expiresAt)
The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
expiresAt - The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are
valid for 12 hours.public Date getExpiresAt()
The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
public AuthorizationData withExpiresAt(Date expiresAt)
The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
expiresAt - The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are
valid for 12 hours.public String toString()
toString in class ObjectObject.toString()public AuthorizationData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.