Class RegistryCredential
- java.lang.Object
-
- software.amazon.awssdk.services.codebuild.model.RegistryCredential
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RegistryCredential.Builder,RegistryCredential>
@Generated("software.amazon.awssdk:codegen") public final class RegistryCredential extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RegistryCredential.Builder,RegistryCredential>
Information about credentials that provide access to a private Docker registry. When this is set:
-
imagePullCredentialsTypemust be set toSERVICE_ROLE. -
images cannot be curated or an Amazon ECR image.
For more information, see Private Registry with Secrets Manager Sample for CodeBuild.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRegistryCredential.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegistryCredential.Builderbuilder()Stringcredential()The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.CredentialProviderTypecredentialProvider()The service that created the credentials to access a private Docker registry.StringcredentialProviderAsString()The service that created the credentials to access a private Docker registry.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends RegistryCredential.Builder>serializableBuilderClass()RegistryCredential.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
-
credential
public final String credential()
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The
credentialcan use the name of the credentials only if they exist in your current Amazon Web Services Region.- Returns:
- The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The
credentialcan use the name of the credentials only if they exist in your current Amazon Web Services Region.
-
credentialProvider
public final CredentialProviderType credentialProvider()
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
If the service returns an enum value that is not available in the current SDK version,
credentialProviderwill returnCredentialProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcredentialProviderAsString().- Returns:
- The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
- See Also:
CredentialProviderType
-
credentialProviderAsString
public final String credentialProviderAsString()
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
If the service returns an enum value that is not available in the current SDK version,
credentialProviderwill returnCredentialProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcredentialProviderAsString().- Returns:
- The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
- See Also:
CredentialProviderType
-
toBuilder
public RegistryCredential.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RegistryCredential.Builder,RegistryCredential>
-
builder
public static RegistryCredential.Builder builder()
-
serializableBuilderClass
public static Class<? extends RegistryCredential.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.
-
-