Struct aws_sdk_customerprofiles::operation::merge_profiles::builders::MergeProfilesFluentBuilder
source · pub struct MergeProfilesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to MergeProfiles
.
Runs an AWS Lambda job that does the following:
-
All the profileKeys in the
ProfileToBeMerged
will be moved to the main profile. -
All the objects in the
ProfileToBeMerged
will be moved to the main profile. -
All the
ProfileToBeMerged
will be deleted at the end. -
All the profileKeys in the
ProfileIdsToBeMerged
will be moved to the main profile. -
Standard fields are merged as follows:
-
Fields are always "union"-ed if there are no conflicts in standard fields or attributeKeys.
-
When there are conflicting fields:
-
If no
SourceProfileIds
entry is specified, the main Profile value is always taken. -
If a
SourceProfileIds
entry is specified, the specified profileId is always taken, even if it is a NULL value.
-
-
You can use MergeProfiles together with GetMatches, which returns potentially matching profiles, or use it with the results of another matching system. After profiles have been merged, they cannot be separated (unmerged).
Implementations§
source§impl MergeProfilesFluentBuilder
impl MergeProfilesFluentBuilder
sourcepub fn as_input(&self) -> &MergeProfilesInputBuilder
pub fn as_input(&self) -> &MergeProfilesInputBuilder
Access the MergeProfiles as a reference.
sourcepub async fn send(
self
) -> Result<MergeProfilesOutput, SdkError<MergeProfilesError, HttpResponse>>
pub async fn send( self ) -> Result<MergeProfilesOutput, SdkError<MergeProfilesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<MergeProfilesOutput, MergeProfilesError, Self>
pub fn customize( self ) -> CustomizableOperation<MergeProfilesOutput, MergeProfilesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The unique name of the domain.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The unique name of the domain.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The unique name of the domain.
sourcepub fn main_profile_id(self, input: impl Into<String>) -> Self
pub fn main_profile_id(self, input: impl Into<String>) -> Self
The identifier of the profile to be taken.
sourcepub fn set_main_profile_id(self, input: Option<String>) -> Self
pub fn set_main_profile_id(self, input: Option<String>) -> Self
The identifier of the profile to be taken.
sourcepub fn get_main_profile_id(&self) -> &Option<String>
pub fn get_main_profile_id(&self) -> &Option<String>
The identifier of the profile to be taken.
sourcepub fn profile_ids_to_be_merged(self, input: impl Into<String>) -> Self
pub fn profile_ids_to_be_merged(self, input: impl Into<String>) -> Self
Appends an item to ProfileIdsToBeMerged
.
To override the contents of this collection use set_profile_ids_to_be_merged
.
The identifier of the profile to be merged into MainProfileId.
sourcepub fn set_profile_ids_to_be_merged(self, input: Option<Vec<String>>) -> Self
pub fn set_profile_ids_to_be_merged(self, input: Option<Vec<String>>) -> Self
The identifier of the profile to be merged into MainProfileId.
sourcepub fn get_profile_ids_to_be_merged(&self) -> &Option<Vec<String>>
pub fn get_profile_ids_to_be_merged(&self) -> &Option<Vec<String>>
The identifier of the profile to be merged into MainProfileId.
sourcepub fn field_source_profile_ids(self, input: FieldSourceProfileIds) -> Self
pub fn field_source_profile_ids(self, input: FieldSourceProfileIds) -> Self
The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.
sourcepub fn set_field_source_profile_ids(
self,
input: Option<FieldSourceProfileIds>
) -> Self
pub fn set_field_source_profile_ids( self, input: Option<FieldSourceProfileIds> ) -> Self
The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.
sourcepub fn get_field_source_profile_ids(&self) -> &Option<FieldSourceProfileIds>
pub fn get_field_source_profile_ids(&self) -> &Option<FieldSourceProfileIds>
The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.
Trait Implementations§
source§impl Clone for MergeProfilesFluentBuilder
impl Clone for MergeProfilesFluentBuilder
source§fn clone(&self) -> MergeProfilesFluentBuilder
fn clone(&self) -> MergeProfilesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for MergeProfilesFluentBuilder
impl !RefUnwindSafe for MergeProfilesFluentBuilder
impl Send for MergeProfilesFluentBuilder
impl Sync for MergeProfilesFluentBuilder
impl Unpin for MergeProfilesFluentBuilder
impl !UnwindSafe for MergeProfilesFluentBuilder
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