AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAgentStatusesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/AgentStatusType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Connect
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECT_API ListAgentStatusesRequest();
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_CONNECT_API Aws::String SerializePayload() const override;
39
40 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
50 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
53 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
54 inline ListAgentStatusesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
55 inline ListAgentStatusesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
56 inline ListAgentStatusesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
58
60
64 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
67 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
69 inline ListAgentStatusesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 inline ListAgentStatusesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 inline ListAgentStatusesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
73
75
78 inline int GetMaxResults() const{ return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline ListAgentStatusesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
88 inline const Aws::Vector<AgentStatusType>& GetAgentStatusTypes() const{ return m_agentStatusTypes; }
89 inline bool AgentStatusTypesHasBeenSet() const { return m_agentStatusTypesHasBeenSet; }
90 inline void SetAgentStatusTypes(const Aws::Vector<AgentStatusType>& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes = value; }
91 inline void SetAgentStatusTypes(Aws::Vector<AgentStatusType>&& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes = std::move(value); }
94 inline ListAgentStatusesRequest& AddAgentStatusTypes(const AgentStatusType& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes.push_back(value); return *this; }
95 inline ListAgentStatusesRequest& AddAgentStatusTypes(AgentStatusType&& value) { m_agentStatusTypesHasBeenSet = true; m_agentStatusTypes.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_instanceId;
100 bool m_instanceIdHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104
105 int m_maxResults;
106 bool m_maxResultsHasBeenSet = false;
107
108 Aws::Vector<AgentStatusType> m_agentStatusTypes;
109 bool m_agentStatusTypesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Connect
114} // namespace Aws
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAgentStatusesRequest & WithMaxResults(int value)
const Aws::Vector< AgentStatusType > & GetAgentStatusTypes() const
virtual const char * GetServiceRequestName() const override
ListAgentStatusesRequest & WithNextToken(const Aws::String &value)
ListAgentStatusesRequest & WithNextToken(const char *value)
ListAgentStatusesRequest & WithAgentStatusTypes(const Aws::Vector< AgentStatusType > &value)
void SetAgentStatusTypes(const Aws::Vector< AgentStatusType > &value)
ListAgentStatusesRequest & WithInstanceId(const Aws::String &value)
ListAgentStatusesRequest & AddAgentStatusTypes(AgentStatusType &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ListAgentStatusesRequest & WithAgentStatusTypes(Aws::Vector< AgentStatusType > &&value)
ListAgentStatusesRequest & WithInstanceId(const char *value)
ListAgentStatusesRequest & WithInstanceId(Aws::String &&value)
ListAgentStatusesRequest & AddAgentStatusTypes(const AgentStatusType &value)
void SetAgentStatusTypes(Aws::Vector< AgentStatusType > &&value)
ListAgentStatusesRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector