Interface RuleDeclaration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RuleDeclaration.Builder,RuleDeclaration>,SdkBuilder<RuleDeclaration.Builder,RuleDeclaration>,SdkPojo
- Enclosing class:
- RuleDeclaration
public static interface RuleDeclaration.Builder extends SdkPojo, CopyableBuilder<RuleDeclaration.Builder,RuleDeclaration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RuleDeclaration.Buildercommands(String... commands)The shell commands to run with your commands rule in CodePipeline.RuleDeclaration.Buildercommands(Collection<String> commands)The shell commands to run with your commands rule in CodePipeline.RuleDeclaration.Builderconfiguration(Map<String,String> configuration)The action configuration fields for the rule.RuleDeclaration.BuilderinputArtifacts(Collection<InputArtifact> inputArtifacts)The input artifacts fields for the rule, such as specifying an input file for the rule.RuleDeclaration.BuilderinputArtifacts(Consumer<InputArtifact.Builder>... inputArtifacts)The input artifacts fields for the rule, such as specifying an input file for the rule.RuleDeclaration.BuilderinputArtifacts(InputArtifact... inputArtifacts)The input artifacts fields for the rule, such as specifying an input file for the rule.RuleDeclaration.Buildername(String name)The name of the rule that is created for the condition, such asVariableCheck.RuleDeclaration.Builderregion(String region)The Region for the condition associated with the rule.RuleDeclaration.BuilderroleArn(String roleArn)The pipeline role ARN associated with the rule.default RuleDeclaration.BuilderruleTypeId(Consumer<RuleTypeId.Builder> ruleTypeId)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.RuleDeclaration.BuilderruleTypeId(RuleTypeId ruleTypeId)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.RuleDeclaration.BuildertimeoutInMinutes(Integer timeoutInMinutes)The action timeout for the rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
RuleDeclaration.Builder name(String name)
The name of the rule that is created for the condition, such as
VariableCheck.- Parameters:
name- The name of the rule that is created for the condition, such asVariableCheck.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleTypeId
RuleDeclaration.Builder ruleTypeId(RuleTypeId ruleTypeId)
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
- Parameters:
ruleTypeId- The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleTypeId
default RuleDeclaration.Builder ruleTypeId(Consumer<RuleTypeId.Builder> ruleTypeId)
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
This is a convenience method that creates an instance of theRuleTypeId.Builderavoiding the need to create one manually viaRuleTypeId.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruleTypeId(RuleTypeId).- Parameters:
ruleTypeId- a consumer that will call methods onRuleTypeId.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ruleTypeId(RuleTypeId)
-
configuration
RuleDeclaration.Builder configuration(Map<String,String> configuration)
The action configuration fields for the rule.
- Parameters:
configuration- The action configuration fields for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
RuleDeclaration.Builder commands(Collection<String> commands)
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.
Using compute time for this action will incur separate charges in CodeBuild.
- Parameters:
commands- The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.Using compute time for this action will incur separate charges in CodeBuild.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
RuleDeclaration.Builder commands(String... commands)
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.
Using compute time for this action will incur separate charges in CodeBuild.
- Parameters:
commands- The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.Using compute time for this action will incur separate charges in CodeBuild.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputArtifacts
RuleDeclaration.Builder inputArtifacts(Collection<InputArtifact> inputArtifacts)
The input artifacts fields for the rule, such as specifying an input file for the rule.
- Parameters:
inputArtifacts- The input artifacts fields for the rule, such as specifying an input file for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputArtifacts
RuleDeclaration.Builder inputArtifacts(InputArtifact... inputArtifacts)
The input artifacts fields for the rule, such as specifying an input file for the rule.
- Parameters:
inputArtifacts- The input artifacts fields for the rule, such as specifying an input file for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputArtifacts
RuleDeclaration.Builder inputArtifacts(Consumer<InputArtifact.Builder>... inputArtifacts)
The input artifacts fields for the rule, such as specifying an input file for the rule.
This is a convenience method that creates an instance of theInputArtifact.Builderavoiding the need to create one manually viaInputArtifact.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#inputArtifacts(List.) - Parameters:
inputArtifacts- a consumer that will call methods onInputArtifact.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#inputArtifacts(java.util.Collection)
-
roleArn
RuleDeclaration.Builder roleArn(String roleArn)
The pipeline role ARN associated with the rule.
- Parameters:
roleArn- The pipeline role ARN associated with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
RuleDeclaration.Builder region(String region)
The Region for the condition associated with the rule.
- Parameters:
region- The Region for the condition associated with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutInMinutes
RuleDeclaration.Builder timeoutInMinutes(Integer timeoutInMinutes)
The action timeout for the rule.
- Parameters:
timeoutInMinutes- The action timeout for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-