Struct aws_sdk_customerprofiles::operation::put_profile_object_type::builders::PutProfileObjectTypeOutputBuilder
source · #[non_exhaustive]pub struct PutProfileObjectTypeOutputBuilder { /* private fields */ }
Expand description
A builder for PutProfileObjectTypeOutput
.
Implementations§
source§impl PutProfileObjectTypeOutputBuilder
impl PutProfileObjectTypeOutputBuilder
sourcepub fn object_type_name(self, input: impl Into<String>) -> Self
pub fn object_type_name(self, input: impl Into<String>) -> Self
The name of the profile object type.
This field is required.sourcepub fn set_object_type_name(self, input: Option<String>) -> Self
pub fn set_object_type_name(self, input: Option<String>) -> Self
The name of the profile object type.
sourcepub fn get_object_type_name(&self) -> &Option<String>
pub fn get_object_type_name(&self) -> &Option<String>
The name of the profile object type.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description of the profile object type.
This field is required.sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description of the profile object type.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description of the profile object type.
sourcepub fn template_id(self, input: impl Into<String>) -> Self
pub fn template_id(self, input: impl Into<String>) -> Self
A unique identifier for the object template.
sourcepub fn set_template_id(self, input: Option<String>) -> Self
pub fn set_template_id(self, input: Option<String>) -> Self
A unique identifier for the object template.
sourcepub fn get_template_id(&self) -> &Option<String>
pub fn get_template_id(&self) -> &Option<String>
A unique identifier for the object template.
sourcepub fn expiration_days(self, input: i32) -> Self
pub fn expiration_days(self, input: i32) -> Self
The number of days until the data in the object expires.
sourcepub fn set_expiration_days(self, input: Option<i32>) -> Self
pub fn set_expiration_days(self, input: Option<i32>) -> Self
The number of days until the data in the object expires.
sourcepub fn get_expiration_days(&self) -> &Option<i32>
pub fn get_expiration_days(&self) -> &Option<i32>
The number of days until the data in the object expires.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
The customer-provided key to encrypt the profile object that will be created in this profile object type.
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
The customer-provided key to encrypt the profile object that will be created in this profile object type.
sourcepub fn get_encryption_key(&self) -> &Option<String>
pub fn get_encryption_key(&self) -> &Option<String>
The customer-provided key to encrypt the profile object that will be created in this profile object type.
sourcepub fn allow_profile_creation(self, input: bool) -> Self
pub fn allow_profile_creation(self, input: bool) -> Self
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. The default is FALSE
. If the AllowProfileCreation flag is set to FALSE
, then the service tries to fetch a standard profile and associate this object with the profile. If it is set to TRUE
, and if no match is found, then the service creates a new standard profile.
sourcepub fn set_allow_profile_creation(self, input: Option<bool>) -> Self
pub fn set_allow_profile_creation(self, input: Option<bool>) -> Self
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. The default is FALSE
. If the AllowProfileCreation flag is set to FALSE
, then the service tries to fetch a standard profile and associate this object with the profile. If it is set to TRUE
, and if no match is found, then the service creates a new standard profile.
sourcepub fn get_allow_profile_creation(&self) -> &Option<bool>
pub fn get_allow_profile_creation(&self) -> &Option<bool>
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. The default is FALSE
. If the AllowProfileCreation flag is set to FALSE
, then the service tries to fetch a standard profile and associate this object with the profile. If it is set to TRUE
, and if no match is found, then the service creates a new standard profile.
sourcepub fn source_last_updated_timestamp_format(
self,
input: impl Into<String>
) -> Self
pub fn source_last_updated_timestamp_format( self, input: impl Into<String> ) -> Self
The format of your sourceLastUpdatedTimestamp
that was previously set up in fields that were parsed using SimpleDateFormat. If you have sourceLastUpdatedTimestamp
in your field, you must set up sourceLastUpdatedTimestampFormat
.
sourcepub fn set_source_last_updated_timestamp_format(
self,
input: Option<String>
) -> Self
pub fn set_source_last_updated_timestamp_format( self, input: Option<String> ) -> Self
The format of your sourceLastUpdatedTimestamp
that was previously set up in fields that were parsed using SimpleDateFormat. If you have sourceLastUpdatedTimestamp
in your field, you must set up sourceLastUpdatedTimestampFormat
.
sourcepub fn get_source_last_updated_timestamp_format(&self) -> &Option<String>
pub fn get_source_last_updated_timestamp_format(&self) -> &Option<String>
The format of your sourceLastUpdatedTimestamp
that was previously set up in fields that were parsed using SimpleDateFormat. If you have sourceLastUpdatedTimestamp
in your field, you must set up sourceLastUpdatedTimestampFormat
.
sourcepub fn fields(self, k: impl Into<String>, v: ObjectTypeField) -> Self
pub fn fields(self, k: impl Into<String>, v: ObjectTypeField) -> Self
Adds a key-value pair to fields
.
To override the contents of this collection use set_fields
.
A map of the name and ObjectType field.
sourcepub fn set_fields(self, input: Option<HashMap<String, ObjectTypeField>>) -> Self
pub fn set_fields(self, input: Option<HashMap<String, ObjectTypeField>>) -> Self
A map of the name and ObjectType field.
sourcepub fn get_fields(&self) -> &Option<HashMap<String, ObjectTypeField>>
pub fn get_fields(&self) -> &Option<HashMap<String, ObjectTypeField>>
A map of the name and ObjectType field.
sourcepub fn keys(self, k: impl Into<String>, v: Vec<ObjectTypeKey>) -> Self
pub fn keys(self, k: impl Into<String>, v: Vec<ObjectTypeKey>) -> Self
Adds a key-value pair to keys
.
To override the contents of this collection use set_keys
.
A list of unique keys that can be used to map data to the profile.
sourcepub fn set_keys(
self,
input: Option<HashMap<String, Vec<ObjectTypeKey>>>
) -> Self
pub fn set_keys( self, input: Option<HashMap<String, Vec<ObjectTypeKey>>> ) -> Self
A list of unique keys that can be used to map data to the profile.
sourcepub fn get_keys(&self) -> &Option<HashMap<String, Vec<ObjectTypeKey>>>
pub fn get_keys(&self) -> &Option<HashMap<String, Vec<ObjectTypeKey>>>
A list of unique keys that can be used to map data to the profile.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp of when the domain was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp of when the domain was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp of when the domain was created.
sourcepub fn last_updated_at(self, input: DateTime) -> Self
pub fn last_updated_at(self, input: DateTime) -> Self
The timestamp of when the domain was most recently edited.
sourcepub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
The timestamp of when the domain was most recently edited.
sourcepub fn get_last_updated_at(&self) -> &Option<DateTime>
pub fn get_last_updated_at(&self) -> &Option<DateTime>
The timestamp of when the domain was most recently edited.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
sourcepub fn build(self) -> Result<PutProfileObjectTypeOutput, BuildError>
pub fn build(self) -> Result<PutProfileObjectTypeOutput, BuildError>
Consumes the builder and constructs a PutProfileObjectTypeOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PutProfileObjectTypeOutputBuilder
impl Clone for PutProfileObjectTypeOutputBuilder
source§fn clone(&self) -> PutProfileObjectTypeOutputBuilder
fn clone(&self) -> PutProfileObjectTypeOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutProfileObjectTypeOutputBuilder
impl Default for PutProfileObjectTypeOutputBuilder
source§fn default() -> PutProfileObjectTypeOutputBuilder
fn default() -> PutProfileObjectTypeOutputBuilder
source§impl PartialEq for PutProfileObjectTypeOutputBuilder
impl PartialEq for PutProfileObjectTypeOutputBuilder
source§fn eq(&self, other: &PutProfileObjectTypeOutputBuilder) -> bool
fn eq(&self, other: &PutProfileObjectTypeOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutProfileObjectTypeOutputBuilder
Auto Trait Implementations§
impl Freeze for PutProfileObjectTypeOutputBuilder
impl RefUnwindSafe for PutProfileObjectTypeOutputBuilder
impl Send for PutProfileObjectTypeOutputBuilder
impl Sync for PutProfileObjectTypeOutputBuilder
impl Unpin for PutProfileObjectTypeOutputBuilder
impl UnwindSafe for PutProfileObjectTypeOutputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more