Class EcrSourceVariables.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.EcrSourceVariables.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrSourceVariables>
- Enclosing interface:
EcrSourceVariables
@Stability(Stable)
public static final class EcrSourceVariables.Builder
extends Object
implements software.amazon.jsii.Builder<EcrSourceVariables>
A builder for
EcrSourceVariables-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.imageDigest(String imageDigest) Sets the value ofEcrSourceVariables.getImageDigest()Sets the value ofEcrSourceVariables.getImageTag()Sets the value ofEcrSourceVariables.getImageUri()registryId(String registryId) Sets the value ofEcrSourceVariables.getRegistryId()repositoryName(String repositoryName) Sets the value ofEcrSourceVariables.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageDigest
Sets the value ofEcrSourceVariables.getImageDigest()- Parameters:
imageDigest- The digest of the current image, in the form ': '. This parameter is required. - Returns:
this
-
imageTag
Sets the value ofEcrSourceVariables.getImageTag()- Parameters:
imageTag- The Docker tag of the current image. This parameter is required.- Returns:
this
-
imageUri
Sets the value ofEcrSourceVariables.getImageUri()- Parameters:
imageUri- The full ECR Docker URI of the current image. This parameter is required.- Returns:
this
-
registryId
Sets the value ofEcrSourceVariables.getRegistryId()- Parameters:
registryId- The identifier of the registry. This parameter is required. In ECR, this is usually the ID of the AWS account owning it.- Returns:
this
-
repositoryName
Sets the value ofEcrSourceVariables.getRepositoryName()- Parameters:
repositoryName- The physical name of the repository that this action tracks. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcrSourceVariables>- Returns:
- a new instance of
EcrSourceVariables - Throws:
NullPointerException- if any required attribute was not provided
-