AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateObjectRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/clouddirectory/model/ObjectReference.h>
12#include <aws/clouddirectory/model/SchemaFacet.h>
13#include <aws/clouddirectory/model/AttributeKeyAndValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudDirectory
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDDIRECTORY_API CreateObjectRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateObject"; }
35
36 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
47 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
48 template<typename DirectoryArnT = Aws::String>
49 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
50 template<typename DirectoryArnT = Aws::String>
51 CreateObjectRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
53
55
59 inline const Aws::Vector<SchemaFacet>& GetSchemaFacets() const { return m_schemaFacets; }
60 inline bool SchemaFacetsHasBeenSet() const { return m_schemaFacetsHasBeenSet; }
61 template<typename SchemaFacetsT = Aws::Vector<SchemaFacet>>
62 void SetSchemaFacets(SchemaFacetsT&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets = std::forward<SchemaFacetsT>(value); }
63 template<typename SchemaFacetsT = Aws::Vector<SchemaFacet>>
64 CreateObjectRequest& WithSchemaFacets(SchemaFacetsT&& value) { SetSchemaFacets(std::forward<SchemaFacetsT>(value)); return *this;}
65 template<typename SchemaFacetsT = SchemaFacet>
66 CreateObjectRequest& AddSchemaFacets(SchemaFacetsT&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets.emplace_back(std::forward<SchemaFacetsT>(value)); return *this; }
68
70
74 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const { return m_objectAttributeList; }
75 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
76 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
77 void SetObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::forward<ObjectAttributeListT>(value); }
78 template<typename ObjectAttributeListT = Aws::Vector<AttributeKeyAndValue>>
79 CreateObjectRequest& WithObjectAttributeList(ObjectAttributeListT&& value) { SetObjectAttributeList(std::forward<ObjectAttributeListT>(value)); return *this;}
80 template<typename ObjectAttributeListT = AttributeKeyAndValue>
81 CreateObjectRequest& AddObjectAttributeList(ObjectAttributeListT&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.emplace_back(std::forward<ObjectAttributeListT>(value)); return *this; }
83
85
88 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
89 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
90 template<typename ParentReferenceT = ObjectReference>
91 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
92 template<typename ParentReferenceT = ObjectReference>
93 CreateObjectRequest& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
95
97
100 inline const Aws::String& GetLinkName() const { return m_linkName; }
101 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
102 template<typename LinkNameT = Aws::String>
103 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
104 template<typename LinkNameT = Aws::String>
105 CreateObjectRequest& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
107 private:
108
109 Aws::String m_directoryArn;
110 bool m_directoryArnHasBeenSet = false;
111
112 Aws::Vector<SchemaFacet> m_schemaFacets;
113 bool m_schemaFacetsHasBeenSet = false;
114
115 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
116 bool m_objectAttributeListHasBeenSet = false;
117
118 ObjectReference m_parentReference;
119 bool m_parentReferenceHasBeenSet = false;
120
121 Aws::String m_linkName;
122 bool m_linkNameHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CloudDirectory
127} // 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
const ObjectReference & GetParentReference() const
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