AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ExportOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/SavedObjectIdentifier.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVICE_API ExportOptions() = default;
33 AWS_OPENSEARCHSERVICE_API ExportOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API ExportOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
44 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
45 template <typename TypesT = Aws::Vector<Aws::String>>
46 void SetTypes(TypesT&& value) {
47 m_typesHasBeenSet = true;
48 m_types = std::forward<TypesT>(value);
49 }
50 template <typename TypesT = Aws::Vector<Aws::String>>
51 ExportOptions& WithTypes(TypesT&& value) {
52 SetTypes(std::forward<TypesT>(value));
53 return *this;
54 }
55 template <typename TypesT = Aws::String>
56 ExportOptions& AddTypes(TypesT&& value) {
57 m_typesHasBeenSet = true;
58 m_types.emplace_back(std::forward<TypesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<SavedObjectIdentifier>& GetObjects() const { return m_objects; }
69 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
70 template <typename ObjectsT = Aws::Vector<SavedObjectIdentifier>>
71 void SetObjects(ObjectsT&& value) {
72 m_objectsHasBeenSet = true;
73 m_objects = std::forward<ObjectsT>(value);
74 }
75 template <typename ObjectsT = Aws::Vector<SavedObjectIdentifier>>
76 ExportOptions& WithObjects(ObjectsT&& value) {
77 SetObjects(std::forward<ObjectsT>(value));
78 return *this;
79 }
80 template <typename ObjectsT = SavedObjectIdentifier>
81 ExportOptions& AddObjects(ObjectsT&& value) {
82 m_objectsHasBeenSet = true;
83 m_objects.emplace_back(std::forward<ObjectsT>(value));
84 return *this;
85 }
87
89
93 inline bool GetIncludeReferencesDeep() const { return m_includeReferencesDeep; }
94 inline bool IncludeReferencesDeepHasBeenSet() const { return m_includeReferencesDeepHasBeenSet; }
95 inline void SetIncludeReferencesDeep(bool value) {
96 m_includeReferencesDeepHasBeenSet = true;
97 m_includeReferencesDeep = value;
98 }
101 return *this;
102 }
104 private:
106
108
109 bool m_includeReferencesDeep{false};
110 bool m_typesHasBeenSet = false;
111 bool m_objectsHasBeenSet = false;
112 bool m_includeReferencesDeepHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace OpenSearchService
117} // namespace Aws
ExportOptions & WithTypes(TypesT &&value)
const Aws::Vector< Aws::String > & GetTypes() const
AWS_OPENSEARCHSERVICE_API ExportOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API ExportOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ExportOptions & AddObjects(ObjectsT &&value)
ExportOptions & AddTypes(TypesT &&value)
ExportOptions & WithObjects(ObjectsT &&value)
AWS_OPENSEARCHSERVICE_API ExportOptions()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ExportOptions & WithIncludeReferencesDeep(bool value)
const Aws::Vector< SavedObjectIdentifier > & GetObjects() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue