AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchAddFacetToObject.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/SchemaFacet.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/clouddirectory/model/ObjectReference.h>
11#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudDirectory
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDDIRECTORY_API BatchAddFacetToObject() = default;
39 AWS_CLOUDDIRECTORY_API BatchAddFacetToObject(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const SchemaFacet& GetSchemaFacet() const { return m_schemaFacet; }
49 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
50 template<typename SchemaFacetT = SchemaFacet>
51 void SetSchemaFacet(SchemaFacetT&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::forward<SchemaFacetT>(value); }
52 template<typename SchemaFacetT = SchemaFacet>
53 BatchAddFacetToObject& WithSchemaFacet(SchemaFacetT&& value) { SetSchemaFacet(std::forward<SchemaFacetT>(value)); return *this;}
55
57
60 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const { return m_objectAttributeList; }
61 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
62 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
63 void SetObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::forward<ObjectAttributeListT>(value); }
64 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
65 BatchAddFacetToObject& WithObjectAttributeList(ObjectAttributeListT&& value) { SetObjectAttributeList(std::forward<ObjectAttributeListT>(value)); return *this;}
66 template<typename ObjectAttributeListT = AttributeKeyAndValue>
67 BatchAddFacetToObject& AddObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.emplace_back(std::forward<ObjectAttributeListT>(value)); return *this; }
69
71
74 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
75 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
76 template<typename ObjectReferenceT = ObjectReference>
77 void SetObjectReference(ObjectReferenceT&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::forward<ObjectReferenceT>(value); }
78 template<typename ObjectReferenceT = ObjectReference>
79 BatchAddFacetToObject& WithObjectReference(ObjectReferenceT&& value) { SetObjectReference(std::forward<ObjectReferenceT>(value)); return *this;}
81 private:
82
83 SchemaFacet m_schemaFacet;
84 bool m_schemaFacetHasBeenSet = false;
85
86 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
87 bool m_objectAttributeListHasBeenSet = false;
88
89 ObjectReference m_objectReference;
90 bool m_objectReferenceHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudDirectory
95} // namespace Aws
BatchAddFacetToObject & WithObjectReference(ObjectReferenceT &&value)
void SetObjectAttributeList(ObjectAttributeListT &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
BatchAddFacetToObject & WithObjectAttributeList(ObjectAttributeListT &&value)
BatchAddFacetToObject & AddObjectAttributeList(ObjectAttributeListT &&value)
AWS_CLOUDDIRECTORY_API BatchAddFacetToObject(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API BatchAddFacetToObject()=default
AWS_CLOUDDIRECTORY_API BatchAddFacetToObject & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchAddFacetToObject & WithSchemaFacet(SchemaFacetT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue