aws_sdk_datazone/operation/create_connection/
_create_connection_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateConnectionInput {
pub aws_location: ::std::option::Option<crate::types::AwsLocation>,
pub client_token: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub domain_identifier: ::std::option::Option<::std::string::String>,
pub environment_identifier: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub props: ::std::option::Option<crate::types::ConnectionPropertiesInput>,
}
impl CreateConnectionInput {
pub fn aws_location(&self) -> ::std::option::Option<&crate::types::AwsLocation> {
self.aws_location.as_ref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
self.domain_identifier.as_deref()
}
pub fn environment_identifier(&self) -> ::std::option::Option<&str> {
self.environment_identifier.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn props(&self) -> ::std::option::Option<&crate::types::ConnectionPropertiesInput> {
self.props.as_ref()
}
}
impl ::std::fmt::Debug for CreateConnectionInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateConnectionInput");
formatter.field("aws_location", &self.aws_location);
formatter.field("client_token", &self.client_token);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("domain_identifier", &self.domain_identifier);
formatter.field("environment_identifier", &self.environment_identifier);
formatter.field("name", &self.name);
formatter.field("props", &self.props);
formatter.finish()
}
}
impl CreateConnectionInput {
pub fn builder() -> crate::operation::create_connection::builders::CreateConnectionInputBuilder {
crate::operation::create_connection::builders::CreateConnectionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateConnectionInputBuilder {
pub(crate) aws_location: ::std::option::Option<crate::types::AwsLocation>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
pub(crate) environment_identifier: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) props: ::std::option::Option<crate::types::ConnectionPropertiesInput>,
}
impl CreateConnectionInputBuilder {
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 client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
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 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 environment_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_identifier = input;
self
}
pub fn get_environment_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_identifier
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn props(mut self, input: crate::types::ConnectionPropertiesInput) -> Self {
self.props = ::std::option::Option::Some(input);
self
}
pub fn set_props(mut self, input: ::std::option::Option<crate::types::ConnectionPropertiesInput>) -> Self {
self.props = input;
self
}
pub fn get_props(&self) -> &::std::option::Option<crate::types::ConnectionPropertiesInput> {
&self.props
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_connection::CreateConnectionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_connection::CreateConnectionInput {
aws_location: self.aws_location,
client_token: self.client_token,
description: self.description,
domain_identifier: self.domain_identifier,
environment_identifier: self.environment_identifier,
name: self.name,
props: self.props,
})
}
}
impl ::std::fmt::Debug for CreateConnectionInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateConnectionInputBuilder");
formatter.field("aws_location", &self.aws_location);
formatter.field("client_token", &self.client_token);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("domain_identifier", &self.domain_identifier);
formatter.field("environment_identifier", &self.environment_identifier);
formatter.field("name", &self.name);
formatter.field("props", &self.props);
formatter.finish()
}
}