Class ContainerImageConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ContainerImageConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerImageConfig>
- Enclosing interface:
- ContainerImageConfig
@Stability(Stable)
public static final class ContainerImageConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerImageConfig>
A builder for
ContainerImageConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofContainerImageConfig.getImageName()
repositoryCredentials
(CfnTaskDefinition.RepositoryCredentialsProperty repositoryCredentials) Sets the value ofContainerImageConfig.getRepositoryCredentials()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageName
Sets the value ofContainerImageConfig.getImageName()
- Parameters:
imageName
- Specifies the name of the container image. This parameter is required.- Returns:
this
-
repositoryCredentials
@Stability(Stable) public ContainerImageConfig.Builder repositoryCredentials(CfnTaskDefinition.RepositoryCredentialsProperty repositoryCredentials) Sets the value ofContainerImageConfig.getRepositoryCredentials()
- Parameters:
repositoryCredentials
- Specifies the credentials used to access the image repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ContainerImageConfig>
- Returns:
- a new instance of
ContainerImageConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-