/** * 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 an agent status.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the agent status.

*/ inline const Aws::String& GetAgentStatusARN() const{ return m_agentStatusARN; } /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline bool AgentStatusARNHasBeenSet() const { return m_agentStatusARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline void SetAgentStatusARN(const Aws::String& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = value; } /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline void SetAgentStatusARN(Aws::String&& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline void SetAgentStatusARN(const char* value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline AgentStatus& WithAgentStatusARN(const Aws::String& value) { SetAgentStatusARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline AgentStatus& WithAgentStatusARN(Aws::String&& value) { SetAgentStatusARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the agent status.

*/ inline AgentStatus& WithAgentStatusARN(const char* value) { SetAgentStatusARN(value); return *this;} /** *

The identifier of the agent status.

*/ inline const Aws::String& GetAgentStatusId() const{ return m_agentStatusId; } /** *

The identifier of the agent status.

*/ inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; } /** *

The identifier of the agent status.

*/ inline void SetAgentStatusId(const Aws::String& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = value; } /** *

The identifier of the agent status.

*/ inline void SetAgentStatusId(Aws::String&& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::move(value); } /** *

The identifier of the agent status.

*/ inline void SetAgentStatusId(const char* value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId.assign(value); } /** *

The identifier of the agent status.

*/ inline AgentStatus& WithAgentStatusId(const Aws::String& value) { SetAgentStatusId(value); return *this;} /** *

The identifier of the agent status.

*/ inline AgentStatus& WithAgentStatusId(Aws::String&& value) { SetAgentStatusId(std::move(value)); return *this;} /** *

The identifier of the agent status.

*/ inline AgentStatus& WithAgentStatusId(const char* value) { SetAgentStatusId(value); return *this;} /** *

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The name of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The description of the agent status.

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

The type of agent status.

*/ inline const AgentStatusType& GetType() const{ return m_type; } /** *

The type of agent status.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of agent status.

*/ inline void SetType(const AgentStatusType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of agent status.

*/ inline void SetType(AgentStatusType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of agent status.

*/ inline AgentStatus& WithType(const AgentStatusType& value) { SetType(value); return *this;} /** *

The type of agent status.

*/ inline AgentStatus& WithType(AgentStatusType&& value) { SetType(std::move(value)); return *this;} /** *

The display order of the agent status.

*/ inline int GetDisplayOrder() const{ return m_displayOrder; } /** *

The display order of the agent status.

*/ inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; } /** *

The display order of the agent status.

*/ inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; } /** *

The display order of the agent status.

*/ inline AgentStatus& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;} /** *

The state of the agent status.

*/ inline const AgentStatusState& GetState() const{ return m_state; } /** *

The state of the agent status.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the agent status.

*/ inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the agent status.

*/ inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the agent status.

*/ inline AgentStatus& WithState(const AgentStatusState& value) { SetState(value); return *this;} /** *

The state of the agent status.

*/ inline AgentStatus& WithState(AgentStatusState&& value) { SetState(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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& 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 AgentStatus& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_agentStatusARN; bool m_agentStatusARNHasBeenSet = false; Aws::String m_agentStatusId; bool m_agentStatusIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; AgentStatusType m_type; bool m_typeHasBeenSet = false; int m_displayOrder; bool m_displayOrderHasBeenSet = false; AgentStatusState m_state; bool m_stateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws