AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateAgentStatusRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/AgentStatusState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API CreateAgentStatusRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentStatus"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 CreateAgentStatusRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateAgentStatusRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateAgentStatusRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline AgentStatusState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(AgentStatusState value) { m_stateHasBeenSet = true; m_state = value; }
82 inline CreateAgentStatusRequest& WithState(AgentStatusState value) { SetState(value); return *this;}
84
86
89 inline int GetDisplayOrder() const { return m_displayOrder; }
90 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
91 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
92 inline CreateAgentStatusRequest& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
94
96
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 CreateAgentStatusRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 CreateAgentStatusRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
109 }
111 private:
112
113 Aws::String m_instanceId;
114 bool m_instanceIdHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
123 bool m_stateHasBeenSet = false;
124
125 int m_displayOrder{0};
126 bool m_displayOrderHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Connect
134} // namespace Aws
CreateAgentStatusRequest & WithState(AgentStatusState value)
CreateAgentStatusRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentStatusRequest & WithDescription(DescriptionT &&value)
CreateAgentStatusRequest & WithDisplayOrder(int value)
CreateAgentStatusRequest & WithTags(TagsT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AWS_CONNECT_API CreateAgentStatusRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAgentStatusRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAgentStatusRequest & WithInstanceId(InstanceIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String