AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchVocabulariesRequest.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/VocabularyState.h>
11#include <aws/connect/model/VocabularyLanguageCode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API SearchVocabulariesRequest();
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 "SearchVocabularies"; }
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 SearchVocabulariesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline SearchVocabulariesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline SearchVocabulariesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline int GetMaxResults() const{ return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline SearchVocabulariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 inline SearchVocabulariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline SearchVocabulariesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline SearchVocabulariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
82 inline const VocabularyState& GetState() const{ return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 inline void SetState(const VocabularyState& value) { m_stateHasBeenSet = true; m_state = value; }
85 inline void SetState(VocabularyState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
86 inline SearchVocabulariesRequest& WithState(const VocabularyState& value) { SetState(value); return *this;}
87 inline SearchVocabulariesRequest& WithState(VocabularyState&& value) { SetState(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetNameStartsWith() const{ return m_nameStartsWith; }
95 inline bool NameStartsWithHasBeenSet() const { return m_nameStartsWithHasBeenSet; }
96 inline void SetNameStartsWith(const Aws::String& value) { m_nameStartsWithHasBeenSet = true; m_nameStartsWith = value; }
97 inline void SetNameStartsWith(Aws::String&& value) { m_nameStartsWithHasBeenSet = true; m_nameStartsWith = std::move(value); }
98 inline void SetNameStartsWith(const char* value) { m_nameStartsWithHasBeenSet = true; m_nameStartsWith.assign(value); }
99 inline SearchVocabulariesRequest& WithNameStartsWith(const Aws::String& value) { SetNameStartsWith(value); return *this;}
100 inline SearchVocabulariesRequest& WithNameStartsWith(Aws::String&& value) { SetNameStartsWith(std::move(value)); return *this;}
101 inline SearchVocabulariesRequest& WithNameStartsWith(const char* value) { SetNameStartsWith(value); return *this;}
103
105
111 inline const VocabularyLanguageCode& GetLanguageCode() const{ return m_languageCode; }
112 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
113 inline void SetLanguageCode(const VocabularyLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
114 inline void SetLanguageCode(VocabularyLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
116 inline SearchVocabulariesRequest& WithLanguageCode(VocabularyLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
118 private:
119
120 Aws::String m_instanceId;
121 bool m_instanceIdHasBeenSet = false;
122
123 int m_maxResults;
124 bool m_maxResultsHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 VocabularyState m_state;
130 bool m_stateHasBeenSet = false;
131
132 Aws::String m_nameStartsWith;
133 bool m_nameStartsWithHasBeenSet = false;
134
135 VocabularyLanguageCode m_languageCode;
136 bool m_languageCodeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Connect
141} // namespace Aws
SearchVocabulariesRequest & WithLanguageCode(VocabularyLanguageCode &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchVocabulariesRequest & WithNextToken(const char *value)
SearchVocabulariesRequest & WithState(VocabularyState &&value)
SearchVocabulariesRequest & WithNameStartsWith(Aws::String &&value)
void SetLanguageCode(const VocabularyLanguageCode &value)
SearchVocabulariesRequest & WithInstanceId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SearchVocabulariesRequest & WithNameStartsWith(const char *value)
void SetLanguageCode(VocabularyLanguageCode &&value)
SearchVocabulariesRequest & WithInstanceId(Aws::String &&value)
SearchVocabulariesRequest & WithLanguageCode(const VocabularyLanguageCode &value)
SearchVocabulariesRequest & WithNextToken(const Aws::String &value)
SearchVocabulariesRequest & WithMaxResults(int value)
SearchVocabulariesRequest & WithInstanceId(const char *value)
SearchVocabulariesRequest & WithNextToken(Aws::String &&value)
SearchVocabulariesRequest & WithNameStartsWith(const Aws::String &value)
const VocabularyLanguageCode & GetLanguageCode() const
SearchVocabulariesRequest & WithState(const VocabularyState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String