/** * 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 CreateRoutingProfileRequest : public ConnectRequest { public: AWS_CONNECT_API CreateRoutingProfileRequest(); // 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 "CreateRoutingProfile"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

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 CreateRoutingProfileRequest& 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 CreateRoutingProfileRequest& 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 CreateRoutingProfileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline CreateRoutingProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline CreateRoutingProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the routing profile. Must not be more than 127 characters.

*/ inline CreateRoutingProfileRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline CreateRoutingProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline CreateRoutingProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Description of the routing profile. Must not be more than 250 characters.

*/ inline CreateRoutingProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The default outbound queue for the routing profile.

*/ inline const Aws::String& GetDefaultOutboundQueueId() const{ return m_defaultOutboundQueueId; } /** *

The default outbound queue for the routing profile.

*/ inline bool DefaultOutboundQueueIdHasBeenSet() const { return m_defaultOutboundQueueIdHasBeenSet; } /** *

The default outbound queue for the routing profile.

*/ inline void SetDefaultOutboundQueueId(const Aws::String& value) { m_defaultOutboundQueueIdHasBeenSet = true; m_defaultOutboundQueueId = value; } /** *

The default outbound queue for the routing profile.

*/ inline void SetDefaultOutboundQueueId(Aws::String&& value) { m_defaultOutboundQueueIdHasBeenSet = true; m_defaultOutboundQueueId = std::move(value); } /** *

The default outbound queue for the routing profile.

*/ inline void SetDefaultOutboundQueueId(const char* value) { m_defaultOutboundQueueIdHasBeenSet = true; m_defaultOutboundQueueId.assign(value); } /** *

The default outbound queue for the routing profile.

*/ inline CreateRoutingProfileRequest& WithDefaultOutboundQueueId(const Aws::String& value) { SetDefaultOutboundQueueId(value); return *this;} /** *

The default outbound queue for the routing profile.

*/ inline CreateRoutingProfileRequest& WithDefaultOutboundQueueId(Aws::String&& value) { SetDefaultOutboundQueueId(std::move(value)); return *this;} /** *

The default outbound queue for the routing profile.

*/ inline CreateRoutingProfileRequest& WithDefaultOutboundQueueId(const char* value) { SetDefaultOutboundQueueId(value); return *this;} /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline const Aws::Vector& GetQueueConfigs() const{ return m_queueConfigs; } /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline bool QueueConfigsHasBeenSet() const { return m_queueConfigsHasBeenSet; } /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline void SetQueueConfigs(const Aws::Vector& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs = value; } /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline void SetQueueConfigs(Aws::Vector&& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs = std::move(value); } /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline CreateRoutingProfileRequest& WithQueueConfigs(const Aws::Vector& value) { SetQueueConfigs(value); return *this;} /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline CreateRoutingProfileRequest& WithQueueConfigs(Aws::Vector&& value) { SetQueueConfigs(std::move(value)); return *this;} /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline CreateRoutingProfileRequest& AddQueueConfigs(const RoutingProfileQueueConfig& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs.push_back(value); return *this; } /** *

The inbound queues associated with the routing profile. If no queue is added, * the agent can make only outbound calls.

The limit of 10 array members * applies to the maximum number of RoutingProfileQueueConfig objects * that can be passed during a CreateRoutingProfile API request. It is different * from the quota of 50 queues per routing profile per instance that is listed in * Amazon * Connect service quotas.

*/ inline CreateRoutingProfileRequest& AddQueueConfigs(RoutingProfileQueueConfig&& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs.push_back(std::move(value)); return *this; } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline const Aws::Vector& GetMediaConcurrencies() const{ return m_mediaConcurrencies; } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline bool MediaConcurrenciesHasBeenSet() const { return m_mediaConcurrenciesHasBeenSet; } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline void SetMediaConcurrencies(const Aws::Vector& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies = value; } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline void SetMediaConcurrencies(Aws::Vector&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies = std::move(value); } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline CreateRoutingProfileRequest& WithMediaConcurrencies(const Aws::Vector& value) { SetMediaConcurrencies(value); return *this;} /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline CreateRoutingProfileRequest& WithMediaConcurrencies(Aws::Vector&& value) { SetMediaConcurrencies(std::move(value)); return *this;} /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline CreateRoutingProfileRequest& AddMediaConcurrencies(const MediaConcurrency& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies.push_back(value); return *this; } /** *

The channels that agents can handle in the Contact Control Panel (CCP) for * this routing profile.

*/ inline CreateRoutingProfileRequest& AddMediaConcurrencies(MediaConcurrency&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies.push_back(std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateRoutingProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_defaultOutboundQueueId; bool m_defaultOutboundQueueIdHasBeenSet = false; Aws::Vector m_queueConfigs; bool m_queueConfigsHasBeenSet = false; Aws::Vector m_mediaConcurrencies; bool m_mediaConcurrenciesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws