AWS SDK for C++  0.14.3
AWS SDK for C++
ElasticsearchAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace IoT
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  ElasticsearchAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
49 
53  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
54 
58  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
59 
63  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
64 
68  inline ElasticsearchAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
69 
73  inline ElasticsearchAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
74 
78  inline ElasticsearchAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
79 
83  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
84 
88  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
89 
93  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
94 
98  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
99 
103  inline ElasticsearchAction& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
104 
108  inline ElasticsearchAction& WithEndpoint(Aws::String&& value) { SetEndpoint(value); return *this;}
109 
113  inline ElasticsearchAction& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
114 
118  inline const Aws::String& GetIndex() const{ return m_index; }
119 
123  inline void SetIndex(const Aws::String& value) { m_indexHasBeenSet = true; m_index = value; }
124 
128  inline void SetIndex(Aws::String&& value) { m_indexHasBeenSet = true; m_index = value; }
129 
133  inline void SetIndex(const char* value) { m_indexHasBeenSet = true; m_index.assign(value); }
134 
138  inline ElasticsearchAction& WithIndex(const Aws::String& value) { SetIndex(value); return *this;}
139 
143  inline ElasticsearchAction& WithIndex(Aws::String&& value) { SetIndex(value); return *this;}
144 
148  inline ElasticsearchAction& WithIndex(const char* value) { SetIndex(value); return *this;}
149 
153  inline const Aws::String& GetType() const{ return m_type; }
154 
158  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
159 
163  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
164 
168  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
169 
173  inline ElasticsearchAction& WithType(const Aws::String& value) { SetType(value); return *this;}
174 
178  inline ElasticsearchAction& WithType(Aws::String&& value) { SetType(value); return *this;}
179 
183  inline ElasticsearchAction& WithType(const char* value) { SetType(value); return *this;}
184 
188  inline const Aws::String& GetId() const{ return m_id; }
189 
193  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
194 
198  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
199 
203  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
204 
208  inline ElasticsearchAction& WithId(const Aws::String& value) { SetId(value); return *this;}
209 
213  inline ElasticsearchAction& WithId(Aws::String&& value) { SetId(value); return *this;}
214 
218  inline ElasticsearchAction& WithId(const char* value) { SetId(value); return *this;}
219 
220  private:
221  Aws::String m_roleArn;
222  bool m_roleArnHasBeenSet;
223  Aws::String m_endpoint;
224  bool m_endpointHasBeenSet;
225  Aws::String m_index;
226  bool m_indexHasBeenSet;
227  Aws::String m_type;
228  bool m_typeHasBeenSet;
229  Aws::String m_id;
230  bool m_idHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace IoT
235 } // namespace Aws
ElasticsearchAction & WithId(const char *value)
ElasticsearchAction & WithRoleArn(const Aws::String &value)
const Aws::String & GetRoleArn() const
const Aws::String & GetIndex() const
ElasticsearchAction & WithIndex(Aws::String &&value)
void SetType(const Aws::String &value)
void SetId(const Aws::String &value)
void SetEndpoint(Aws::String &&value)
ElasticsearchAction & WithEndpoint(const char *value)
ElasticsearchAction & WithEndpoint(Aws::String &&value)
ElasticsearchAction & WithId(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
ElasticsearchAction & WithType(const Aws::String &value)
const Aws::String & GetId() const
ElasticsearchAction & WithType(const char *value)
ElasticsearchAction & WithEndpoint(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
ElasticsearchAction & WithIndex(const Aws::String &value)
ElasticsearchAction & WithType(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
void SetIndex(const Aws::String &value)
void SetEndpoint(const Aws::String &value)
const Aws::String & GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ElasticsearchAction & WithRoleArn(Aws::String &&value)
ElasticsearchAction & WithRoleArn(const char *value)
ElasticsearchAction & WithIndex(const char *value)
const Aws::String & GetEndpoint() const
ElasticsearchAction & WithId(Aws::String &&value)
JSON (JavaScript Object Notation).