AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
OpenSearchAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API OpenSearchAction() = default;
34
36
39 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
40 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
41 template <typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) {
43 m_roleArnHasBeenSet = true;
44 m_roleArn = std::forward<RoleArnT>(value);
45 }
46 template <typename RoleArnT = Aws::String>
47 OpenSearchAction& WithRoleArn(RoleArnT&& value) {
48 SetRoleArn(std::forward<RoleArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
58 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
59 template <typename EndpointT = Aws::String>
60 void SetEndpoint(EndpointT&& value) {
61 m_endpointHasBeenSet = true;
62 m_endpoint = std::forward<EndpointT>(value);
63 }
64 template <typename EndpointT = Aws::String>
65 OpenSearchAction& WithEndpoint(EndpointT&& value) {
66 SetEndpoint(std::forward<EndpointT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetIndex() const { return m_index; }
76 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
77 template <typename IndexT = Aws::String>
78 void SetIndex(IndexT&& value) {
79 m_indexHasBeenSet = true;
80 m_index = std::forward<IndexT>(value);
81 }
82 template <typename IndexT = Aws::String>
83 OpenSearchAction& WithIndex(IndexT&& value) {
84 SetIndex(std::forward<IndexT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 template <typename TypeT = Aws::String>
96 void SetType(TypeT&& value) {
97 m_typeHasBeenSet = true;
98 m_type = std::forward<TypeT>(value);
99 }
100 template <typename TypeT = Aws::String>
101 OpenSearchAction& WithType(TypeT&& value) {
102 SetType(std::forward<TypeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetId() const { return m_id; }
112 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
113 template <typename IdT = Aws::String>
114 void SetId(IdT&& value) {
115 m_idHasBeenSet = true;
116 m_id = std::forward<IdT>(value);
117 }
118 template <typename IdT = Aws::String>
119 OpenSearchAction& WithId(IdT&& value) {
120 SetId(std::forward<IdT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_roleArn;
126
127 Aws::String m_endpoint;
128
129 Aws::String m_index;
130
131 Aws::String m_type;
132
133 Aws::String m_id;
134 bool m_roleArnHasBeenSet = false;
135 bool m_endpointHasBeenSet = false;
136 bool m_indexHasBeenSet = false;
137 bool m_typeHasBeenSet = false;
138 bool m_idHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace IoT
143} // namespace Aws
OpenSearchAction & WithId(IdT &&value)
OpenSearchAction & WithType(TypeT &&value)
const Aws::String & GetRoleArn() const
void SetRoleArn(RoleArnT &&value)
AWS_IOT_API OpenSearchAction()=default
OpenSearchAction & WithEndpoint(EndpointT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIndex() const
AWS_IOT_API OpenSearchAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
AWS_IOT_API OpenSearchAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndpoint(EndpointT &&value)
const Aws::String & GetEndpoint() const
const Aws::String & GetId() const
OpenSearchAction & WithIndex(IndexT &&value)
OpenSearchAction & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue