#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeletePipelineInput {
#[doc(hidden)]
pub pipeline_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub client_request_token: std::option::Option<std::string::String>,
}
impl DeletePipelineInput {
pub fn pipeline_name(&self) -> std::option::Option<&str> {
self.pipeline_name.as_deref()
}
pub fn client_request_token(&self) -> std::option::Option<&str> {
self.client_request_token.as_deref()
}
}
impl DeletePipelineInput {
pub fn builder() -> crate::operation::delete_pipeline::builders::DeletePipelineInputBuilder {
crate::operation::delete_pipeline::builders::DeletePipelineInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeletePipelineInputBuilder {
pub(crate) pipeline_name: std::option::Option<std::string::String>,
pub(crate) client_request_token: std::option::Option<std::string::String>,
}
impl DeletePipelineInputBuilder {
pub fn pipeline_name(mut self, input: impl Into<std::string::String>) -> Self {
self.pipeline_name = Some(input.into());
self
}
pub fn set_pipeline_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.pipeline_name = input;
self
}
pub fn client_request_token(mut self, input: impl Into<std::string::String>) -> Self {
self.client_request_token = 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 build(
self,
) -> Result<
crate::operation::delete_pipeline::DeletePipelineInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_pipeline::DeletePipelineInput {
pipeline_name: self.pipeline_name,
client_request_token: self.client_request_token,
})
}
}