Class PutApprovalResultRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codepipeline.model.CodePipelineRequest
-
- software.amazon.awssdk.services.codepipeline.model.PutApprovalResultRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutApprovalResultRequest.Builder,PutApprovalResultRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutApprovalResultRequest extends CodePipelineRequest implements ToCopyableBuilder<PutApprovalResultRequest.Builder,PutApprovalResultRequest>
Represents the input of a
PutApprovalResultaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutApprovalResultRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionName()The name of the action for which approval is requested.static PutApprovalResultRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpipelineName()The name of the pipeline that contains the action.ApprovalResultresult()Represents information about the result of the approval request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PutApprovalResultRequest.Builder>serializableBuilderClass()StringstageName()The name of the stage that contains the action.PutApprovalResultRequest.BuildertoBuilder()Stringtoken()The system-generated token used to identify a unique approval request.StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
pipelineName
public final String pipelineName()
The name of the pipeline that contains the action.
- Returns:
- The name of the pipeline that contains the action.
-
stageName
public final String stageName()
The name of the stage that contains the action.
- Returns:
- The name of the stage that contains the action.
-
actionName
public final String actionName()
The name of the action for which approval is requested.
- Returns:
- The name of the action for which approval is requested.
-
result
public final ApprovalResult result()
Represents information about the result of the approval request.
- Returns:
- Represents information about the result of the approval request.
-
token
public final String 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 approval request as detailed above is not available. Instead, use the
externalExecutionIdfrom theGetPipelineStateaction as the token in the approval request.- Returns:
- 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 approval request as detailed above is not available. Instead, use the
externalExecutionIdfrom theGetPipelineStateaction as the token in the approval request.
-
toBuilder
public PutApprovalResultRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutApprovalResultRequest.Builder,PutApprovalResultRequest>- Specified by:
toBuilderin classCodePipelineRequest
-
builder
public static PutApprovalResultRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutApprovalResultRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-