AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline CreateAgentStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline CreateAgentStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline CreateAgentStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateAgentStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateAgentStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateAgentStatusRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateAgentStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateAgentStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateAgentStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline const AgentStatusState& GetState() const{ return m_state; }
86 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
87 inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
88 inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
89 inline CreateAgentStatusRequest& WithState(const AgentStatusState& value) { SetState(value); return *this;}
90 inline CreateAgentStatusRequest& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
92
94
97 inline int GetDisplayOrder() const{ return m_displayOrder; }
98 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
99 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
100 inline CreateAgentStatusRequest& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
102
104
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline CreateAgentStatusRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
114 inline CreateAgentStatusRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 inline CreateAgentStatusRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
116 inline CreateAgentStatusRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
117 inline CreateAgentStatusRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
118 inline CreateAgentStatusRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
119 inline CreateAgentStatusRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline CreateAgentStatusRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
122 private:
123
124 Aws::String m_instanceId;
125 bool m_instanceIdHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 AgentStatusState m_state;
134 bool m_stateHasBeenSet = false;
135
136 int m_displayOrder;
137 bool m_displayOrderHasBeenSet = false;
138
140 bool m_tagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Connect
145} // namespace Aws
CreateAgentStatusRequest & AddTags(const char *key, const char *value)
CreateAgentStatusRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAgentStatusRequest & WithState(AgentStatusState &&value)
CreateAgentStatusRequest & WithName(Aws::String &&value)
CreateAgentStatusRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAgentStatusRequest & WithDescription(Aws::String &&value)
CreateAgentStatusRequest & WithDisplayOrder(int value)
CreateAgentStatusRequest & WithInstanceId(Aws::String &&value)
CreateAgentStatusRequest & AddTags(Aws::String &&key, const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateAgentStatusRequest & WithState(const AgentStatusState &value)
CreateAgentStatusRequest & WithDescription(const Aws::String &value)
CreateAgentStatusRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAgentStatusRequest & WithDescription(const char *value)
CreateAgentStatusRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateAgentStatusRequest & WithInstanceId(const Aws::String &value)
CreateAgentStatusRequest & WithName(const Aws::String &value)
CreateAgentStatusRequest & WithInstanceId(const char *value)
CreateAgentStatusRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAgentStatusRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAgentStatusRequest & WithName(const char *value)
CreateAgentStatusRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &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