#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateLunaClientInput {
#[doc(hidden)]
pub label: std::option::Option<std::string::String>,
#[doc(hidden)]
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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn certificate(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate = Some(input.into());
self
}
pub fn set_certificate(mut self, input: std::option::Option<std::string::String>) -> Self {
self.certificate = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::create_luna_client::CreateLunaClientInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::create_luna_client::CreateLunaClientInput {
label: self.label,
certificate: self.certificate,
},
)
}
}