#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateTrustInput {
pub trust_id: ::std::option::Option<::std::string::String>,
pub selective_auth: ::std::option::Option<crate::types::SelectiveAuth>,
}
impl UpdateTrustInput {
pub fn trust_id(&self) -> ::std::option::Option<&str> {
self.trust_id.as_deref()
}
pub fn selective_auth(&self) -> ::std::option::Option<&crate::types::SelectiveAuth> {
self.selective_auth.as_ref()
}
}
impl UpdateTrustInput {
pub fn builder() -> crate::operation::update_trust::builders::UpdateTrustInputBuilder {
crate::operation::update_trust::builders::UpdateTrustInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateTrustInputBuilder {
pub(crate) trust_id: ::std::option::Option<::std::string::String>,
pub(crate) selective_auth: ::std::option::Option<crate::types::SelectiveAuth>,
}
impl UpdateTrustInputBuilder {
pub fn trust_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.trust_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_trust_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.trust_id = input;
self
}
pub fn get_trust_id(&self) -> &::std::option::Option<::std::string::String> {
&self.trust_id
}
pub fn selective_auth(mut self, input: crate::types::SelectiveAuth) -> Self {
self.selective_auth = ::std::option::Option::Some(input);
self
}
pub fn set_selective_auth(mut self, input: ::std::option::Option<crate::types::SelectiveAuth>) -> Self {
self.selective_auth = input;
self
}
pub fn get_selective_auth(&self) -> &::std::option::Option<crate::types::SelectiveAuth> {
&self.selective_auth
}
pub fn build(self) -> ::std::result::Result<crate::operation::update_trust::UpdateTrustInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_trust::UpdateTrustInput {
trust_id: self.trust_id,
selective_auth: self.selective_auth,
})
}
}