#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CancelSigningProfileInput {
pub profile_name: ::std::option::Option<::std::string::String>,
}
impl CancelSigningProfileInput {
pub fn profile_name(&self) -> ::std::option::Option<&str> {
self.profile_name.as_deref()
}
}
impl CancelSigningProfileInput {
pub fn builder() -> crate::operation::cancel_signing_profile::builders::CancelSigningProfileInputBuilder {
crate::operation::cancel_signing_profile::builders::CancelSigningProfileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CancelSigningProfileInputBuilder {
pub(crate) profile_name: ::std::option::Option<::std::string::String>,
}
impl CancelSigningProfileInputBuilder {
pub fn profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_name = input;
self
}
pub fn get_profile_name(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::cancel_signing_profile::CancelSigningProfileInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::cancel_signing_profile::CancelSigningProfileInput {
profile_name: self.profile_name,
})
}
}