AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SearchVocabulariesRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/VocabularyLanguageCode.h>
10#include <aws/connect/model/VocabularyState.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API SearchVocabulariesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchVocabularies"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline VocabularyState GetState() const { return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 inline void SetState(VocabularyState value) {
95 m_stateHasBeenSet = true;
96 m_state = value;
97 }
99 SetState(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNameStartsWith() const { return m_nameStartsWith; }
109 inline bool NameStartsWithHasBeenSet() const { return m_nameStartsWithHasBeenSet; }
110 template <typename NameStartsWithT = Aws::String>
111 void SetNameStartsWith(NameStartsWithT&& value) {
112 m_nameStartsWithHasBeenSet = true;
113 m_nameStartsWith = std::forward<NameStartsWithT>(value);
114 }
115 template <typename NameStartsWithT = Aws::String>
117 SetNameStartsWith(std::forward<NameStartsWithT>(value));
118 return *this;
119 }
121
123
129 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
130 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
132 m_languageCodeHasBeenSet = true;
133 m_languageCode = value;
134 }
136 SetLanguageCode(value);
137 return *this;
138 }
140 private:
141 Aws::String m_instanceId;
142
143 int m_maxResults{0};
144
145 Aws::String m_nextToken;
146
148
149 Aws::String m_nameStartsWith;
150
152 bool m_instanceIdHasBeenSet = false;
153 bool m_maxResultsHasBeenSet = false;
154 bool m_nextTokenHasBeenSet = false;
155 bool m_stateHasBeenSet = false;
156 bool m_nameStartsWithHasBeenSet = false;
157 bool m_languageCodeHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Connect
162} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchVocabulariesRequest & WithLanguageCode(VocabularyLanguageCode value)
SearchVocabulariesRequest & WithInstanceId(InstanceIdT &&value)
SearchVocabulariesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
SearchVocabulariesRequest & WithNameStartsWith(NameStartsWithT &&value)
SearchVocabulariesRequest & WithState(VocabularyState value)
SearchVocabulariesRequest & WithMaxResults(int value)
AWS_CONNECT_API SearchVocabulariesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String