Class EcrSourceActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.EcrSourceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrSourceActionProps>
- Enclosing interface:
EcrSourceActionProps
@Stability(Stable)
public static final class EcrSourceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<EcrSourceActionProps>
A builder for
EcrSourceActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
build()
Builds the configured instance.Sets the value ofEcrSourceActionProps.getImageTag()
Sets the value ofEcrSourceActionProps.getOutput()
repository
(IRepository repository) Sets the value ofEcrSourceActionProps.getRepository()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
output
Sets the value ofEcrSourceActionProps.getOutput()
- Parameters:
output
- the value to be set. This parameter is required.- Returns:
this
-
repository
Sets the value ofEcrSourceActionProps.getRepository()
- Parameters:
repository
- The repository that will be watched for changes. This parameter is required.- Returns:
this
-
imageTag
Sets the value ofEcrSourceActionProps.getImageTag()
- Parameters:
imageTag
- The image tag that will be checked for changes. It is not possible to trigger on changes to more than one tag.- Returns:
this
-
role
Sets the value ofCommonAwsActionProps.getRole()
- Parameters:
role
- The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into yourIAction.bind
method in theActionBindOptions.role
property.- Returns:
this
-
actionName
Sets the value ofCommonActionProps.getActionName()
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required. Note that Action names must be unique within a single Stage.- Returns:
this
-
runOrder
Sets the value ofCommonActionProps.getRunOrder()
- Parameters:
runOrder
- The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.- Returns:
this
-
variablesNamespace
@Stability(Stable) public EcrSourceActionProps.Builder variablesNamespace(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EcrSourceActionProps>
- Returns:
- a new instance of
EcrSourceActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-