Interface StartEmailContactRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ConnectRequest.Builder
,CopyableBuilder<StartEmailContactRequest.Builder,
,StartEmailContactRequest> SdkBuilder<StartEmailContactRequest.Builder,
,StartEmailContactRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartEmailContactRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault StartEmailContactRequest.Builder
additionalRecipients
(Consumer<InboundAdditionalRecipients.Builder> additionalRecipients) The addtional recipients address of the email.additionalRecipients
(InboundAdditionalRecipients additionalRecipients) The addtional recipients address of the email.attachments
(Collection<EmailAttachment> attachments) List of S3 presigned URLs of email attachments and their file name.attachments
(Consumer<EmailAttachment.Builder>... attachments) List of S3 presigned URLs of email attachments and their file name.attachments
(EmailAttachment... attachments) List of S3 presigned URLs of email attachments and their file name.attributes
(Map<String, String> attributes) A custom key-value pair using an attribute map.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.contactFlowId
(String contactFlowId) The identifier of the flow for initiating the emails.description
(String description) A description of the email contact.destinationEmailAddress
(String destinationEmailAddress) The email address associated with the Amazon Connect instance.default StartEmailContactRequest.Builder
emailMessage
(Consumer<InboundEmailContent.Builder> emailMessage) The email message body to be sent to the newly created email.emailMessage
(InboundEmailContent emailMessage) The email message body to be sent to the newly created email.default StartEmailContactRequest.Builder
fromEmailAddress
(Consumer<EmailAddressInfo.Builder> fromEmailAddress) The email address of the customer.fromEmailAddress
(EmailAddressInfo fromEmailAddress) The email address of the customer.instanceId
(String instanceId) The identifier of the Amazon Connect instance.The name of a email that is shown to an agent in the Contact Control Panel (CCP).overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.references
(Map<String, Reference> references) A formatted URL that is shown to an agent in the Contact Control Panel (CCP).relatedContactId
(String relatedContactId) The contactId that is related to this contact.segmentAttributes
(Map<String, SegmentAttributeValue> segmentAttributes) A set of system defined key-value pairs stored on individual contact segments using an attribute map.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 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.
-
fromEmailAddress
The email address of the customer.
- Parameters:
fromEmailAddress
- The email address of the customer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromEmailAddress
default StartEmailContactRequest.Builder fromEmailAddress(Consumer<EmailAddressInfo.Builder> fromEmailAddress) The email address of the customer.
This is a convenience method that creates an instance of theEmailAddressInfo.Builder
avoiding the need to create one manually viaEmailAddressInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofromEmailAddress(EmailAddressInfo)
.- Parameters:
fromEmailAddress
- a consumer that will call methods onEmailAddressInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationEmailAddress
The email address associated with the Amazon Connect instance.
- Parameters:
destinationEmailAddress
- The email address associated with the Amazon Connect instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the email contact.
- Parameters:
description
- A description of the email contact.- 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). Emails can have the following reference types at the time of creation:
URL
|NUMBER
|STRING
|DATE
.EMAIL
|EMAIL_MESSAGE
|ATTACHMENT
are not a supported reference type during email creation.- Parameters:
references
- A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Emails can have the following reference types at the time of creation:URL
|NUMBER
|STRING
|DATE
.EMAIL
|EMAIL_MESSAGE
|ATTACHMENT
are not a supported reference type during email creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of a email that is shown to an agent in the Contact Control Panel (CCP).
- Parameters:
name
- The name of a email that is shown to an agent in the Contact Control Panel (CCP).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailMessage
The email message body to be sent to the newly created email.
- Parameters:
emailMessage
- The email message body to be sent to the newly created email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailMessage
default StartEmailContactRequest.Builder emailMessage(Consumer<InboundEmailContent.Builder> emailMessage) The email message body to be sent to the newly created email.
This is a convenience method that creates an instance of theInboundEmailContent.Builder
avoiding the need to create one manually viaInboundEmailContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemailMessage(InboundEmailContent)
.- Parameters:
emailMessage
- a consumer that will call methods onInboundEmailContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalRecipients
StartEmailContactRequest.Builder additionalRecipients(InboundAdditionalRecipients additionalRecipients) The addtional recipients address of the email.
- Parameters:
additionalRecipients
- The addtional recipients address of the email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalRecipients
default StartEmailContactRequest.Builder additionalRecipients(Consumer<InboundAdditionalRecipients.Builder> additionalRecipients) The addtional recipients address of the email.
This is a convenience method that creates an instance of theInboundAdditionalRecipients.Builder
avoiding the need to create one manually viaInboundAdditionalRecipients.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalRecipients(InboundAdditionalRecipients)
.- Parameters:
additionalRecipients
- a consumer that will call methods onInboundAdditionalRecipients.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachments
List of S3 presigned URLs of email attachments and their file name.
- Parameters:
attachments
- List of S3 presigned URLs of email attachments and their file name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
List of S3 presigned URLs of email attachments and their file name.
- Parameters:
attachments
- List of S3 presigned URLs of email attachments and their file name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
List of S3 presigned URLs of email attachments and their file name.
This is a convenience method that creates an instance of theEmailAttachment.Builder
avoiding the need to create one manually viaEmailAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<EmailAttachment>)
.- Parameters:
attachments
- a consumer that will call methods onEmailAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contactFlowId
The identifier of the flow for initiating the emails. To see the ContactFlowId in the Amazon Connect admin website, on the navigation menu go to Routing, Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:
arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/ 846ec553-a005-41c0-8341-xxxxxxxxxxxx
- Parameters:
contactFlowId
- The identifier of the flow for initiating the emails. To see the ContactFlowId in the Amazon Connect admin website, on the navigation menu go to Routing, Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/ 846ec553-a005-41c0-8341-xxxxxxxxxxxx
- 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.
-
segmentAttributes
StartEmailContactRequest.Builder segmentAttributes(Map<String, SegmentAttributeValue> segmentAttributes) A set of system defined key-value pairs stored on individual contact segments 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 show channel subtype, such as
connect:Guide
.To set contact expiry, a
ValueMap
must be specified containing the integer number of minutes the contact will be active for before expiring, withSegmentAttributes
like {"connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger":135}}}}
.- Parameters:
segmentAttributes
- A set of system defined key-value pairs stored on individual contact segments 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 show channel subtype, such as
connect:Guide
.To set contact expiry, a
ValueMap
must be specified containing the integer number of minutes the contact will be active for before expiring, withSegmentAttributes
like {"connect:ContactExpiry": {"ValueMap" : { "ExpiryDuration": { "ValueInteger":135}}}}
.- 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.
-
overrideConfiguration
StartEmailContactRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartEmailContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-