pub struct CreateQueueFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateQueue
.
This API is in preview release for Amazon Connect and is subject to change.
Creates a new queue for the specified Amazon Connect instance.
-
If the phone number is claimed to a traffic distribution group that was created in the same Region as the Amazon Connect instance where you are calling this API, then you can use a full phone number ARN or a UUID for
OutboundCallerIdNumberId
. However, if the phone number is claimed to a traffic distribution group that is in one Region, and you are calling this API from an instance in another Amazon Web Services Region that is associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive aResourceNotFoundException
. -
Only use the phone number ARN format that doesn't contain
instance
in the path, for example,arn:aws:connect:us-east-1:1234567890:phone-number/uuid
. This is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. -
If you plan to use IAM policies to allow/deny access to this API for phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica Region.
Implementations§
source§impl CreateQueueFluentBuilder
impl CreateQueueFluentBuilder
sourcepub fn as_input(&self) -> &CreateQueueInputBuilder
pub fn as_input(&self) -> &CreateQueueInputBuilder
Access the CreateQueue as a reference.
sourcepub async fn send(
self
) -> Result<CreateQueueOutput, SdkError<CreateQueueError, HttpResponse>>
pub async fn send( self ) -> Result<CreateQueueOutput, SdkError<CreateQueueError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateQueueOutput, CreateQueueError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateQueueOutput, CreateQueueError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 instance ID in the Amazon Resource Name (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 instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the queue.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the queue.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the queue.
sourcepub fn outbound_caller_config(self, input: OutboundCallerConfig) -> Self
pub fn outbound_caller_config(self, input: OutboundCallerConfig) -> Self
The outbound caller ID name, number, and outbound whisper flow.
sourcepub fn set_outbound_caller_config(
self,
input: Option<OutboundCallerConfig>
) -> Self
pub fn set_outbound_caller_config( self, input: Option<OutboundCallerConfig> ) -> Self
The outbound caller ID name, number, and outbound whisper flow.
sourcepub fn get_outbound_caller_config(&self) -> &Option<OutboundCallerConfig>
pub fn get_outbound_caller_config(&self) -> &Option<OutboundCallerConfig>
The outbound caller ID name, number, and outbound whisper flow.
sourcepub fn hours_of_operation_id(self, input: impl Into<String>) -> Self
pub fn hours_of_operation_id(self, input: impl Into<String>) -> Self
The identifier for the hours of operation.
sourcepub fn set_hours_of_operation_id(self, input: Option<String>) -> Self
pub fn set_hours_of_operation_id(self, input: Option<String>) -> Self
The identifier for the hours of operation.
sourcepub fn get_hours_of_operation_id(&self) -> &Option<String>
pub fn get_hours_of_operation_id(&self) -> &Option<String>
The identifier for the hours of operation.
sourcepub fn max_contacts(self, input: i32) -> Self
pub fn max_contacts(self, input: i32) -> Self
The maximum number of contacts that can be in the queue before it is considered full.
sourcepub fn set_max_contacts(self, input: Option<i32>) -> Self
pub fn set_max_contacts(self, input: Option<i32>) -> Self
The maximum number of contacts that can be in the queue before it is considered full.
sourcepub fn get_max_contacts(&self) -> &Option<i32>
pub fn get_max_contacts(&self) -> &Option<i32>
The maximum number of contacts that can be in the queue before it is considered full.
sourcepub fn quick_connect_ids(self, input: impl Into<String>) -> Self
pub fn quick_connect_ids(self, input: impl Into<String>) -> Self
Appends an item to QuickConnectIds
.
To override the contents of this collection use set_quick_connect_ids
.
The quick connects available to agents who are working the queue.
sourcepub fn set_quick_connect_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_quick_connect_ids(self, input: Option<Vec<String>>) -> Self
The quick connects available to agents who are working the queue.
sourcepub fn get_quick_connect_ids(&self) -> &Option<Vec<String>>
pub fn get_quick_connect_ids(&self) -> &Option<Vec<String>>
The quick connects available to agents who are working the queue.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Trait Implementations§
source§impl Clone for CreateQueueFluentBuilder
impl Clone for CreateQueueFluentBuilder
source§fn clone(&self) -> CreateQueueFluentBuilder
fn clone(&self) -> CreateQueueFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more