@Generated(value="software.amazon.awssdk:codegen") public final class StartOutboundVoiceContactRequest extends ConnectRequest implements ToCopyableBuilder<StartOutboundVoiceContactRequest.Builder,StartOutboundVoiceContactRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
StartOutboundVoiceContactRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
attributes()
Specify a custom key-value pair using an attribute map.
|
static StartOutboundVoiceContactRequest.Builder |
builder() |
String |
clientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
contactFlowId()
The identifier for the contact flow to connect the outbound call to.
|
String |
destinationPhoneNumber()
The phone number of the customer in E.164 format.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceId()
The identifier for your Amazon Connect instance.
|
String |
queueId()
The queue to add the call to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartOutboundVoiceContactRequest.Builder> |
serializableBuilderClass() |
String |
sourcePhoneNumber()
The phone number, in E.164 format, associated with your Amazon Connect instance to use for the outbound call.
|
StartOutboundVoiceContactRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String destinationPhoneNumber()
The phone number of the customer in E.164 format.
public String contactFlowId()
The identifier for the contact flow to connect the outbound call to.
To find the ContactFlowId
, open the contact flow you want to use in the Amazon Connect contact flow
editor. The ID for the contact flow is displayed in the address bar as part of the URL. For example, the contact
flow ID is the set of characters at the end of the URL, after 'contact-flow/' such as
78ea8fd5-2659-4f2b-b528-699760ccfc1b
.
To find the ContactFlowId
, open the contact flow you want to use in the Amazon Connect
contact flow editor. The ID for the contact flow is displayed in the address bar as part of the URL. For
example, the contact flow ID is the set of characters at the end of the URL, after 'contact-flow/' such
as 78ea8fd5-2659-4f2b-b528-699760ccfc1b
.
public String instanceId()
The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
public String clientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned. If the contact is disconnected, a new contact is started.
public String sourcePhoneNumber()
The phone number, in E.164 format, associated with your Amazon Connect instance to use for the outbound call.
public String queueId()
The queue to add the call to. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue used will be the queue defined in the contact flow.
To find the QueueId
, open the queue you want to use in the Amazon Connect Queue editor. The ID for
the queue is displayed in the address bar as part of the URL. For example, the queue ID is the set of characters
at the end of the URL, after 'queue/' such as queue/aeg40574-2d01-51c3-73d6-bf8624d2168c
.
To find the QueueId
, open the queue you want to use in the Amazon Connect Queue editor. The
ID for the queue is displayed in the address bar as part of the URL. For example, the queue ID is the set
of characters at the end of the URL, after 'queue/' such as
queue/aeg40574-2d01-51c3-73d6-bf8624d2168c
.
public Map<String,String> attributes()
Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs. Attribute keys can include only alphanumeric, dash, and underscore characters.
For example, if you want play a greeting when the customer answers the call, you can pass the customer name in attributes similar to the following:
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
There can be up to 32,768 UTF-8 bytes across all key-value pairs. Attribute keys can include only alphanumeric, dash, and underscore characters.
For example, if you want play a greeting when the customer answers the call, you can pass the customer name in attributes similar to the following:
public StartOutboundVoiceContactRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StartOutboundVoiceContactRequest.Builder,StartOutboundVoiceContactRequest>
toBuilder
in class ConnectRequest
public static StartOutboundVoiceContactRequest.Builder builder()
public static Class<? extends StartOutboundVoiceContactRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.