#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteLaunchInput {
pub project: ::std::option::Option<::std::string::String>,
pub launch: ::std::option::Option<::std::string::String>,
}
impl DeleteLaunchInput {
pub fn project(&self) -> ::std::option::Option<&str> {
self.project.as_deref()
}
pub fn launch(&self) -> ::std::option::Option<&str> {
self.launch.as_deref()
}
}
impl DeleteLaunchInput {
pub fn builder() -> crate::operation::delete_launch::builders::DeleteLaunchInputBuilder {
crate::operation::delete_launch::builders::DeleteLaunchInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteLaunchInputBuilder {
pub(crate) project: ::std::option::Option<::std::string::String>,
pub(crate) launch: ::std::option::Option<::std::string::String>,
}
impl DeleteLaunchInputBuilder {
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
pub fn launch(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.launch = ::std::option::Option::Some(input.into());
self
}
pub fn set_launch(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.launch = input;
self
}
pub fn get_launch(&self) -> &::std::option::Option<::std::string::String> {
&self.launch
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_launch::DeleteLaunchInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::delete_launch::DeleteLaunchInput {
project: self.project,
launch: self.launch,
})
}
}