AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
49 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
50 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
51 inline CreateObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
52 inline CreateObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
53 inline CreateObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
55
57
61 inline const Aws::Vector<SchemaFacet>& GetSchemaFacets() const{ return m_schemaFacets; }
62 inline bool SchemaFacetsHasBeenSet() const { return m_schemaFacetsHasBeenSet; }
63 inline void SetSchemaFacets(const Aws::Vector<SchemaFacet>& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets = value; }
64 inline void SetSchemaFacets(Aws::Vector<SchemaFacet>&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets = std::move(value); }
66 inline CreateObjectRequest& WithSchemaFacets(Aws::Vector<SchemaFacet>&& value) { SetSchemaFacets(std::move(value)); return *this;}
67 inline CreateObjectRequest& AddSchemaFacets(const SchemaFacet& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets.push_back(value); return *this; }
68 inline CreateObjectRequest& AddSchemaFacets(SchemaFacet&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets.push_back(std::move(value)); return *this; }
70
72
76 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const{ return m_objectAttributeList; }
77 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
78 inline void SetObjectAttributeList(const Aws::Vector<AttributeKeyAndValue>& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = value; }
79 inline void SetObjectAttributeList(Aws::Vector<AttributeKeyAndValue>&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::move(value); }
82 inline CreateObjectRequest& AddObjectAttributeList(const AttributeKeyAndValue& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(value); return *this; }
83 inline CreateObjectRequest& AddObjectAttributeList(AttributeKeyAndValue&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(std::move(value)); return *this; }
85
87
90 inline const ObjectReference& GetParentReference() const{ return m_parentReference; }
91 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
92 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
93 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
94 inline CreateObjectRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
95 inline CreateObjectRequest& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetLinkName() const{ return m_linkName; }
103 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
104 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; }
105 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); }
106 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); }
107 inline CreateObjectRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
108 inline CreateObjectRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
109 inline CreateObjectRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;}
111 private:
112
113 Aws::String m_directoryArn;
114 bool m_directoryArnHasBeenSet = false;
115
116 Aws::Vector<SchemaFacet> m_schemaFacets;
117 bool m_schemaFacetsHasBeenSet = false;
118
119 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
120 bool m_objectAttributeListHasBeenSet = false;
121
122 ObjectReference m_parentReference;
123 bool m_parentReferenceHasBeenSet = false;
124
125 Aws::String m_linkName;
126 bool m_linkNameHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CloudDirectory
131} // namespace Aws
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
CreateObjectRequest & AddObjectAttributeList(AttributeKeyAndValue &&value)
CreateObjectRequest & AddObjectAttributeList(const AttributeKeyAndValue &value)
const Aws::Vector< SchemaFacet > & GetSchemaFacets() const
void SetParentReference(const ObjectReference &value)
CreateObjectRequest & WithDirectoryArn(const Aws::String &value)
CreateObjectRequest & AddSchemaFacets(const SchemaFacet &value)
CreateObjectRequest & WithSchemaFacets(const Aws::Vector< SchemaFacet > &value)
CreateObjectRequest & WithObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &value)
void SetObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
CreateObjectRequest & WithObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
void SetObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &value)
CreateObjectRequest & WithLinkName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const ObjectReference & GetParentReference() const
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateObjectRequest & WithSchemaFacets(Aws::Vector< SchemaFacet > &&value)
CreateObjectRequest & WithLinkName(const char *value)
CreateObjectRequest & WithParentReference(ObjectReference &&value)
CreateObjectRequest & WithDirectoryArn(Aws::String &&value)
void SetSchemaFacets(Aws::Vector< SchemaFacet > &&value)
CreateObjectRequest & WithDirectoryArn(const char *value)
CreateObjectRequest & WithLinkName(Aws::String &&value)
void SetSchemaFacets(const Aws::Vector< SchemaFacet > &value)
CreateObjectRequest & WithParentReference(const ObjectReference &value)
CreateObjectRequest & AddSchemaFacets(SchemaFacet &&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