@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 Secrets Manager Sample for 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 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 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 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 Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web
Services Region.
credential
- The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon
Web Services Region.
public String getCredential()
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web
Services Region.
The credential
can use the name of the credentials only if they exist in your current Amazon
Web Services Region.
public RegistryCredential withCredential(String credential)
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web
Services Region.
credential
- The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon
Web Services 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 Secrets Manager.
credentialProvider
- The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for Secrets Manager.CredentialProviderType
public String getCredentialProvider()
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
CredentialProviderType
public RegistryCredential withCredentialProvider(String credentialProvider)
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
credentialProvider
- The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for Secrets Manager.CredentialProviderType
public RegistryCredential withCredentialProvider(CredentialProviderType credentialProvider)
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
credentialProvider
- The service that created the credentials to access a private Docker registry. The valid value,
SECRETS_MANAGER, is for Secrets Manager.CredentialProviderType
public String toString()
toString
in class Object
Object.toString()
public RegistryCredential clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.