AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenSearchAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API OpenSearchAction();
39
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline OpenSearchAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline OpenSearchAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline OpenSearchAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
59 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
60 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
61 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
62 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
63 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
64 inline OpenSearchAction& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
65 inline OpenSearchAction& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
66 inline OpenSearchAction& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
68
70
73 inline const Aws::String& GetIndex() const{ return m_index; }
74 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
75 inline void SetIndex(const Aws::String& value) { m_indexHasBeenSet = true; m_index = value; }
76 inline void SetIndex(Aws::String&& value) { m_indexHasBeenSet = true; m_index = std::move(value); }
77 inline void SetIndex(const char* value) { m_indexHasBeenSet = true; m_index.assign(value); }
78 inline OpenSearchAction& WithIndex(const Aws::String& value) { SetIndex(value); return *this;}
79 inline OpenSearchAction& WithIndex(Aws::String&& value) { SetIndex(std::move(value)); return *this;}
80 inline OpenSearchAction& WithIndex(const char* value) { SetIndex(value); return *this;}
82
84
87 inline const Aws::String& GetType() const{ return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
90 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
91 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
92 inline OpenSearchAction& WithType(const Aws::String& value) { SetType(value); return *this;}
93 inline OpenSearchAction& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
94 inline OpenSearchAction& WithType(const char* value) { SetType(value); return *this;}
96
98
101 inline const Aws::String& GetId() const{ return m_id; }
102 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
103 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
104 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
105 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
106 inline OpenSearchAction& WithId(const Aws::String& value) { SetId(value); return *this;}
107 inline OpenSearchAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
108 inline OpenSearchAction& WithId(const char* value) { SetId(value); return *this;}
110 private:
111
112 Aws::String m_roleArn;
113 bool m_roleArnHasBeenSet = false;
114
115 Aws::String m_endpoint;
116 bool m_endpointHasBeenSet = false;
117
118 Aws::String m_index;
119 bool m_indexHasBeenSet = false;
120
121 Aws::String m_type;
122 bool m_typeHasBeenSet = false;
123
124 Aws::String m_id;
125 bool m_idHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IoT
130} // namespace Aws
void SetIndex(Aws::String &&value)
OpenSearchAction & WithEndpoint(Aws::String &&value)
void SetEndpoint(const char *value)
const Aws::String & GetRoleArn() const
OpenSearchAction & WithId(const char *value)
OpenSearchAction & WithType(const char *value)
OpenSearchAction & WithType(const Aws::String &value)
void SetId(Aws::String &&value)
void SetEndpoint(Aws::String &&value)
OpenSearchAction & WithEndpoint(const char *value)
OpenSearchAction & WithEndpoint(const Aws::String &value)
OpenSearchAction & WithId(Aws::String &&value)
OpenSearchAction & WithRoleArn(const char *value)
OpenSearchAction & WithId(const Aws::String &value)
void SetIndex(const Aws::String &value)
OpenSearchAction & WithType(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
void SetId(const Aws::String &value)
OpenSearchAction & WithIndex(const Aws::String &value)
OpenSearchAction & WithIndex(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchAction & WithRoleArn(const Aws::String &value)
void SetRoleArn(const char *value)
void SetType(const Aws::String &value)
const Aws::String & GetIndex() const
AWS_IOT_API OpenSearchAction(Aws::Utils::Json::JsonView jsonValue)
OpenSearchAction & WithRoleArn(Aws::String &&value)
void SetIndex(const char *value)
const Aws::String & GetType() const
void SetType(const char *value)
AWS_IOT_API OpenSearchAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndpoint(const Aws::String &value)
const Aws::String & GetEndpoint() const
void SetRoleArn(const Aws::String &value)
const Aws::String & GetId() const
void SetType(Aws::String &&value)
OpenSearchAction & WithIndex(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue