AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
39
40
42
45 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 template<typename RoleArnT = Aws::String>
48 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
49 template<typename RoleArnT = Aws::String>
50 OpenSearchAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
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) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
61 template<typename EndpointT = Aws::String>
62 OpenSearchAction& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
64
66
69 inline const Aws::String& GetIndex() const { return m_index; }
70 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
71 template<typename IndexT = Aws::String>
72 void SetIndex(IndexT&& value) { m_indexHasBeenSet = true; m_index = std::forward<IndexT>(value); }
73 template<typename IndexT = Aws::String>
74 OpenSearchAction& WithIndex(IndexT&& value) { SetIndex(std::forward<IndexT>(value)); return *this;}
76
78
81 inline const Aws::String& GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 template<typename TypeT = Aws::String>
84 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
85 template<typename TypeT = Aws::String>
86 OpenSearchAction& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
88
90
93 inline const Aws::String& GetId() const { return m_id; }
94 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
95 template<typename IdT = Aws::String>
96 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
97 template<typename IdT = Aws::String>
98 OpenSearchAction& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
100 private:
101
102 Aws::String m_roleArn;
103 bool m_roleArnHasBeenSet = false;
104
105 Aws::String m_endpoint;
106 bool m_endpointHasBeenSet = false;
107
108 Aws::String m_index;
109 bool m_indexHasBeenSet = false;
110
111 Aws::String m_type;
112 bool m_typeHasBeenSet = false;
113
114 Aws::String m_id;
115 bool m_idHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoT
120} // 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