@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegistryCredential extends Object implements Serializable, Cloneable, StructuredPojo
Information about credentials that provide access to a private Docker registry. When this is set:
imagePullCredentialsType must be set to SERVICE_ROLE.
images cannot be curated or an Amazon ECR image.
For more information, see Private Registry with AWS Secrets Manager Sample for AWS CodeBuild.
| Constructor and Description |
|---|
RegistryCredential() |
| Modifier and Type | Method and Description |
|---|---|
RegistryCredential |
clone() |
boolean |
equals(Object obj) |
String |
getCredential()
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
|
String |
getCredentialProvider()
The service that created the credentials to access a private Docker registry.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCredential(String credential)
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
|
void |
setCredentialProvider(String credentialProvider)
The service that created the credentials to access a private Docker registry.
|
String |
toString()
Returns a string representation of this object.
|
RegistryCredential |
withCredential(String credential)
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
|
RegistryCredential |
withCredentialProvider(CredentialProviderType credentialProvider)
The service that created the credentials to access a private Docker registry.
|
RegistryCredential |
withCredentialProvider(String credentialProvider)
The service that created the credentials to access a private Docker registry.
|
public void setCredential(String credential)
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
The credential can use the name of the credentials only if they exist in your current region.
credential - The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
The credential can use the name of the credentials only if they exist in your current region.
public String getCredential()
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
The credential can use the name of the credentials only if they exist in your current region.
The credential can use the name of the credentials only if they exist in your current
region.
public RegistryCredential withCredential(String credential)
The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
The credential can use the name of the credentials only if they exist in your current region.
credential - The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.
The credential can use the name of the credentials only if they exist in your current region.
public void setCredentialProvider(String credentialProvider)
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.
credentialProvider - The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for AWS Secrets Manager.CredentialProviderTypepublic String getCredentialProvider()
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.
CredentialProviderTypepublic RegistryCredential withCredentialProvider(String credentialProvider)
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.
credentialProvider - The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for AWS Secrets Manager.CredentialProviderTypepublic RegistryCredential withCredentialProvider(CredentialProviderType credentialProvider)
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.
credentialProvider - The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for AWS Secrets Manager.CredentialProviderTypepublic String toString()
toString in class ObjectObject.toString()public RegistryCredential clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.