AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
CreateObjectRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
10#include <aws/clouddirectory/model/ObjectReference.h>
11#include <aws/clouddirectory/model/SchemaFacet.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudDirectory {
19namespace Model {
20
24 public:
25 AWS_CLOUDDIRECTORY_API CreateObjectRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateObject"; }
32
33 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
43 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
44 template <typename DirectoryArnT = Aws::String>
45 void SetDirectoryArn(DirectoryArnT&& value) {
46 m_directoryArnHasBeenSet = true;
47 m_directoryArn = std::forward<DirectoryArnT>(value);
48 }
49 template <typename DirectoryArnT = Aws::String>
50 CreateObjectRequest& WithDirectoryArn(DirectoryArnT&& value) {
51 SetDirectoryArn(std::forward<DirectoryArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<SchemaFacet>& GetSchemaFacets() const { return m_schemaFacets; }
62 inline bool SchemaFacetsHasBeenSet() const { return m_schemaFacetsHasBeenSet; }
63 template <typename SchemaFacetsT = Aws::Vector<SchemaFacet>>
64 void SetSchemaFacets(SchemaFacetsT&& value) {
65 m_schemaFacetsHasBeenSet = true;
66 m_schemaFacets = std::forward<SchemaFacetsT>(value);
67 }
68 template <typename SchemaFacetsT = Aws::Vector<SchemaFacet>>
69 CreateObjectRequest& WithSchemaFacets(SchemaFacetsT&& value) {
70 SetSchemaFacets(std::forward<SchemaFacetsT>(value));
71 return *this;
72 }
73 template <typename SchemaFacetsT = SchemaFacet>
74 CreateObjectRequest& AddSchemaFacets(SchemaFacetsT&& value) {
75 m_schemaFacetsHasBeenSet = true;
76 m_schemaFacets.emplace_back(std::forward<SchemaFacetsT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const { return m_objectAttributeList; }
87 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
88 template <typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
89 void SetObjectAttributeList(ObjectAttributeListT&& value) {
90 m_objectAttributeListHasBeenSet = true;
91 m_objectAttributeList = std::forward<ObjectAttributeListT>(value);
92 }
93 template <typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
94 CreateObjectRequest& WithObjectAttributeList(ObjectAttributeListT&& value) {
95 SetObjectAttributeList(std::forward<ObjectAttributeListT>(value));
96 return *this;
97 }
98 template <typename ObjectAttributeListT = AttributeKeyAndValue>
99 CreateObjectRequest& AddObjectAttributeList(ObjectAttributeListT&& value) {
100 m_objectAttributeListHasBeenSet = true;
101 m_objectAttributeList.emplace_back(std::forward<ObjectAttributeListT>(value));
102 return *this;
103 }
105
107
110 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
111 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
112 template <typename ParentReferenceT = ObjectReference>
113 void SetParentReference(ParentReferenceT&& value) {
114 m_parentReferenceHasBeenSet = true;
115 m_parentReference = std::forward<ParentReferenceT>(value);
116 }
117 template <typename ParentReferenceT = ObjectReference>
118 CreateObjectRequest& WithParentReference(ParentReferenceT&& value) {
119 SetParentReference(std::forward<ParentReferenceT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetLinkName() const { return m_linkName; }
129 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
130 template <typename LinkNameT = Aws::String>
131 void SetLinkName(LinkNameT&& value) {
132 m_linkNameHasBeenSet = true;
133 m_linkName = std::forward<LinkNameT>(value);
134 }
135 template <typename LinkNameT = Aws::String>
136 CreateObjectRequest& WithLinkName(LinkNameT&& value) {
137 SetLinkName(std::forward<LinkNameT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_directoryArn;
143
144 Aws::Vector<SchemaFacet> m_schemaFacets;
145
146 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
147
148 ObjectReference m_parentReference;
149
150 Aws::String m_linkName;
151 bool m_directoryArnHasBeenSet = false;
152 bool m_schemaFacetsHasBeenSet = false;
153 bool m_objectAttributeListHasBeenSet = false;
154 bool m_parentReferenceHasBeenSet = false;
155 bool m_linkNameHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace CloudDirectory
160} // namespace Aws
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
CreateObjectRequest & WithParentReference(ParentReferenceT &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
const Aws::Vector< SchemaFacet > & GetSchemaFacets() const
CreateObjectRequest & WithLinkName(LinkNameT &&value)
CreateObjectRequest & WithSchemaFacets(SchemaFacetsT &&value)
CreateObjectRequest & AddObjectAttributeList(ObjectAttributeListT &&value)
CreateObjectRequest & WithDirectoryArn(DirectoryArnT &&value)
CreateObjectRequest & WithObjectAttributeList(ObjectAttributeListT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDDIRECTORY_API CreateObjectRequest()=default
CreateObjectRequest & AddSchemaFacets(SchemaFacetsT &&value)
void SetObjectAttributeList(ObjectAttributeListT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector