Class CfnProject.RegistryCredentialProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.RegistryCredentialProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.RegistryCredentialProperty>
- Enclosing interface:
CfnProject.RegistryCredentialProperty
@Stability(Stable)
public static final class CfnProject.RegistryCredentialProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.RegistryCredentialProperty>
A builder for
CfnProject.RegistryCredentialProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.credential
(String credential) Sets the value ofCfnProject.RegistryCredentialProperty.getCredential()
credentialProvider
(String credentialProvider) Sets the value ofCfnProject.RegistryCredentialProperty.getCredentialProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credential
@Stability(Stable) public CfnProject.RegistryCredentialProperty.Builder credential(String credential) Sets the value ofCfnProject.RegistryCredentialProperty.getCredential()
- Parameters:
credential
- The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager . This parameter is required.The
credential
can use the name of the credentials only if they exist in your current AWS Region .- Returns:
this
-
credentialProvider
@Stability(Stable) public CfnProject.RegistryCredentialProperty.Builder credentialProvider(String credentialProvider) Sets the value ofCfnProject.RegistryCredentialProperty.getCredentialProvider()
- Parameters:
credentialProvider
- The service that created the credentials to access a private Docker registry. This parameter is required. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.RegistryCredentialProperty>
- Returns:
- a new instance of
CfnProject.RegistryCredentialProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-