aws_sdk_datazone/operation/update_connection/
_update_connection_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateConnectionInput {
pub domain_identifier: ::std::option::Option<::std::string::String>,
pub identifier: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub aws_location: ::std::option::Option<crate::types::AwsLocation>,
pub props: ::std::option::Option<crate::types::ConnectionPropertiesPatch>,
}
impl UpdateConnectionInput {
pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
self.domain_identifier.as_deref()
}
pub fn identifier(&self) -> ::std::option::Option<&str> {
self.identifier.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn aws_location(&self) -> ::std::option::Option<&crate::types::AwsLocation> {
self.aws_location.as_ref()
}
pub fn props(&self) -> ::std::option::Option<&crate::types::ConnectionPropertiesPatch> {
self.props.as_ref()
}
}
impl ::std::fmt::Debug for UpdateConnectionInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateConnectionInput");
formatter.field("domain_identifier", &self.domain_identifier);
formatter.field("identifier", &self.identifier);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("aws_location", &self.aws_location);
formatter.field("props", &self.props);
formatter.finish()
}
}
impl UpdateConnectionInput {
pub fn builder() -> crate::operation::update_connection::builders::UpdateConnectionInputBuilder {
crate::operation::update_connection::builders::UpdateConnectionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateConnectionInputBuilder {
pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
pub(crate) identifier: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) aws_location: ::std::option::Option<crate::types::AwsLocation>,
pub(crate) props: ::std::option::Option<crate::types::ConnectionPropertiesPatch>,
}
impl UpdateConnectionInputBuilder {
pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_identifier = input;
self
}
pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_identifier
}
pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.identifier = input;
self
}
pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.identifier
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn aws_location(mut self, input: crate::types::AwsLocation) -> Self {
self.aws_location = ::std::option::Option::Some(input);
self
}
pub fn set_aws_location(mut self, input: ::std::option::Option<crate::types::AwsLocation>) -> Self {
self.aws_location = input;
self
}
pub fn get_aws_location(&self) -> &::std::option::Option<crate::types::AwsLocation> {
&self.aws_location
}
pub fn props(mut self, input: crate::types::ConnectionPropertiesPatch) -> Self {
self.props = ::std::option::Option::Some(input);
self
}
pub fn set_props(mut self, input: ::std::option::Option<crate::types::ConnectionPropertiesPatch>) -> Self {
self.props = input;
self
}
pub fn get_props(&self) -> &::std::option::Option<crate::types::ConnectionPropertiesPatch> {
&self.props
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_connection::UpdateConnectionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_connection::UpdateConnectionInput {
domain_identifier: self.domain_identifier,
identifier: self.identifier,
description: self.description,
aws_location: self.aws_location,
props: self.props,
})
}
}
impl ::std::fmt::Debug for UpdateConnectionInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateConnectionInputBuilder");
formatter.field("domain_identifier", &self.domain_identifier);
formatter.field("identifier", &self.identifier);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("aws_location", &self.aws_location);
formatter.field("props", &self.props);
formatter.finish()
}
}