/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

Contains information about a queue.

See Also:

AWS API * Reference

*/ class Queue { public: AWS_CONNECT_API Queue(); AWS_CONNECT_API Queue(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Queue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The name of the queue.

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

The Amazon Resource Name (ARN) for the queue.

*/ inline const Aws::String& GetQueueArn() const{ return m_queueArn; } /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline bool QueueArnHasBeenSet() const { return m_queueArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline void SetQueueArn(const Aws::String& value) { m_queueArnHasBeenSet = true; m_queueArn = value; } /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline void SetQueueArn(Aws::String&& value) { m_queueArnHasBeenSet = true; m_queueArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline void SetQueueArn(const char* value) { m_queueArnHasBeenSet = true; m_queueArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline Queue& WithQueueArn(const Aws::String& value) { SetQueueArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline Queue& WithQueueArn(Aws::String&& value) { SetQueueArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the queue.

*/ inline Queue& WithQueueArn(const char* value) { SetQueueArn(value); return *this;} /** *

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The identifier for the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The description of the queue.

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

The outbound caller ID name, number, and outbound whisper flow.

*/ inline const OutboundCallerConfig& GetOutboundCallerConfig() const{ return m_outboundCallerConfig; } /** *

The outbound caller ID name, number, and outbound whisper flow.

*/ inline bool OutboundCallerConfigHasBeenSet() const { return m_outboundCallerConfigHasBeenSet; } /** *

The outbound caller ID name, number, and outbound whisper flow.

*/ inline void SetOutboundCallerConfig(const OutboundCallerConfig& value) { m_outboundCallerConfigHasBeenSet = true; m_outboundCallerConfig = value; } /** *

The outbound caller ID name, number, and outbound whisper flow.

*/ inline void SetOutboundCallerConfig(OutboundCallerConfig&& value) { m_outboundCallerConfigHasBeenSet = true; m_outboundCallerConfig = std::move(value); } /** *

The outbound caller ID name, number, and outbound whisper flow.

*/ inline Queue& WithOutboundCallerConfig(const OutboundCallerConfig& value) { SetOutboundCallerConfig(value); return *this;} /** *

The outbound caller ID name, number, and outbound whisper flow.

*/ inline Queue& WithOutboundCallerConfig(OutboundCallerConfig&& value) { SetOutboundCallerConfig(std::move(value)); return *this;} /** *

The identifier for the hours of operation.

*/ inline const Aws::String& GetHoursOfOperationId() const{ return m_hoursOfOperationId; } /** *

The identifier for the hours of operation.

*/ inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; } /** *

The identifier for the hours of operation.

*/ inline void SetHoursOfOperationId(const Aws::String& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = value; } /** *

The identifier for the hours of operation.

*/ inline void SetHoursOfOperationId(Aws::String&& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = std::move(value); } /** *

The identifier for the hours of operation.

*/ inline void SetHoursOfOperationId(const char* value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId.assign(value); } /** *

The identifier for the hours of operation.

*/ inline Queue& WithHoursOfOperationId(const Aws::String& value) { SetHoursOfOperationId(value); return *this;} /** *

The identifier for the hours of operation.

*/ inline Queue& WithHoursOfOperationId(Aws::String&& value) { SetHoursOfOperationId(std::move(value)); return *this;} /** *

The identifier for the hours of operation.

*/ inline Queue& WithHoursOfOperationId(const char* value) { SetHoursOfOperationId(value); return *this;} /** *

The maximum number of contacts that can be in the queue before it is * considered full.

*/ inline int GetMaxContacts() const{ return m_maxContacts; } /** *

The maximum number of contacts that can be in the queue before it is * considered full.

*/ inline bool MaxContactsHasBeenSet() const { return m_maxContactsHasBeenSet; } /** *

The maximum number of contacts that can be in the queue before it is * considered full.

*/ inline void SetMaxContacts(int value) { m_maxContactsHasBeenSet = true; m_maxContacts = value; } /** *

The maximum number of contacts that can be in the queue before it is * considered full.

*/ inline Queue& WithMaxContacts(int value) { SetMaxContacts(value); return *this;} /** *

The status of the queue.

*/ inline const QueueStatus& GetStatus() const{ return m_status; } /** *

The status of the queue.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the queue.

*/ inline void SetStatus(const QueueStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the queue.

*/ inline void SetStatus(QueueStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the queue.

*/ inline Queue& WithStatus(const QueueStatus& value) { SetStatus(value); return *this;} /** *

The status of the queue.

*/ inline Queue& WithStatus(QueueStatus&& value) { SetStatus(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 Queue& 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 Queue& 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 Queue& 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 Queue& 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 Queue& 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 Queue& 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 Queue& 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 Queue& 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 Queue& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_queueArn; bool m_queueArnHasBeenSet = false; Aws::String m_queueId; bool m_queueIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; OutboundCallerConfig m_outboundCallerConfig; bool m_outboundCallerConfigHasBeenSet = false; Aws::String m_hoursOfOperationId; bool m_hoursOfOperationIdHasBeenSet = false; int m_maxContacts; bool m_maxContactsHasBeenSet = false; QueueStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws