#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateAuthenticationProfileInput {
pub authentication_profile_name: ::std::option::Option<::std::string::String>,
pub authentication_profile_content: ::std::option::Option<::std::string::String>,
}
impl CreateAuthenticationProfileInput {
pub fn authentication_profile_name(&self) -> ::std::option::Option<&str> {
self.authentication_profile_name.as_deref()
}
pub fn authentication_profile_content(&self) -> ::std::option::Option<&str> {
self.authentication_profile_content.as_deref()
}
}
impl CreateAuthenticationProfileInput {
pub fn builder() -> crate::operation::create_authentication_profile::builders::CreateAuthenticationProfileInputBuilder {
crate::operation::create_authentication_profile::builders::CreateAuthenticationProfileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateAuthenticationProfileInputBuilder {
pub(crate) authentication_profile_name: ::std::option::Option<::std::string::String>,
pub(crate) authentication_profile_content: ::std::option::Option<::std::string::String>,
}
impl CreateAuthenticationProfileInputBuilder {
pub fn authentication_profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authentication_profile_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_authentication_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authentication_profile_name = input;
self
}
pub fn get_authentication_profile_name(&self) -> &::std::option::Option<::std::string::String> {
&self.authentication_profile_name
}
pub fn authentication_profile_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authentication_profile_content = ::std::option::Option::Some(input.into());
self
}
pub fn set_authentication_profile_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authentication_profile_content = input;
self
}
pub fn get_authentication_profile_content(&self) -> &::std::option::Option<::std::string::String> {
&self.authentication_profile_content
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::create_authentication_profile::CreateAuthenticationProfileInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::create_authentication_profile::CreateAuthenticationProfileInput {
authentication_profile_name: self.authentication_profile_name,
authentication_profile_content: self.authentication_profile_content,
})
}
}