AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchCreateObject.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/clouddirectory/model/SchemaFacet.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory {
24namespace Model {
25
33 public:
34 AWS_CLOUDDIRECTORY_API BatchCreateObject() = default;
35 AWS_CLOUDDIRECTORY_API BatchCreateObject(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDDIRECTORY_API BatchCreateObject& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<SchemaFacet>& GetSchemaFacet() const { return m_schemaFacet; }
45 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
46 template <typename SchemaFacetT = Aws::Vector<SchemaFacet>>
47 void SetSchemaFacet(SchemaFacetT&& value) {
48 m_schemaFacetHasBeenSet = true;
49 m_schemaFacet = std::forward<SchemaFacetT>(value);
50 }
51 template <typename SchemaFacetT = Aws::Vector<SchemaFacet>>
52 BatchCreateObject& WithSchemaFacet(SchemaFacetT&& value) {
53 SetSchemaFacet(std::forward<SchemaFacetT>(value));
54 return *this;
55 }
56 template <typename SchemaFacetT = SchemaFacet>
57 BatchCreateObject& AddSchemaFacet(SchemaFacetT&& value) {
58 m_schemaFacetHasBeenSet = true;
59 m_schemaFacet.emplace_back(std::forward<SchemaFacetT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const { return m_objectAttributeList; }
70 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
71 template <typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
72 void SetObjectAttributeList(ObjectAttributeListT&& value) {
73 m_objectAttributeListHasBeenSet = true;
74 m_objectAttributeList = std::forward<ObjectAttributeListT>(value);
75 }
76 template <typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
77 BatchCreateObject& WithObjectAttributeList(ObjectAttributeListT&& value) {
78 SetObjectAttributeList(std::forward<ObjectAttributeListT>(value));
79 return *this;
80 }
81 template <typename ObjectAttributeListT = AttributeKeyAndValue>
82 BatchCreateObject& AddObjectAttributeList(ObjectAttributeListT&& value) {
83 m_objectAttributeListHasBeenSet = true;
84 m_objectAttributeList.emplace_back(std::forward<ObjectAttributeListT>(value));
85 return *this;
86 }
88
90
93 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
94 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
95 template <typename ParentReferenceT = ObjectReference>
96 void SetParentReference(ParentReferenceT&& value) {
97 m_parentReferenceHasBeenSet = true;
98 m_parentReference = std::forward<ParentReferenceT>(value);
99 }
100 template <typename ParentReferenceT = ObjectReference>
101 BatchCreateObject& WithParentReference(ParentReferenceT&& value) {
102 SetParentReference(std::forward<ParentReferenceT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLinkName() const { return m_linkName; }
112 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
113 template <typename LinkNameT = Aws::String>
114 void SetLinkName(LinkNameT&& value) {
115 m_linkNameHasBeenSet = true;
116 m_linkName = std::forward<LinkNameT>(value);
117 }
118 template <typename LinkNameT = Aws::String>
119 BatchCreateObject& WithLinkName(LinkNameT&& value) {
120 SetLinkName(std::forward<LinkNameT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::String& GetBatchReferenceName() const { return m_batchReferenceName; }
132 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
133 template <typename BatchReferenceNameT = Aws::String>
134 void SetBatchReferenceName(BatchReferenceNameT&& value) {
135 m_batchReferenceNameHasBeenSet = true;
136 m_batchReferenceName = std::forward<BatchReferenceNameT>(value);
137 }
138 template <typename BatchReferenceNameT = Aws::String>
139 BatchCreateObject& WithBatchReferenceName(BatchReferenceNameT&& value) {
140 SetBatchReferenceName(std::forward<BatchReferenceNameT>(value));
141 return *this;
142 }
144 private:
145 Aws::Vector<SchemaFacet> m_schemaFacet;
146
147 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
148
149 ObjectReference m_parentReference;
150
151 Aws::String m_linkName;
152
153 Aws::String m_batchReferenceName;
154 bool m_schemaFacetHasBeenSet = false;
155 bool m_objectAttributeListHasBeenSet = false;
156 bool m_parentReferenceHasBeenSet = false;
157 bool m_linkNameHasBeenSet = false;
158 bool m_batchReferenceNameHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudDirectory
163} // namespace Aws
BatchCreateObject & WithBatchReferenceName(BatchReferenceNameT &&value)
const ObjectReference & GetParentReference() const
AWS_CLOUDDIRECTORY_API BatchCreateObject(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SchemaFacet > & GetSchemaFacet() const
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchCreateObject & AddSchemaFacet(SchemaFacetT &&value)
AWS_CLOUDDIRECTORY_API BatchCreateObject()=default
BatchCreateObject & AddObjectAttributeList(ObjectAttributeListT &&value)
void SetBatchReferenceName(BatchReferenceNameT &&value)
void SetObjectAttributeList(ObjectAttributeListT &&value)
BatchCreateObject & WithObjectAttributeList(ObjectAttributeListT &&value)
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
BatchCreateObject & WithLinkName(LinkNameT &&value)
BatchCreateObject & WithParentReference(ParentReferenceT &&value)
BatchCreateObject & WithSchemaFacet(SchemaFacetT &&value)
void SetParentReference(ParentReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchCreateObject & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue