AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ElasticsearchAction.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
38 {
39 public:
40 AWS_IOT_API ElasticsearchAction() = default;
44
45
47
50 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
51 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
52 template<typename RoleArnT = Aws::String>
53 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
54 template<typename RoleArnT = Aws::String>
55 ElasticsearchAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
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) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
66 template<typename EndpointT = Aws::String>
67 ElasticsearchAction& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
69
71
74 inline const Aws::String& GetIndex() const { return m_index; }
75 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
76 template<typename IndexT = Aws::String>
77 void SetIndex(IndexT&& value) { m_indexHasBeenSet = true; m_index = std::forward<IndexT>(value); }
78 template<typename IndexT = Aws::String>
79 ElasticsearchAction& WithIndex(IndexT&& value) { SetIndex(std::forward<IndexT>(value)); return *this;}
81
83
86 inline const Aws::String& GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 template<typename TypeT = Aws::String>
89 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
90 template<typename TypeT = Aws::String>
91 ElasticsearchAction& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
93
95
98 inline const Aws::String& GetId() const { return m_id; }
99 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
100 template<typename IdT = Aws::String>
101 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
102 template<typename IdT = Aws::String>
103 ElasticsearchAction& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
105 private:
106
107 Aws::String m_roleArn;
108 bool m_roleArnHasBeenSet = false;
109
110 Aws::String m_endpoint;
111 bool m_endpointHasBeenSet = false;
112
113 Aws::String m_index;
114 bool m_indexHasBeenSet = false;
115
116 Aws::String m_type;
117 bool m_typeHasBeenSet = false;
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IoT
125} // 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