Interface CreateContactRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateContactRequest.Builder,,CreateContactRequest> SdkBuilder<CreateContactRequest.Builder,,CreateContactRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateContactRequest
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, String> attributes) A custom key-value pair using an attribute map.The channel for the contactThe channel for the contactclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description(String description) A description of the contact.expiryDurationInMinutes(Integer expiryDurationInMinutes) Number of minutes the contact will be active for before expiringinitiateAs(String initiateAs) Initial state of the contact when it's createdinitiateAs(InitiateAs initiateAs) Initial state of the contact when it's createdinitiationMethod(String initiationMethod) Indicates how the contact was initiated.initiationMethod(ContactInitiationMethod initiationMethod) Indicates how the contact was initiated.instanceId(String instanceId) The identifier of the Amazon Connect instance.The name of a the contact.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.previousContactId(String previousContactId) The ID of the previous contact when creating a transfer contact.references(Map<String, Reference> references) A formatted URL that is shown to an agent in the Contact Control Panel (CCP).relatedContactId(String relatedContactId) The unique identifier for an Amazon Connect contact.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.default CreateContactRequest.BuilderuserInfo(Consumer<UserInfo.Builder> userInfo) User details for the contactUser details for the contactMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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.
-
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
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
The channel for the contact
CreateContact only supports the EMAIL channel. The following information that states other channels are supported is incorrect. We are working to update this topic.
- Parameters:
channel- The channel for the contactCreateContact only supports the EMAIL channel. The following information that states other channels are supported is incorrect. We are working to update this topic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
channel
The channel for the contact
CreateContact only supports the EMAIL channel. The following information that states other channels are supported is incorrect. We are working to update this topic.
- Parameters:
channel- The channel for the contactCreateContact only supports the EMAIL channel. The following information that states other channels are supported is incorrect. We are working to update this topic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
initiationMethod
Indicates how the contact was initiated.
CreateContact only supports the following initiation methods: OUTBOUND, AGENT_REPLY, and FLOW. The following information that states other initiation methods are supported is incorrect. We are working to update this topic.
- Parameters:
initiationMethod- Indicates how the contact was initiated.CreateContact only supports the following initiation methods: OUTBOUND, AGENT_REPLY, and FLOW. The following information that states other initiation methods are supported is incorrect. We are working to update this topic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
initiationMethod
Indicates how the contact was initiated.
CreateContact only supports the following initiation methods: OUTBOUND, AGENT_REPLY, and FLOW. The following information that states other initiation methods are supported is incorrect. We are working to update this topic.
- Parameters:
initiationMethod- Indicates how the contact was initiated.CreateContact only supports the following initiation methods: OUTBOUND, AGENT_REPLY, and FLOW. The following information that states other initiation methods are supported is incorrect. We are working to update this topic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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:
-
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
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:
-
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
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
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.
-
previousContactId
The ID of the previous contact when creating a transfer contact. This value can be provided only for external audio contacts. For more information, see Integrate Amazon Connect Contact Lens with external voice systems in the Amazon Connect Administrator Guide.
- Parameters:
previousContactId- The ID of the previous contact when creating a transfer contact. This value can be provided only for external audio contacts. For more information, see Integrate Amazon Connect Contact Lens with external voice systems in the Amazon Connect Administrator Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-