AWS SDK for C++  1.9.159
AWS SDK for C++
ListAgentStatusesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace Connect
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListAgentStatuses"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
47  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 
53  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
54 
59  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 
65  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
66 
71  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
72 
77  inline ListAgentStatusesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
78 
83  inline ListAgentStatusesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
84 
89  inline ListAgentStatusesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
90 
91 
96  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
97 
102  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 
108  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
109 
114  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
115 
120  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 
126  inline ListAgentStatusesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
127 
132  inline ListAgentStatusesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
138  inline ListAgentStatusesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139 
140 
144  inline int GetMaxResults() const{ return m_maxResults; }
145 
149  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
150 
154  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 
159  inline ListAgentStatusesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
160 
161 
165  inline const Aws::Vector<AgentStatusType>& GetAgentStatusTypes() const{ return m_agentStatusTypes; }
166 
170  inline bool AgentStatusTypesHasBeenSet() const { return m_agentStatusTypesHasBeenSet; }
171 
175  inline void SetAgentStatusTypes(const Aws::Vector<AgentStatusType>& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes = value; }
176 
180  inline void SetAgentStatusTypes(Aws::Vector<AgentStatusType>&& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes = std::move(value); }
181 
185  inline ListAgentStatusesRequest& WithAgentStatusTypes(const Aws::Vector<AgentStatusType>& value) { SetAgentStatusTypes(value); return *this;}
186 
190  inline ListAgentStatusesRequest& WithAgentStatusTypes(Aws::Vector<AgentStatusType>&& value) { SetAgentStatusTypes(std::move(value)); return *this;}
191 
195  inline ListAgentStatusesRequest& AddAgentStatusTypes(const AgentStatusType& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes.push_back(value); return *this; }
196 
200  inline ListAgentStatusesRequest& AddAgentStatusTypes(AgentStatusType&& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes.push_back(std::move(value)); return *this; }
201 
202  private:
203 
204  Aws::String m_instanceId;
205  bool m_instanceIdHasBeenSet;
206 
207  Aws::String m_nextToken;
208  bool m_nextTokenHasBeenSet;
209 
210  int m_maxResults;
211  bool m_maxResultsHasBeenSet;
212 
213  Aws::Vector<AgentStatusType> m_agentStatusTypes;
214  bool m_agentStatusTypesHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace Connect
219 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Connect::Model::ListAgentStatusesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAgentStatusesRequest.h:114
Aws::Connect::Model::ListAgentStatusesRequest::ListAgentStatusesRequest
ListAgentStatusesRequest()
Aws::Connect::Model::ListAgentStatusesRequest::WithNextToken
ListAgentStatusesRequest & WithNextToken(const Aws::String &value)
Definition: ListAgentStatusesRequest.h:126
Aws::Connect::Model::ListAgentStatusesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAgentStatusesRequest.h:36
Aws::Connect::Model::ListAgentStatusesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAgentStatusesRequest.h:96
Aws::Connect::Model::ListAgentStatusesRequest::WithInstanceId
ListAgentStatusesRequest & WithInstanceId(Aws::String &&value)
Definition: ListAgentStatusesRequest.h:83
Aws::Connect::Model::ListAgentStatusesRequest::AddAgentStatusTypes
ListAgentStatusesRequest & AddAgentStatusTypes(AgentStatusType &&value)
Definition: ListAgentStatusesRequest.h:200
Aws::Connect::Model::ListAgentStatusesRequest::GetAgentStatusTypes
const Aws::Vector< AgentStatusType > & GetAgentStatusTypes() const
Definition: ListAgentStatusesRequest.h:165
Aws::Connect::Model::ListAgentStatusesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAgentStatusesRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::ListAgentStatusesRequest
Definition: ListAgentStatusesRequest.h:28
Aws::Connect::Model::ListAgentStatusesRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ListAgentStatusesRequest.h:53
AWSVector.h
Aws::Connect::Model::ListAgentStatusesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAgentStatusesRequest.h:120
Aws::Connect::Model::ListAgentStatusesRequest::WithAgentStatusTypes
ListAgentStatusesRequest & WithAgentStatusTypes(const Aws::Vector< AgentStatusType > &value)
Definition: ListAgentStatusesRequest.h:185
Aws::Connect::Model::ListAgentStatusesRequest::AgentStatusTypesHasBeenSet
bool AgentStatusTypesHasBeenSet() const
Definition: ListAgentStatusesRequest.h:170
Aws::Connect::Model::ListAgentStatusesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAgentStatusesRequest.h:154
Aws::Connect::Model::ListAgentStatusesRequest::AddAgentStatusTypes
ListAgentStatusesRequest & AddAgentStatusTypes(const AgentStatusType &value)
Definition: ListAgentStatusesRequest.h:195
Aws::Connect::Model::ListAgentStatusesRequest::WithAgentStatusTypes
ListAgentStatusesRequest & WithAgentStatusTypes(Aws::Vector< AgentStatusType > &&value)
Definition: ListAgentStatusesRequest.h:190
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
AgentStatusType.h
Aws::Connect::Model::ListAgentStatusesRequest::SetAgentStatusTypes
void SetAgentStatusTypes(Aws::Vector< AgentStatusType > &&value)
Definition: ListAgentStatusesRequest.h:180
Aws::Connect::Model::ListAgentStatusesRequest::WithNextToken
ListAgentStatusesRequest & WithNextToken(const char *value)
Definition: ListAgentStatusesRequest.h:138
AWSString.h
Aws::Connect::Model::ListAgentStatusesRequest::WithInstanceId
ListAgentStatusesRequest & WithInstanceId(const char *value)
Definition: ListAgentStatusesRequest.h:89
Aws::Connect::Model::ListAgentStatusesRequest::WithInstanceId
ListAgentStatusesRequest & WithInstanceId(const Aws::String &value)
Definition: ListAgentStatusesRequest.h:77
Aws::Connect::Model::ListAgentStatusesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::AgentStatusType
AgentStatusType
Definition: AgentStatusType.h:17
Aws::Connect::Model::ListAgentStatusesRequest::WithMaxResults
ListAgentStatusesRequest & WithMaxResults(int value)
Definition: ListAgentStatusesRequest.h:159
Aws::Connect::Model::ListAgentStatusesRequest::WithNextToken
ListAgentStatusesRequest & WithNextToken(Aws::String &&value)
Definition: ListAgentStatusesRequest.h:132
Aws::Connect::Model::ListAgentStatusesRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ListAgentStatusesRequest.h:65
Aws::Connect::Model::ListAgentStatusesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::ListAgentStatusesRequest::SetAgentStatusTypes
void SetAgentStatusTypes(const Aws::Vector< AgentStatusType > &value)
Definition: ListAgentStatusesRequest.h:175
Aws::Connect::Model::ListAgentStatusesRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ListAgentStatusesRequest.h:47
Aws::Connect::Model::ListAgentStatusesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAgentStatusesRequest.h:144
Aws::Connect::Model::ListAgentStatusesRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ListAgentStatusesRequest.h:59
Aws::Connect::Model::ListAgentStatusesRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ListAgentStatusesRequest.h:71
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::ListAgentStatusesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAgentStatusesRequest.h:102
Aws::Connect::Model::ListAgentStatusesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAgentStatusesRequest.h:149