#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetProfileObjectTypeTemplateOutput {
pub template_id: ::std::option::Option<::std::string::String>,
pub source_name: ::std::option::Option<::std::string::String>,
pub source_object: ::std::option::Option<::std::string::String>,
pub allow_profile_creation: bool,
pub source_last_updated_timestamp_format: ::std::option::Option<::std::string::String>,
pub fields: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ObjectTypeField>>,
pub keys: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<crate::types::ObjectTypeKey>>>,
_request_id: Option<String>,
}
impl GetProfileObjectTypeTemplateOutput {
pub fn template_id(&self) -> ::std::option::Option<&str> {
self.template_id.as_deref()
}
pub fn source_name(&self) -> ::std::option::Option<&str> {
self.source_name.as_deref()
}
pub fn source_object(&self) -> ::std::option::Option<&str> {
self.source_object.as_deref()
}
pub fn allow_profile_creation(&self) -> bool {
self.allow_profile_creation
}
pub fn source_last_updated_timestamp_format(&self) -> ::std::option::Option<&str> {
self.source_last_updated_timestamp_format.as_deref()
}
pub fn fields(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::ObjectTypeField>> {
self.fields.as_ref()
}
pub fn keys(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::vec::Vec<crate::types::ObjectTypeKey>>> {
self.keys.as_ref()
}
}
impl ::std::fmt::Debug for GetProfileObjectTypeTemplateOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetProfileObjectTypeTemplateOutput");
formatter.field("template_id", &self.template_id);
formatter.field("source_name", &self.source_name);
formatter.field("source_object", &self.source_object);
formatter.field("allow_profile_creation", &self.allow_profile_creation);
formatter.field("source_last_updated_timestamp_format", &self.source_last_updated_timestamp_format);
formatter.field("fields", &"*** Sensitive Data Redacted ***");
formatter.field("keys", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for GetProfileObjectTypeTemplateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetProfileObjectTypeTemplateOutput {
pub fn builder() -> crate::operation::get_profile_object_type_template::builders::GetProfileObjectTypeTemplateOutputBuilder {
crate::operation::get_profile_object_type_template::builders::GetProfileObjectTypeTemplateOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetProfileObjectTypeTemplateOutputBuilder {
pub(crate) template_id: ::std::option::Option<::std::string::String>,
pub(crate) source_name: ::std::option::Option<::std::string::String>,
pub(crate) source_object: ::std::option::Option<::std::string::String>,
pub(crate) allow_profile_creation: ::std::option::Option<bool>,
pub(crate) source_last_updated_timestamp_format: ::std::option::Option<::std::string::String>,
pub(crate) fields: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ObjectTypeField>>,
pub(crate) keys: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<crate::types::ObjectTypeKey>>>,
_request_id: Option<String>,
}
impl GetProfileObjectTypeTemplateOutputBuilder {
pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.template_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.template_id = input;
self
}
pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
&self.template_id
}
pub fn source_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_name = input;
self
}
pub fn get_source_name(&self) -> &::std::option::Option<::std::string::String> {
&self.source_name
}
pub fn source_object(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_object = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_object(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_object = input;
self
}
pub fn get_source_object(&self) -> &::std::option::Option<::std::string::String> {
&self.source_object
}
pub fn allow_profile_creation(mut self, input: bool) -> Self {
self.allow_profile_creation = ::std::option::Option::Some(input);
self
}
pub fn set_allow_profile_creation(mut self, input: ::std::option::Option<bool>) -> Self {
self.allow_profile_creation = input;
self
}
pub fn get_allow_profile_creation(&self) -> &::std::option::Option<bool> {
&self.allow_profile_creation
}
pub fn source_last_updated_timestamp_format(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_last_updated_timestamp_format = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_last_updated_timestamp_format(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_last_updated_timestamp_format = input;
self
}
pub fn get_source_last_updated_timestamp_format(&self) -> &::std::option::Option<::std::string::String> {
&self.source_last_updated_timestamp_format
}
pub fn fields(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ObjectTypeField) -> Self {
let mut hash_map = self.fields.unwrap_or_default();
hash_map.insert(k.into(), v);
self.fields = ::std::option::Option::Some(hash_map);
self
}
pub fn set_fields(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ObjectTypeField>>,
) -> Self {
self.fields = input;
self
}
pub fn get_fields(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ObjectTypeField>> {
&self.fields
}
pub fn keys(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<crate::types::ObjectTypeKey>) -> Self {
let mut hash_map = self.keys.unwrap_or_default();
hash_map.insert(k.into(), v);
self.keys = ::std::option::Option::Some(hash_map);
self
}
pub fn set_keys(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<crate::types::ObjectTypeKey>>>,
) -> Self {
self.keys = input;
self
}
pub fn get_keys(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<crate::types::ObjectTypeKey>>> {
&self.keys
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_profile_object_type_template::GetProfileObjectTypeTemplateOutput {
crate::operation::get_profile_object_type_template::GetProfileObjectTypeTemplateOutput {
template_id: self.template_id,
source_name: self.source_name,
source_object: self.source_object,
allow_profile_creation: self.allow_profile_creation.unwrap_or_default(),
source_last_updated_timestamp_format: self.source_last_updated_timestamp_format,
fields: self.fields,
keys: self.keys,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for GetProfileObjectTypeTemplateOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetProfileObjectTypeTemplateOutputBuilder");
formatter.field("template_id", &self.template_id);
formatter.field("source_name", &self.source_name);
formatter.field("source_object", &self.source_object);
formatter.field("allow_profile_creation", &self.allow_profile_creation);
formatter.field("source_last_updated_timestamp_format", &self.source_last_updated_timestamp_format);
formatter.field("fields", &"*** Sensitive Data Redacted ***");
formatter.field("keys", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}