#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopPipelineExecutionInput {
pub pipeline_execution_arn: ::std::option::Option<::std::string::String>,
pub client_request_token: ::std::option::Option<::std::string::String>,
}
impl StopPipelineExecutionInput {
pub fn pipeline_execution_arn(&self) -> ::std::option::Option<&str> {
self.pipeline_execution_arn.as_deref()
}
pub fn client_request_token(&self) -> ::std::option::Option<&str> {
self.client_request_token.as_deref()
}
}
impl StopPipelineExecutionInput {
pub fn builder() -> crate::operation::stop_pipeline_execution::builders::StopPipelineExecutionInputBuilder {
crate::operation::stop_pipeline_execution::builders::StopPipelineExecutionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopPipelineExecutionInputBuilder {
pub(crate) pipeline_execution_arn: ::std::option::Option<::std::string::String>,
pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
}
impl StopPipelineExecutionInputBuilder {
pub fn pipeline_execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_execution_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_pipeline_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_execution_arn = input;
self
}
pub fn get_pipeline_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_execution_arn
}
pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_request_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_request_token = input;
self
}
pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_request_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::stop_pipeline_execution::StopPipelineExecutionInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::stop_pipeline_execution::StopPipelineExecutionInput {
pipeline_execution_arn: self.pipeline_execution_arn,
client_request_token: self.client_request_token,
})
}
}