Interface CreateContactRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateContactRequest.Builder,CreateContactRequest>,SdkBuilder<CreateContactRequest.Builder,CreateContactRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateContactRequest
public static interface CreateContactRequest.Builder extends ConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateContactRequest.Builder,CreateContactRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateContactRequest.Builderattributes(Map<String,String> attributes)A custom key-value pair using an attribute map.CreateContactRequest.Builderchannel(String channel)The channel for the contactCreateContactRequest.Builderchannel(Channel channel)The channel for the contactCreateContactRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateContactRequest.Builderdescription(String description)A description of the contact.CreateContactRequest.BuilderexpiryDurationInMinutes(Integer expiryDurationInMinutes)Number of minutes the contact will be active for before expiringCreateContactRequest.BuilderinitiateAs(String initiateAs)Initial state of the contact when it's createdCreateContactRequest.BuilderinitiateAs(InitiateAs initiateAs)Initial state of the contact when it's createdCreateContactRequest.BuilderinitiationMethod(String initiationMethod)Indicates how the contact was initiated.CreateContactRequest.BuilderinitiationMethod(ContactInitiationMethod initiationMethod)Indicates how the contact was initiated.CreateContactRequest.BuilderinstanceId(String instanceId)The identifier of the Amazon Connect instance.CreateContactRequest.Buildername(String name)The name of a the contact.CreateContactRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateContactRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateContactRequest.Builderreferences(Map<String,Reference> references)A formatted URL that is shown to an agent in the Contact Control Panel (CCP).CreateContactRequest.BuilderrelatedContactId(String relatedContactId)The identifier of the contact in this instance of Amazon Connect.CreateContactRequest.BuildersegmentAttributes(Map<String,SegmentAttributeValue> segmentAttributes)A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map.default CreateContactRequest.BuilderuserInfo(Consumer<UserInfo.Builder> userInfo)User details for the contactCreateContactRequest.BuilderuserInfo(UserInfo userInfo)User details for the contact-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
build
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
instanceId
CreateContactRequest.Builder instanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateContactRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relatedContactId
CreateContactRequest.Builder relatedContactId(String relatedContactId)
The identifier of the contact in this instance of Amazon Connect.
- Parameters:
relatedContactId- The identifier of the contact in this instance of Amazon Connect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
CreateContactRequest.Builder attributes(Map<String,String> attributes)
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
- Parameters:
attributes- A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in flows just like any other contact attributes.There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
CreateContactRequest.Builder references(Map<String,Reference> references)
A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL | ATTACHMENT.
- Parameters:
references- A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL | ATTACHMENT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channel
CreateContactRequest.Builder channel(String channel)
The channel for the contact
-
channel
CreateContactRequest.Builder channel(Channel channel)
The channel for the contact
-
initiationMethod
CreateContactRequest.Builder initiationMethod(String initiationMethod)
Indicates how the contact was initiated.
- Parameters:
initiationMethod- Indicates how the contact was initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContactInitiationMethod,ContactInitiationMethod
-
initiationMethod
CreateContactRequest.Builder initiationMethod(ContactInitiationMethod initiationMethod)
Indicates how the contact was initiated.
- Parameters:
initiationMethod- Indicates how the contact was initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContactInitiationMethod,ContactInitiationMethod
-
expiryDurationInMinutes
CreateContactRequest.Builder expiryDurationInMinutes(Integer expiryDurationInMinutes)
Number of minutes the contact will be active for before expiring
- Parameters:
expiryDurationInMinutes- Number of minutes the contact will be active for before expiring- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userInfo
CreateContactRequest.Builder userInfo(UserInfo userInfo)
User details for the contact
- Parameters:
userInfo- User details for the contact- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userInfo
default CreateContactRequest.Builder userInfo(Consumer<UserInfo.Builder> userInfo)
User details for the contact
This is a convenience method that creates an instance of theUserInfo.Builderavoiding the need to create one manually viaUserInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserInfo(UserInfo).- Parameters:
userInfo- a consumer that will call methods onUserInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userInfo(UserInfo)
-
initiateAs
CreateContactRequest.Builder initiateAs(String initiateAs)
Initial state of the contact when it's created
- Parameters:
initiateAs- Initial state of the contact when it's created- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InitiateAs,InitiateAs
-
initiateAs
CreateContactRequest.Builder initiateAs(InitiateAs initiateAs)
Initial state of the contact when it's created
- Parameters:
initiateAs- Initial state of the contact when it's created- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InitiateAs,InitiateAs
-
name
CreateContactRequest.Builder name(String name)
The name of a the contact.
- Parameters:
name- The name of a the contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateContactRequest.Builder description(String description)
A description of the contact.
- Parameters:
description- A description of the contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segmentAttributes
CreateContactRequest.Builder segmentAttributes(Map<String,SegmentAttributeValue> segmentAttributes)
A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows.
Attribute keys can include only alphanumeric, -, and _.
This field can be used to set Segment Contact Expiry as a duration in minutes.
To set contact expiry, a ValueMap must be specified containing the integer number of minutes the contact will be active for before expiring, with
SegmentAttributeslike {"connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger": 135}}}}.- Parameters:
segmentAttributes- A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows.Attribute keys can include only alphanumeric, -, and _.
This field can be used to set Segment Contact Expiry as a duration in minutes.
To set contact expiry, a ValueMap must be specified containing the integer number of minutes the contact will be active for before expiring, with
SegmentAttributeslike {"connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger": 135}}}}.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-