AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
ElasticsearchAction.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
34 public:
35 AWS_IOT_API ElasticsearchAction() = default;
39
41
44 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
45 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
46 template <typename RoleArnT = Aws::String>
47 void SetRoleArn(RoleArnT&& value) {
48 m_roleArnHasBeenSet = true;
49 m_roleArn = std::forward<RoleArnT>(value);
50 }
51 template <typename RoleArnT = Aws::String>
52 ElasticsearchAction& WithRoleArn(RoleArnT&& value) {
53 SetRoleArn(std::forward<RoleArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
63 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
64 template <typename EndpointT = Aws::String>
65 void SetEndpoint(EndpointT&& value) {
66 m_endpointHasBeenSet = true;
67 m_endpoint = std::forward<EndpointT>(value);
68 }
69 template <typename EndpointT = Aws::String>
70 ElasticsearchAction& WithEndpoint(EndpointT&& value) {
71 SetEndpoint(std::forward<EndpointT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetIndex() const { return m_index; }
81 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
82 template <typename IndexT = Aws::String>
83 void SetIndex(IndexT&& value) {
84 m_indexHasBeenSet = true;
85 m_index = std::forward<IndexT>(value);
86 }
87 template <typename IndexT = Aws::String>
88 ElasticsearchAction& WithIndex(IndexT&& value) {
89 SetIndex(std::forward<IndexT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 template <typename TypeT = Aws::String>
101 void SetType(TypeT&& value) {
102 m_typeHasBeenSet = true;
103 m_type = std::forward<TypeT>(value);
104 }
105 template <typename TypeT = Aws::String>
107 SetType(std::forward<TypeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetId() const { return m_id; }
117 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
118 template <typename IdT = Aws::String>
119 void SetId(IdT&& value) {
120 m_idHasBeenSet = true;
121 m_id = std::forward<IdT>(value);
122 }
123 template <typename IdT = Aws::String>
125 SetId(std::forward<IdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_roleArn;
131
132 Aws::String m_endpoint;
133
134 Aws::String m_index;
135
136 Aws::String m_type;
137
138 Aws::String m_id;
139 bool m_roleArnHasBeenSet = false;
140 bool m_endpointHasBeenSet = false;
141 bool m_indexHasBeenSet = false;
142 bool m_typeHasBeenSet = false;
143 bool m_idHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace IoT
148} // namespace Aws
const Aws::String & GetRoleArn() const
AWS_IOT_API ElasticsearchAction()=default
ElasticsearchAction & WithType(TypeT &&value)
const Aws::String & GetType() const
AWS_IOT_API ElasticsearchAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API ElasticsearchAction(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchAction & WithRoleArn(RoleArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIndex() const
const Aws::String & GetEndpoint() const
ElasticsearchAction & WithId(IdT &&value)
ElasticsearchAction & WithIndex(IndexT &&value)
ElasticsearchAction & WithEndpoint(EndpointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue