AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListBotsRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/LexVersion.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API ListBotsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListBots"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
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) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
51 ListBotsRequest& WithInstanceId(InstanceIdT&& value) {
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListBotsRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) {
83 m_maxResultsHasBeenSet = true;
84 m_maxResults = value;
85 }
86 inline ListBotsRequest& WithMaxResults(int value) {
87 SetMaxResults(value);
88 return *this;
89 }
91
93
96 inline LexVersion GetLexVersion() const { return m_lexVersion; }
97 inline bool LexVersionHasBeenSet() const { return m_lexVersionHasBeenSet; }
98 inline void SetLexVersion(LexVersion value) {
99 m_lexVersionHasBeenSet = true;
100 m_lexVersion = value;
101 }
103 SetLexVersion(value);
104 return *this;
105 }
107 private:
108 Aws::String m_instanceId;
109
110 Aws::String m_nextToken;
111
112 int m_maxResults{0};
113
114 LexVersion m_lexVersion{LexVersion::NOT_SET};
115 bool m_instanceIdHasBeenSet = false;
116 bool m_nextTokenHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118 bool m_lexVersionHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Connect
123} // namespace Aws
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CONNECT_API ListBotsRequest()=default
ListBotsRequest & WithInstanceId(InstanceIdT &&value)
ListBotsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceId() const
const Aws::String & GetNextToken() const
ListBotsRequest & WithLexVersion(LexVersion value)
ListBotsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String