pub struct Builder { /* private fields */ }
Expand description
A builder for PutApprovalResultInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn pipeline_name(self, input: impl Into<String>) -> Self
pub fn pipeline_name(self, input: impl Into<String>) -> Self
The name of the pipeline that contains the action.
sourcepub fn set_pipeline_name(self, input: Option<String>) -> Self
pub fn set_pipeline_name(self, input: Option<String>) -> Self
The name of the pipeline that contains the action.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the stage that contains the action.
sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The name of the stage that contains the action.
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
The name of the action for which approval is requested.
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The name of the action for which approval is requested.
sourcepub fn result(self, input: ApprovalResult) -> Self
pub fn result(self, input: ApprovalResult) -> Self
Represents information about the result of the approval request.
sourcepub fn set_result(self, input: Option<ApprovalResult>) -> Self
pub fn set_result(self, input: Option<ApprovalResult>) -> Self
Represents information about the result of the approval request.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> Result<PutApprovalResultInput, BuildError>
pub fn build(self) -> Result<PutApprovalResultInput, BuildError>
Consumes the builder and constructs a PutApprovalResultInput
.