AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchCreateObject.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/clouddirectory/model/SchemaFacet.h>
12#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudDirectory
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CLOUDDIRECTORY_API BatchCreateObject() = default;
40 AWS_CLOUDDIRECTORY_API BatchCreateObject(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API BatchCreateObject& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<SchemaFacet>& GetSchemaFacet() const { return m_schemaFacet; }
51 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
52 template<typename SchemaFacetT = Aws::Vector<SchemaFacet>>
53 void SetSchemaFacet(SchemaFacetT&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::forward<SchemaFacetT>(value); }
54 template<typename SchemaFacetT = Aws::Vector<SchemaFacet>>
55 BatchCreateObject& WithSchemaFacet(SchemaFacetT&& value) { SetSchemaFacet(std::forward<SchemaFacetT>(value)); return *this;}
56 template<typename SchemaFacetT = SchemaFacet>
57 BatchCreateObject& AddSchemaFacet(SchemaFacetT&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet.emplace_back(std::forward<SchemaFacetT>(value)); return *this; }
59
61
65 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const { return m_objectAttributeList; }
66 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
67 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
68 void SetObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::forward<ObjectAttributeListT>(value); }
69 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
70 BatchCreateObject& WithObjectAttributeList(ObjectAttributeListT&& value) { SetObjectAttributeList(std::forward<ObjectAttributeListT>(value)); return *this;}
71 template<typename ObjectAttributeListT = AttributeKeyAndValue>
72 BatchCreateObject& AddObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.emplace_back(std::forward<ObjectAttributeListT>(value)); return *this; }
74
76
79 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
80 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
81 template<typename ParentReferenceT = ObjectReference>
82 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
83 template<typename ParentReferenceT = ObjectReference>
84 BatchCreateObject& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
86
88
91 inline const Aws::String& GetLinkName() const { return m_linkName; }
92 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
93 template<typename LinkNameT = Aws::String>
94 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
95 template<typename LinkNameT = Aws::String>
96 BatchCreateObject& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
98
100
105 inline const Aws::String& GetBatchReferenceName() const { return m_batchReferenceName; }
106 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
107 template<typename BatchReferenceNameT = Aws::String>
108 void SetBatchReferenceName(BatchReferenceNameT&& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = std::forward<BatchReferenceNameT>(value); }
109 template<typename BatchReferenceNameT = Aws::String>
110 BatchCreateObject& WithBatchReferenceName(BatchReferenceNameT&& value) { SetBatchReferenceName(std::forward<BatchReferenceNameT>(value)); return *this;}
112 private:
113
114 Aws::Vector<SchemaFacet> m_schemaFacet;
115 bool m_schemaFacetHasBeenSet = false;
116
117 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
118 bool m_objectAttributeListHasBeenSet = false;
119
120 ObjectReference m_parentReference;
121 bool m_parentReferenceHasBeenSet = false;
122
123 Aws::String m_linkName;
124 bool m_linkNameHasBeenSet = false;
125
126 Aws::String m_batchReferenceName;
127 bool m_batchReferenceNameHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudDirectory
132} // 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