Interface Profile.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Profile.Builder,Profile>,SdkBuilder<Profile.Builder,Profile>,SdkPojo
- Enclosing class:
- Profile
public static interface Profile.Builder extends SdkPojo, CopyableBuilder<Profile.Builder,Profile>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Profile.BuilderaccountNumber(String accountNumber)A unique account number that you have given to the customer.Profile.BuilderadditionalInformation(String additionalInformation)Any additional information relevant to the customer’s profile.default Profile.Builderaddress(Consumer<Address.Builder> address)A generic address associated with the customer that is not mailing, shipping, or billing.Profile.Builderaddress(Address address)A generic address associated with the customer that is not mailing, shipping, or billing.Profile.Builderattributes(Map<String,String> attributes)A key value pair of attributes of a customer profile.default Profile.BuilderbillingAddress(Consumer<Address.Builder> billingAddress)The customer’s billing address.Profile.BuilderbillingAddress(Address billingAddress)The customer’s billing address.Profile.BuilderbirthDate(String birthDate)The customer’s birth date.Profile.BuilderbusinessEmailAddress(String businessEmailAddress)The customer’s business email address.Profile.BuilderbusinessName(String businessName)The name of the customer’s business.Profile.BuilderbusinessPhoneNumber(String businessPhoneNumber)The customer’s home phone number.Profile.BuilderemailAddress(String emailAddress)The customer’s email address, which has not been specified as a personal or business address.Profile.BuilderfirstName(String firstName)The customer’s first name.Profile.BuilderfoundByItems(Collection<FoundByKeyValue> foundByItems)A list of items used to find a profile returned in a SearchProfiles response.Profile.BuilderfoundByItems(Consumer<FoundByKeyValue.Builder>... foundByItems)A list of items used to find a profile returned in a SearchProfiles response.Profile.BuilderfoundByItems(FoundByKeyValue... foundByItems)A list of items used to find a profile returned in a SearchProfiles response.Profile.Buildergender(String gender)The gender with which the customer identifies.Profile.Buildergender(Gender gender)The gender with which the customer identifies.Profile.BuildergenderString(String genderString)An alternative to Gender which accepts any string as input.Profile.BuilderhomePhoneNumber(String homePhoneNumber)The customer’s home phone number.Profile.BuilderlastName(String lastName)The customer’s last name.default Profile.BuildermailingAddress(Consumer<Address.Builder> mailingAddress)The customer’s mailing address.Profile.BuildermailingAddress(Address mailingAddress)The customer’s mailing address.Profile.BuildermiddleName(String middleName)The customer’s middle name.Profile.BuildermobilePhoneNumber(String mobilePhoneNumber)The customer’s mobile phone number.Profile.BuilderpartyType(String partyType)The type of profile used to describe the customer.Profile.BuilderpartyType(PartyType partyType)The type of profile used to describe the customer.Profile.BuilderpartyTypeString(String partyTypeString)An alternative to PartyType which accepts any string as input.Profile.BuilderpersonalEmailAddress(String personalEmailAddress)The customer’s personal email address.Profile.BuilderphoneNumber(String phoneNumber)The customer's phone number, which has not been specified as a mobile, home, or business number.Profile.BuilderprofileId(String profileId)The unique identifier of a customer profile.default Profile.BuildershippingAddress(Consumer<Address.Builder> shippingAddress)The customer’s shipping address.Profile.BuildershippingAddress(Address shippingAddress)The customer’s shipping address.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
profileId
Profile.Builder profileId(String profileId)
The unique identifier of a customer profile.
- Parameters:
profileId- The unique identifier of a customer profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountNumber
Profile.Builder accountNumber(String accountNumber)
A unique account number that you have given to the customer.
- Parameters:
accountNumber- A unique account number that you have given to the customer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInformation
Profile.Builder additionalInformation(String additionalInformation)
Any additional information relevant to the customer’s profile.
- Parameters:
additionalInformation- Any additional information relevant to the customer’s profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partyType
Profile.Builder partyType(String partyType)
The type of profile used to describe the customer.
-
partyType
Profile.Builder partyType(PartyType partyType)
The type of profile used to describe the customer.
-
businessName
Profile.Builder businessName(String businessName)
The name of the customer’s business.
- Parameters:
businessName- The name of the customer’s business.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firstName
Profile.Builder firstName(String firstName)
The customer’s first name.
- Parameters:
firstName- The customer’s first name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
middleName
Profile.Builder middleName(String middleName)
The customer’s middle name.
- Parameters:
middleName- The customer’s middle name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastName
Profile.Builder lastName(String lastName)
The customer’s last name.
- Parameters:
lastName- The customer’s last name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
birthDate
Profile.Builder birthDate(String birthDate)
The customer’s birth date.
- Parameters:
birthDate- The customer’s birth date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gender
Profile.Builder gender(String gender)
The gender with which the customer identifies.
-
gender
Profile.Builder gender(Gender gender)
The gender with which the customer identifies.
-
phoneNumber
Profile.Builder phoneNumber(String phoneNumber)
The customer's phone number, which has not been specified as a mobile, home, or business number.
- Parameters:
phoneNumber- The customer's phone number, which has not been specified as a mobile, home, or business number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mobilePhoneNumber
Profile.Builder mobilePhoneNumber(String mobilePhoneNumber)
The customer’s mobile phone number.
- Parameters:
mobilePhoneNumber- The customer’s mobile phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
homePhoneNumber
Profile.Builder homePhoneNumber(String homePhoneNumber)
The customer’s home phone number.
- Parameters:
homePhoneNumber- The customer’s home phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
businessPhoneNumber
Profile.Builder businessPhoneNumber(String businessPhoneNumber)
The customer’s home phone number.
- Parameters:
businessPhoneNumber- The customer’s home phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailAddress
Profile.Builder emailAddress(String emailAddress)
The customer’s email address, which has not been specified as a personal or business address.
- Parameters:
emailAddress- The customer’s email address, which has not been specified as a personal or business address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
personalEmailAddress
Profile.Builder personalEmailAddress(String personalEmailAddress)
The customer’s personal email address.
- Parameters:
personalEmailAddress- The customer’s personal email address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
businessEmailAddress
Profile.Builder businessEmailAddress(String businessEmailAddress)
The customer’s business email address.
- Parameters:
businessEmailAddress- The customer’s business email address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
address
Profile.Builder address(Address address)
A generic address associated with the customer that is not mailing, shipping, or billing.
- Parameters:
address- A generic address associated with the customer that is not mailing, shipping, or billing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
address
default Profile.Builder address(Consumer<Address.Builder> address)
A generic address associated with the customer that is not mailing, shipping, or billing.
This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddress(Address).- Parameters:
address- a consumer that will call methods onAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
address(Address)
-
shippingAddress
Profile.Builder shippingAddress(Address shippingAddress)
The customer’s shipping address.
- Parameters:
shippingAddress- The customer’s shipping address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shippingAddress
default Profile.Builder shippingAddress(Consumer<Address.Builder> shippingAddress)
The customer’s shipping address.
This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshippingAddress(Address).- Parameters:
shippingAddress- a consumer that will call methods onAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
shippingAddress(Address)
-
mailingAddress
Profile.Builder mailingAddress(Address mailingAddress)
The customer’s mailing address.
- Parameters:
mailingAddress- The customer’s mailing address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mailingAddress
default Profile.Builder mailingAddress(Consumer<Address.Builder> mailingAddress)
The customer’s mailing address.
This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomailingAddress(Address).- Parameters:
mailingAddress- a consumer that will call methods onAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mailingAddress(Address)
-
billingAddress
Profile.Builder billingAddress(Address billingAddress)
The customer’s billing address.
- Parameters:
billingAddress- The customer’s billing address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingAddress
default Profile.Builder billingAddress(Consumer<Address.Builder> billingAddress)
The customer’s billing address.
This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobillingAddress(Address).- Parameters:
billingAddress- a consumer that will call methods onAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
billingAddress(Address)
-
attributes
Profile.Builder attributes(Map<String,String> attributes)
A key value pair of attributes of a customer profile.
- Parameters:
attributes- A key value pair of attributes of a customer profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
foundByItems
Profile.Builder foundByItems(Collection<FoundByKeyValue> foundByItems)
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional
AdditionalSearchKeysparameter was included in the SearchProfiles request, theFoundByItemslist should be interpreted based on theLogicalOperatorused in the request:-
AND- The profile included in the response matched all of the search keys specified in the request. TheFoundByItemswill include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofANDsearch logic). -
OR- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItemswill include each of the key-value(s) pairs that the profile was found by.
The
ORrelationship is the default behavior if theLogicalOperatorparameter is not included in the SearchProfiles request.- Parameters:
foundByItems- A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.If the optional
AdditionalSearchKeysparameter was included in the SearchProfiles request, theFoundByItemslist should be interpreted based on theLogicalOperatorused in the request:-
AND- The profile included in the response matched all of the search keys specified in the request. TheFoundByItemswill include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofANDsearch logic). -
OR- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItemswill include each of the key-value(s) pairs that the profile was found by.
The
ORrelationship is the default behavior if theLogicalOperatorparameter is not included in the SearchProfiles request.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
foundByItems
Profile.Builder foundByItems(FoundByKeyValue... foundByItems)
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional
AdditionalSearchKeysparameter was included in the SearchProfiles request, theFoundByItemslist should be interpreted based on theLogicalOperatorused in the request:-
AND- The profile included in the response matched all of the search keys specified in the request. TheFoundByItemswill include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofANDsearch logic). -
OR- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItemswill include each of the key-value(s) pairs that the profile was found by.
The
ORrelationship is the default behavior if theLogicalOperatorparameter is not included in the SearchProfiles request.- Parameters:
foundByItems- A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.If the optional
AdditionalSearchKeysparameter was included in the SearchProfiles request, theFoundByItemslist should be interpreted based on theLogicalOperatorused in the request:-
AND- The profile included in the response matched all of the search keys specified in the request. TheFoundByItemswill include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofANDsearch logic). -
OR- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItemswill include each of the key-value(s) pairs that the profile was found by.
The
ORrelationship is the default behavior if theLogicalOperatorparameter is not included in the SearchProfiles request.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
foundByItems
Profile.Builder foundByItems(Consumer<FoundByKeyValue.Builder>... foundByItems)
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional
AdditionalSearchKeysparameter was included in the SearchProfiles request, theFoundByItemslist should be interpreted based on theLogicalOperatorused in the request:-
AND- The profile included in the response matched all of the search keys specified in the request. TheFoundByItemswill include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofANDsearch logic). -
OR- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItemswill include each of the key-value(s) pairs that the profile was found by.
The
This is a convenience method that creates an instance of theORrelationship is the default behavior if theLogicalOperatorparameter is not included in the SearchProfiles request.FoundByKeyValue.Builderavoiding the need to create one manually viaFoundByKeyValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#foundByItems(List.) - Parameters:
foundByItems- a consumer that will call methods onFoundByKeyValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#foundByItems(java.util.Collection)
-
-
partyTypeString
Profile.Builder partyTypeString(String partyTypeString)
An alternative to PartyType which accepts any string as input.
- Parameters:
partyTypeString- An alternative to PartyType which accepts any string as input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
genderString
Profile.Builder genderString(String genderString)
An alternative to Gender which accepts any string as input.
- Parameters:
genderString- An alternative to Gender which accepts any string as input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-