aws_sdk_datapipeline/operation/delete_pipeline/
_delete_pipeline_input.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeletePipelineInput {
pub pipeline_id: ::std::option::Option<::std::string::String>,
}
impl DeletePipelineInput {
pub fn pipeline_id(&self) -> ::std::option::Option<&str> {
self.pipeline_id.as_deref()
}
}
impl DeletePipelineInput {
pub fn builder() -> crate::operation::delete_pipeline::builders::DeletePipelineInputBuilder {
crate::operation::delete_pipeline::builders::DeletePipelineInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeletePipelineInputBuilder {
pub(crate) pipeline_id: ::std::option::Option<::std::string::String>,
}
impl DeletePipelineInputBuilder {
pub fn pipeline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_pipeline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_id = input;
self
}
pub fn get_pipeline_id(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_pipeline::DeletePipelineInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_pipeline::DeletePipelineInput {
pipeline_id: self.pipeline_id,
})
}
}