AWS SDK for C++  1.9.129
AWS SDK for C++
ElasticsearchAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
50 
54  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
55 
59  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
60 
64  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
65 
69  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
70 
74  inline ElasticsearchAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
75 
79  inline ElasticsearchAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
80 
84  inline ElasticsearchAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
85 
86 
90  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
91 
95  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
96 
100  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
101 
105  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
106 
110  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
111 
115  inline ElasticsearchAction& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
116 
120  inline ElasticsearchAction& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
121 
125  inline ElasticsearchAction& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
126 
127 
131  inline const Aws::String& GetIndex() const{ return m_index; }
132 
136  inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
137 
141  inline void SetIndex(const Aws::String& value) { m_indexHasBeenSet = true; m_index = value; }
142 
146  inline void SetIndex(Aws::String&& value) { m_indexHasBeenSet = true; m_index = std::move(value); }
147 
151  inline void SetIndex(const char* value) { m_indexHasBeenSet = true; m_index.assign(value); }
152 
156  inline ElasticsearchAction& WithIndex(const Aws::String& value) { SetIndex(value); return *this;}
157 
161  inline ElasticsearchAction& WithIndex(Aws::String&& value) { SetIndex(std::move(value)); return *this;}
162 
166  inline ElasticsearchAction& WithIndex(const char* value) { SetIndex(value); return *this;}
167 
168 
172  inline const Aws::String& GetType() const{ return m_type; }
173 
177  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
178 
182  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
183 
187  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
188 
192  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
193 
197  inline ElasticsearchAction& WithType(const Aws::String& value) { SetType(value); return *this;}
198 
202  inline ElasticsearchAction& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
203 
207  inline ElasticsearchAction& WithType(const char* value) { SetType(value); return *this;}
208 
209 
213  inline const Aws::String& GetId() const{ return m_id; }
214 
218  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
219 
223  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
224 
228  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
229 
233  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
234 
238  inline ElasticsearchAction& WithId(const Aws::String& value) { SetId(value); return *this;}
239 
243  inline ElasticsearchAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
244 
248  inline ElasticsearchAction& WithId(const char* value) { SetId(value); return *this;}
249 
250  private:
251 
252  Aws::String m_roleArn;
253  bool m_roleArnHasBeenSet;
254 
255  Aws::String m_endpoint;
256  bool m_endpointHasBeenSet;
257 
258  Aws::String m_index;
259  bool m_indexHasBeenSet;
260 
261  Aws::String m_type;
262  bool m_typeHasBeenSet;
263 
264  Aws::String m_id;
265  bool m_idHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace IoT
270 } // namespace Aws
Aws::IoT::Model::ElasticsearchAction::SetId
void SetId(Aws::String &&value)
Definition: ElasticsearchAction.h:228
Aws::IoT::Model::ElasticsearchAction::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: ElasticsearchAction.h:105
Aws::IoT::Model::ElasticsearchAction::SetId
void SetId(const Aws::String &value)
Definition: ElasticsearchAction.h:223
Aws::IoT::Model::ElasticsearchAction::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: ElasticsearchAction.h:100
Aws::IoT::Model::ElasticsearchAction::ElasticsearchAction
ElasticsearchAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ElasticsearchAction::WithEndpoint
ElasticsearchAction & WithEndpoint(Aws::String &&value)
Definition: ElasticsearchAction.h:120
Aws::IoT::Model::ElasticsearchAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: ElasticsearchAction.h:59
Aws::IoT::Model::ElasticsearchAction::WithId
ElasticsearchAction & WithId(Aws::String &&value)
Definition: ElasticsearchAction.h:243
Aws::IoT::Model::ElasticsearchAction::SetType
void SetType(const Aws::String &value)
Definition: ElasticsearchAction.h:182
Aws::IoT::Model::ElasticsearchAction::SetIndex
void SetIndex(Aws::String &&value)
Definition: ElasticsearchAction.h:146
Aws::IoT::Model::ElasticsearchAction
Definition: ElasticsearchAction.h:38
Aws::IoT::Model::ElasticsearchAction::GetId
const Aws::String & GetId() const
Definition: ElasticsearchAction.h:213
Aws::IoT::Model::ElasticsearchAction::WithRoleArn
ElasticsearchAction & WithRoleArn(const Aws::String &value)
Definition: ElasticsearchAction.h:74
Aws::IoT::Model::ElasticsearchAction::WithIndex
ElasticsearchAction & WithIndex(Aws::String &&value)
Definition: ElasticsearchAction.h:161
Aws::IoT::Model::ElasticsearchAction::SetId
void SetId(const char *value)
Definition: ElasticsearchAction.h:233
Aws::IoT::Model::ElasticsearchAction::WithId
ElasticsearchAction & WithId(const Aws::String &value)
Definition: ElasticsearchAction.h:238
Aws::IoT::Model::ElasticsearchAction::ElasticsearchAction
ElasticsearchAction()
Aws::IoT::Model::ElasticsearchAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: ElasticsearchAction.h:69
Aws::IoT::Model::ElasticsearchAction::WithIndex
ElasticsearchAction & WithIndex(const Aws::String &value)
Definition: ElasticsearchAction.h:156
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ElasticsearchAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: ElasticsearchAction.h:49
Aws::IoT::Model::ElasticsearchAction::WithType
ElasticsearchAction & WithType(const char *value)
Definition: ElasticsearchAction.h:207
Aws::IoT::Model::ElasticsearchAction::GetIndex
const Aws::String & GetIndex() const
Definition: ElasticsearchAction.h:131
Aws::IoT::Model::ElasticsearchAction::SetIndex
void SetIndex(const Aws::String &value)
Definition: ElasticsearchAction.h:141
Aws::IoT::Model::ElasticsearchAction::WithId
ElasticsearchAction & WithId(const char *value)
Definition: ElasticsearchAction.h:248
Aws::IoT::Model::ElasticsearchAction::IndexHasBeenSet
bool IndexHasBeenSet() const
Definition: ElasticsearchAction.h:136
Aws::IoT::Model::ElasticsearchAction::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ElasticsearchAction.h:218
Aws::IoT::Model::ElasticsearchAction::WithType
ElasticsearchAction & WithType(Aws::String &&value)
Definition: ElasticsearchAction.h:202
Aws::IoT::Model::ElasticsearchAction::WithEndpoint
ElasticsearchAction & WithEndpoint(const Aws::String &value)
Definition: ElasticsearchAction.h:115
Aws::IoT::Model::ElasticsearchAction::SetIndex
void SetIndex(const char *value)
Definition: ElasticsearchAction.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ElasticsearchAction::WithType
ElasticsearchAction & WithType(const Aws::String &value)
Definition: ElasticsearchAction.h:197
Aws::IoT::Model::ElasticsearchAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: ElasticsearchAction.h:64
Aws::IoT::Model::ElasticsearchAction::operator=
ElasticsearchAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ElasticsearchAction::WithRoleArn
ElasticsearchAction & WithRoleArn(Aws::String &&value)
Definition: ElasticsearchAction.h:79
Aws::IoT::Model::ElasticsearchAction::SetEndpoint
void SetEndpoint(const char *value)
Definition: ElasticsearchAction.h:110
Aws::IoT::Model::ElasticsearchAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: ElasticsearchAction.h:54
Aws::IoT::Model::ElasticsearchAction::GetType
const Aws::String & GetType() const
Definition: ElasticsearchAction.h:172
Aws::IoT::Model::ElasticsearchAction::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: ElasticsearchAction.h:90
Aws::IoT::Model::ElasticsearchAction::SetType
void SetType(const char *value)
Definition: ElasticsearchAction.h:192
Aws::IoT::Model::ElasticsearchAction::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: ElasticsearchAction.h:95
Aws::IoT::Model::ElasticsearchAction::SetType
void SetType(Aws::String &&value)
Definition: ElasticsearchAction.h:187
Aws::IoT::Model::ElasticsearchAction::WithRoleArn
ElasticsearchAction & WithRoleArn(const char *value)
Definition: ElasticsearchAction.h:84
Aws::IoT::Model::ElasticsearchAction::WithIndex
ElasticsearchAction & WithIndex(const char *value)
Definition: ElasticsearchAction.h:166
Aws::IoT::Model::ElasticsearchAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ElasticsearchAction::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ElasticsearchAction.h:177
Aws::IoT::Model::ElasticsearchAction::WithEndpoint
ElasticsearchAction & WithEndpoint(const char *value)
Definition: ElasticsearchAction.h:125
IoT_EXPORTS.h