AWS SDK for C++  1.8.71
AWS SDK for C++
AddFacetToObjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace CloudDirectory
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
45  inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; }
46 
51  inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
52 
57  inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
58 
63  inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
64 
69  inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
70 
75  inline AddFacetToObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
76 
81  inline AddFacetToObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
82 
87  inline AddFacetToObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
88 
89 
94  inline const SchemaFacet& GetSchemaFacet() const{ return m_schemaFacet; }
95 
100  inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
101 
106  inline void SetSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; }
107 
112  inline void SetSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); }
113 
118  inline AddFacetToObjectRequest& WithSchemaFacet(const SchemaFacet& value) { SetSchemaFacet(value); return *this;}
119 
124  inline AddFacetToObjectRequest& WithSchemaFacet(SchemaFacet&& value) { SetSchemaFacet(std::move(value)); return *this;}
125 
126 
130  inline const Aws::Vector<AttributeKeyAndValue>& GetObjectAttributeList() const{ return m_objectAttributeList; }
131 
135  inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; }
136 
140  inline void SetObjectAttributeList(const Aws::Vector<AttributeKeyAndValue>& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = value; }
141 
145  inline void SetObjectAttributeList(Aws::Vector<AttributeKeyAndValue>&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::move(value); }
146 
150  inline AddFacetToObjectRequest& WithObjectAttributeList(const Aws::Vector<AttributeKeyAndValue>& value) { SetObjectAttributeList(value); return *this;}
151 
155  inline AddFacetToObjectRequest& WithObjectAttributeList(Aws::Vector<AttributeKeyAndValue>&& value) { SetObjectAttributeList(std::move(value)); return *this;}
156 
160  inline AddFacetToObjectRequest& AddObjectAttributeList(const AttributeKeyAndValue& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(value); return *this; }
161 
165  inline AddFacetToObjectRequest& AddObjectAttributeList(AttributeKeyAndValue&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(std::move(value)); return *this; }
166 
167 
171  inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
172 
176  inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
177 
181  inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
182 
186  inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
187 
191  inline AddFacetToObjectRequest& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;}
192 
196  inline AddFacetToObjectRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
197 
198  private:
199 
200  Aws::String m_directoryArn;
201  bool m_directoryArnHasBeenSet;
202 
203  SchemaFacet m_schemaFacet;
204  bool m_schemaFacetHasBeenSet;
205 
206  Aws::Vector<AttributeKeyAndValue> m_objectAttributeList;
207  bool m_objectAttributeListHasBeenSet;
208 
209  ObjectReference m_objectReference;
210  bool m_objectReferenceHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace CloudDirectory
215 } // namespace Aws
AddFacetToObjectRequest & WithDirectoryArn(Aws::String &&value)
AddFacetToObjectRequest & AddObjectAttributeList(const AttributeKeyAndValue &value)
void SetObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
AddFacetToObjectRequest & WithDirectoryArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AddFacetToObjectRequest & WithSchemaFacet(SchemaFacet &&value)
AddFacetToObjectRequest & WithDirectoryArn(const char *value)
AddFacetToObjectRequest & WithObjectReference(ObjectReference &&value)
#define AWS_CLOUDDIRECTORY_API
AddFacetToObjectRequest & WithObjectAttributeList(Aws::Vector< AttributeKeyAndValue > &&value)
AddFacetToObjectRequest & WithObjectReference(const ObjectReference &value)
void SetObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &value)
AddFacetToObjectRequest & AddObjectAttributeList(AttributeKeyAndValue &&value)
const Aws::Vector< AttributeKeyAndValue > & GetObjectAttributeList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddFacetToObjectRequest & WithObjectAttributeList(const Aws::Vector< AttributeKeyAndValue > &value)
virtual const char * GetServiceRequestName() const override
AddFacetToObjectRequest & WithSchemaFacet(const SchemaFacet &value)