#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateLunaClientInput {
pub label: ::std::option::Option<::std::string::String>,
pub certificate: ::std::option::Option<::std::string::String>,
}
impl CreateLunaClientInput {
pub fn label(&self) -> ::std::option::Option<&str> {
self.label.as_deref()
}
pub fn certificate(&self) -> ::std::option::Option<&str> {
self.certificate.as_deref()
}
}
impl CreateLunaClientInput {
pub fn builder() -> crate::operation::create_luna_client::builders::CreateLunaClientInputBuilder {
crate::operation::create_luna_client::builders::CreateLunaClientInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateLunaClientInputBuilder {
pub(crate) label: ::std::option::Option<::std::string::String>,
pub(crate) certificate: ::std::option::Option<::std::string::String>,
}
impl CreateLunaClientInputBuilder {
pub fn label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.label = ::std::option::Option::Some(input.into());
self
}
pub fn set_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.label = input;
self
}
pub fn get_label(&self) -> &::std::option::Option<::std::string::String> {
&self.label
}
pub fn certificate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.certificate = ::std::option::Option::Some(input.into());
self
}
pub fn set_certificate(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.certificate = input;
self
}
pub fn get_certificate(&self) -> &::std::option::Option<::std::string::String> {
&self.certificate
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_luna_client::CreateLunaClientInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_luna_client::CreateLunaClientInput {
label: self.label,
certificate: self.certificate,
})
}
}