Package software.amazon.awscdk.pipelines
Class ExternalDockerCredentialOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.ExternalDockerCredentialOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExternalDockerCredentialOptions>
- Enclosing interface:
- ExternalDockerCredentialOptions
@Stability(Stable)
public static final class ExternalDockerCredentialOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ExternalDockerCredentialOptions>
A builder for
ExternalDockerCredentialOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassumeRole(IRole assumeRole) Sets the value ofExternalDockerCredentialOptions.getAssumeRole()build()Builds the configured instance.secretPasswordField(String secretPasswordField) Sets the value ofExternalDockerCredentialOptions.getSecretPasswordField()secretUsernameField(String secretUsernameField) Sets the value ofExternalDockerCredentialOptions.getSecretUsernameField()usages(List<? extends DockerCredentialUsage> usages) Sets the value ofExternalDockerCredentialOptions.getUsages()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assumeRole
Sets the value ofExternalDockerCredentialOptions.getAssumeRole()- Parameters:
assumeRole- An IAM role to assume prior to accessing the secret.- Returns:
this
-
secretPasswordField
@Stability(Stable) public ExternalDockerCredentialOptions.Builder secretPasswordField(String secretPasswordField) Sets the value ofExternalDockerCredentialOptions.getSecretPasswordField()- Parameters:
secretPasswordField- The name of the JSON field of the secret which contains the secret/password.- Returns:
this
-
secretUsernameField
@Stability(Stable) public ExternalDockerCredentialOptions.Builder secretUsernameField(String secretUsernameField) Sets the value ofExternalDockerCredentialOptions.getSecretUsernameField()- Parameters:
secretUsernameField- The name of the JSON field of the secret which contains the user/login name.- Returns:
this
-
usages
@Stability(Stable) public ExternalDockerCredentialOptions.Builder usages(List<? extends DockerCredentialUsage> usages) Sets the value ofExternalDockerCredentialOptions.getUsages()- Parameters:
usages- Defines which stages of the pipeline should be granted access to these credentials.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExternalDockerCredentialOptions>- Returns:
- a new instance of
ExternalDockerCredentialOptions - Throws:
NullPointerException- if any required attribute was not provided
-