Interface PutApprovalResultRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodePipelineRequest.Builder,CopyableBuilder<PutApprovalResultRequest.Builder,,PutApprovalResultRequest> SdkBuilder<PutApprovalResultRequest.Builder,,PutApprovalResultRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutApprovalResultRequest
-
Method Summary
Modifier and TypeMethodDescriptionactionName(String actionName) The name of the action for which approval is requested.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pipelineName(String pipelineName) The name of the pipeline that contains the action.default PutApprovalResultRequest.Builderresult(Consumer<ApprovalResult.Builder> result) Represents information about the result of the approval request.result(ApprovalResult result) Represents information about the result of the approval request.The name of the stage that contains the action.The system-generated token used to identify a unique approval request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codepipeline.model.CodePipelineRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
pipelineName
The name of the pipeline that contains the action.
- Parameters:
pipelineName- The name of the pipeline that contains the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stageName
The name of the stage that contains the action.
- Parameters:
stageName- The name of the stage that contains the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionName
The name of the action for which approval is requested.
- Parameters:
actionName- The name of the action for which approval is requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
result
Represents information about the result of the approval request.
- Parameters:
result- Represents information about the result of the approval request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
result
Represents information about the result of the approval request.
This is a convenience method that creates an instance of theApprovalResult.Builderavoiding the need to create one manually viaApprovalResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresult(ApprovalResult).- Parameters:
result- a consumer that will call methods onApprovalResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
token
The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action. It is used to validate that the approval request corresponding to this token is still valid.
For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject an approval request as detailed above is not available. Instead, use the
externalExecutionIdin the response output from the ListActionExecutions action as the token in the approval request.- Parameters:
token- The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action. It is used to validate that the approval request corresponding to this token is still valid.For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject an approval request as detailed above is not available. Instead, use the
externalExecutionIdin the response output from the ListActionExecutions action as the token in the approval request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutApprovalResultRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutApprovalResultRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-