Struct aws_sdk_connect::operation::start_outbound_voice_contact::builders::StartOutboundVoiceContactInputBuilder
source · #[non_exhaustive]pub struct StartOutboundVoiceContactInputBuilder { /* private fields */ }
Expand description
A builder for StartOutboundVoiceContactInput
.
Implementations§
source§impl StartOutboundVoiceContactInputBuilder
impl StartOutboundVoiceContactInputBuilder
sourcepub fn destination_phone_number(self, input: impl Into<String>) -> Self
pub fn destination_phone_number(self, input: impl Into<String>) -> Self
The phone number of the customer, in E.164 format.
sourcepub fn set_destination_phone_number(self, input: Option<String>) -> Self
pub fn set_destination_phone_number(self, input: Option<String>) -> Self
The phone number of the customer, in E.164 format.
sourcepub fn contact_flow_id(self, input: impl Into<String>) -> Self
pub fn contact_flow_id(self, input: impl Into<String>) -> Self
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
sourcepub fn set_contact_flow_id(self, input: Option<String>) -> Self
pub fn set_contact_flow_id(self, input: Option<String>) -> Self
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
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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.
sourcepub fn source_phone_number(self, input: impl Into<String>) -> Self
pub fn source_phone_number(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_source_phone_number(self, input: Option<String>) -> Self
pub fn set_source_phone_number(self, input: Option<String>) -> Self
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.
sourcepub fn queue_id(self, input: impl Into<String>) -> Self
pub fn queue_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_queue_id(self, input: Option<String>) -> Self
pub fn set_queue_id(self, input: Option<String>) -> Self
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.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_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.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
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.
sourcepub fn answer_machine_detection_config(
self,
input: AnswerMachineDetectionConfig
) -> Self
pub fn answer_machine_detection_config( self, input: AnswerMachineDetectionConfig ) -> Self
Configuration of the answering machine detection for this outbound call.
sourcepub fn set_answer_machine_detection_config(
self,
input: Option<AnswerMachineDetectionConfig>
) -> Self
pub fn set_answer_machine_detection_config( self, input: Option<AnswerMachineDetectionConfig> ) -> Self
Configuration of the answering machine detection for this outbound call.
sourcepub fn campaign_id(self, input: impl Into<String>) -> Self
pub fn campaign_id(self, input: impl Into<String>) -> Self
The campaign identifier of the outbound communication.
sourcepub fn set_campaign_id(self, input: Option<String>) -> Self
pub fn set_campaign_id(self, input: Option<String>) -> Self
The campaign identifier of the outbound communication.
sourcepub fn traffic_type(self, input: TrafficType) -> Self
pub fn traffic_type(self, input: TrafficType) -> Self
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
.
sourcepub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
pub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
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
.
sourcepub fn build(self) -> Result<StartOutboundVoiceContactInput, BuildError>
pub fn build(self) -> Result<StartOutboundVoiceContactInput, BuildError>
Consumes the builder and constructs a StartOutboundVoiceContactInput
.
Trait Implementations§
source§impl Clone for StartOutboundVoiceContactInputBuilder
impl Clone for StartOutboundVoiceContactInputBuilder
source§fn clone(&self) -> StartOutboundVoiceContactInputBuilder
fn clone(&self) -> StartOutboundVoiceContactInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartOutboundVoiceContactInputBuilder
impl Default for StartOutboundVoiceContactInputBuilder
source§fn default() -> StartOutboundVoiceContactInputBuilder
fn default() -> StartOutboundVoiceContactInputBuilder
source§impl PartialEq<StartOutboundVoiceContactInputBuilder> for StartOutboundVoiceContactInputBuilder
impl PartialEq<StartOutboundVoiceContactInputBuilder> for StartOutboundVoiceContactInputBuilder
source§fn eq(&self, other: &StartOutboundVoiceContactInputBuilder) -> bool
fn eq(&self, other: &StartOutboundVoiceContactInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.