/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class StartOutboundVoiceContactRequest : public ConnectRequest { public: AWS_CONNECT_API StartOutboundVoiceContactRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartOutboundVoiceContact"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

The phone number of the customer, in E.164 format.

*/ inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } /** *

The phone number of the customer, in E.164 format.

*/ inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } /** *

The phone number of the customer, in E.164 format.

*/ inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } /** *

The phone number of the customer, in E.164 format.

*/ inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } /** *

The phone number of the customer, in E.164 format.

*/ inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } /** *

The phone number of the customer, in E.164 format.

*/ inline StartOutboundVoiceContactRequest& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} /** *

The phone number of the customer, in E.164 format.

*/ inline StartOutboundVoiceContactRequest& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} /** *

The phone number of the customer, in E.164 format.

*/ inline StartOutboundVoiceContactRequest& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; } /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; } /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; } /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); } /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); } /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline StartOutboundVoiceContactRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;} /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline StartOutboundVoiceContactRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;} /** *

The identifier of the flow for the outbound call. To see the ContactFlowId in * the Amazon Connect console user interface, on the navigation menu go to * Routing, Contact 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 *

*/ inline StartOutboundVoiceContactRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline StartOutboundVoiceContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline StartOutboundVoiceContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline StartOutboundVoiceContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline const Aws::String& GetClientToken() const{ return m_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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline StartOutboundVoiceContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline StartOutboundVoiceContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

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. The token is valid for 7 days after * creation. If a contact is already started, the contact ID is returned.

*/ inline StartOutboundVoiceContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline const Aws::String& GetSourcePhoneNumber() const{ return m_sourcePhoneNumber; } /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline bool SourcePhoneNumberHasBeenSet() const { return m_sourcePhoneNumberHasBeenSet; } /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline void SetSourcePhoneNumber(const Aws::String& value) { m_sourcePhoneNumberHasBeenSet = true; m_sourcePhoneNumber = value; } /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline void SetSourcePhoneNumber(Aws::String&& value) { m_sourcePhoneNumberHasBeenSet = true; m_sourcePhoneNumber = std::move(value); } /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline void SetSourcePhoneNumber(const char* value) { m_sourcePhoneNumberHasBeenSet = true; m_sourcePhoneNumber.assign(value); } /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline StartOutboundVoiceContactRequest& WithSourcePhoneNumber(const Aws::String& value) { SetSourcePhoneNumber(value); return *this;} /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline StartOutboundVoiceContactRequest& WithSourcePhoneNumber(Aws::String&& value) { SetSourcePhoneNumber(std::move(value)); return *this;} /** *

The phone number associated with the Amazon Connect instance, in E.164 * format. If you do not specify a source phone number, you must specify a * queue.

*/ inline StartOutboundVoiceContactRequest& WithSourcePhoneNumber(const char* value) { SetSourcePhoneNumber(value); return *this;} /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline const Aws::String& GetQueueId() const{ return m_queueId; } /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; } /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; } /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); } /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); } /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline StartOutboundVoiceContactRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;} /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline StartOutboundVoiceContactRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;} /** *

The queue for the call. 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 defined in the flow is used. If you do not specify a queue, you * must specify a source phone number.

*/ inline StartOutboundVoiceContactRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;} /** *

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.

*/ inline const Aws::Map& GetAttributes() const{ return m_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.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

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.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

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.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

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.

*/ inline StartOutboundVoiceContactRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

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.

*/ inline StartOutboundVoiceContactRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline StartOutboundVoiceContactRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Configuration of the answering machine detection for this outbound call.

*/ inline const AnswerMachineDetectionConfig& GetAnswerMachineDetectionConfig() const{ return m_answerMachineDetectionConfig; } /** *

Configuration of the answering machine detection for this outbound call.

*/ inline bool AnswerMachineDetectionConfigHasBeenSet() const { return m_answerMachineDetectionConfigHasBeenSet; } /** *

Configuration of the answering machine detection for this outbound call.

*/ inline void SetAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = value; } /** *

Configuration of the answering machine detection for this outbound call.

*/ inline void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = std::move(value); } /** *

Configuration of the answering machine detection for this outbound call.

*/ inline StartOutboundVoiceContactRequest& WithAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { SetAnswerMachineDetectionConfig(value); return *this;} /** *

Configuration of the answering machine detection for this outbound call.

*/ inline StartOutboundVoiceContactRequest& WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { SetAnswerMachineDetectionConfig(std::move(value)); return *this;} /** *

The campaign identifier of the outbound communication.

*/ inline const Aws::String& GetCampaignId() const{ return m_campaignId; } /** *

The campaign identifier of the outbound communication.

*/ inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; } /** *

The campaign identifier of the outbound communication.

*/ inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; } /** *

The campaign identifier of the outbound communication.

*/ inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); } /** *

The campaign identifier of the outbound communication.

*/ inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); } /** *

The campaign identifier of the outbound communication.

*/ inline StartOutboundVoiceContactRequest& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;} /** *

The campaign identifier of the outbound communication.

*/ inline StartOutboundVoiceContactRequest& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;} /** *

The campaign identifier of the outbound communication.

*/ inline StartOutboundVoiceContactRequest& WithCampaignId(const char* value) { SetCampaignId(value); return *this;} /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline const TrafficType& GetTrafficType() const{ return m_trafficType; } /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; } /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline void SetTrafficType(const TrafficType& value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; } /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline void SetTrafficType(TrafficType&& value) { m_trafficTypeHasBeenSet = true; m_trafficType = std::move(value); } /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline StartOutboundVoiceContactRequest& WithTrafficType(const TrafficType& value) { SetTrafficType(value); return *this;} /** *

Denotes the class of traffic. Calls with different traffic types are handled * differently by Amazon Connect. The default value is GENERAL. Use * CAMPAIGN if EnableAnswerMachineDetection is set to * true. For all other cases, use GENERAL.

*/ inline StartOutboundVoiceContactRequest& WithTrafficType(TrafficType&& value) { SetTrafficType(std::move(value)); return *this;} private: Aws::String m_destinationPhoneNumber; bool m_destinationPhoneNumberHasBeenSet = false; Aws::String m_contactFlowId; bool m_contactFlowIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_sourcePhoneNumber; bool m_sourcePhoneNumberHasBeenSet = false; Aws::String m_queueId; bool m_queueIdHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; AnswerMachineDetectionConfig m_answerMachineDetectionConfig; bool m_answerMachineDetectionConfigHasBeenSet = false; Aws::String m_campaignId; bool m_campaignIdHasBeenSet = false; TrafficType m_trafficType; bool m_trafficTypeHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws