#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Association {
pub custom_domain_certificate_arn: ::std::option::Option<::std::string::String>,
pub custom_domain_certificate_expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub custom_domain_name: ::std::option::Option<::std::string::String>,
pub workgroup_name: ::std::option::Option<::std::string::String>,
}
impl Association {
pub fn custom_domain_certificate_arn(&self) -> ::std::option::Option<&str> {
self.custom_domain_certificate_arn.as_deref()
}
pub fn custom_domain_certificate_expiry_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.custom_domain_certificate_expiry_time.as_ref()
}
pub fn custom_domain_name(&self) -> ::std::option::Option<&str> {
self.custom_domain_name.as_deref()
}
pub fn workgroup_name(&self) -> ::std::option::Option<&str> {
self.workgroup_name.as_deref()
}
}
impl Association {
pub fn builder() -> crate::types::builders::AssociationBuilder {
crate::types::builders::AssociationBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AssociationBuilder {
pub(crate) custom_domain_certificate_arn: ::std::option::Option<::std::string::String>,
pub(crate) custom_domain_certificate_expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) custom_domain_name: ::std::option::Option<::std::string::String>,
pub(crate) workgroup_name: ::std::option::Option<::std::string::String>,
}
impl AssociationBuilder {
pub fn custom_domain_certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.custom_domain_certificate_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_custom_domain_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.custom_domain_certificate_arn = input;
self
}
pub fn get_custom_domain_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.custom_domain_certificate_arn
}
pub fn custom_domain_certificate_expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.custom_domain_certificate_expiry_time = ::std::option::Option::Some(input);
self
}
pub fn set_custom_domain_certificate_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.custom_domain_certificate_expiry_time = input;
self
}
pub fn get_custom_domain_certificate_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.custom_domain_certificate_expiry_time
}
pub fn custom_domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.custom_domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_custom_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.custom_domain_name = input;
self
}
pub fn get_custom_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.custom_domain_name
}
pub fn workgroup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workgroup_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_workgroup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workgroup_name = input;
self
}
pub fn get_workgroup_name(&self) -> &::std::option::Option<::std::string::String> {
&self.workgroup_name
}
pub fn build(self) -> crate::types::Association {
crate::types::Association {
custom_domain_certificate_arn: self.custom_domain_certificate_arn,
custom_domain_certificate_expiry_time: self.custom_domain_certificate_expiry_time,
custom_domain_name: self.custom_domain_name,
workgroup_name: self.workgroup_name,
}
}
}