AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddFacetToObjectRequest.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/clouddirectory/model/SchemaFacet.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/clouddirectory/model/ObjectReference.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 AddFacetToObjectRequest();
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 "AddFacetToObject"; }
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 AddFacetToObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
52 inline AddFacetToObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
53 inline AddFacetToObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
55
57
61 inline const SchemaFacet& GetSchemaFacet() const{ return m_schemaFacet; }
62 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
63 inline void SetSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; }
64 inline void SetSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); }
65 inline AddFacetToObjectRequest& WithSchemaFacet(const SchemaFacet& value) { SetSchemaFacet(value); return *this;}
66 inline AddFacetToObjectRequest& WithSchemaFacet(SchemaFacet&& value) { SetSchemaFacet(std::move(value)); return *this;}
68
70
73 inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const{ return m_objectAttributeList; }
74 inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
75 inline void SetObjectAttributeList(const Aws::Vector<AttributeKeyAndValue>& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = value; }
76 inline void SetObjectAttributeList(Aws::Vector<AttributeKeyAndValue>&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::move(value); }
79 inline AddFacetToObjectRequest& AddObjectAttributeList(const AttributeKeyAndValue& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(value); return *this; }
80 inline AddFacetToObjectRequest& AddObjectAttributeList(AttributeKeyAndValue&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(std::move(value)); return *this; }
82
84
87 inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
88 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
89 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
90 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
92 inline AddFacetToObjectRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_directoryArn;
97 bool m_directoryArnHasBeenSet = false;
98
99 SchemaFacet m_schemaFacet;
100 bool m_schemaFacetHasBeenSet = false;
101
102 Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
103 bool m_objectAttributeListHasBeenSet = false;
104
105 ObjectReference m_objectReference;
106 bool m_objectReferenceHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudDirectory
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
AddFacetToObjectRequest & WithDirectoryArn(const char *value)
AddFacetToObjectRequest & WithObjectReference(const ObjectReference &value)
AddFacetToObjectRequest & WithObjectReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddFacetToObjectRequest & WithSchemaFacet(SchemaFacet &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AddFacetToObjectRequest & WithObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
AddFacetToObjectRequest & WithSchemaFacet(const SchemaFacet &value)
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
AddFacetToObjectRequest & WithDirectoryArn(const Aws::String &value)
AddFacetToObjectRequest & AddObjectAttributeList(const AttributeKeyAndValue &value)
AddFacetToObjectRequest & AddObjectAttributeList(AttributeKeyAndValue &&value)
AddFacetToObjectRequest & WithDirectoryArn(Aws::String &&value)
AddFacetToObjectRequest & WithObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &value)
void SetObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
void SetObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &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