AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
UpdateFacetRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/FacetAttributeUpdate.h>
10#include <aws/clouddirectory/model/ObjectType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudDirectory {
18namespace Model {
19
23 public:
24 AWS_CLOUDDIRECTORY_API UpdateFacetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateFacet"; }
31
32 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
42 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
43 template <typename SchemaArnT = Aws::String>
44 void SetSchemaArn(SchemaArnT&& value) {
45 m_schemaArnHasBeenSet = true;
46 m_schemaArn = std::forward<SchemaArnT>(value);
47 }
48 template <typename SchemaArnT = Aws::String>
49 UpdateFacetRequest& WithSchemaArn(SchemaArnT&& value) {
50 SetSchemaArn(std::forward<SchemaArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 UpdateFacetRequest& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<FacetAttributeUpdate>& GetAttributeUpdates() const { return m_attributeUpdates; }
80 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
81 template <typename AttributeUpdatesT = Aws::Vector<FacetAttributeUpdate>>
82 void SetAttributeUpdates(AttributeUpdatesT&& value) {
83 m_attributeUpdatesHasBeenSet = true;
84 m_attributeUpdates = std::forward<AttributeUpdatesT>(value);
85 }
86 template <typename AttributeUpdatesT = Aws::Vector<FacetAttributeUpdate>>
87 UpdateFacetRequest& WithAttributeUpdates(AttributeUpdatesT&& value) {
88 SetAttributeUpdates(std::forward<AttributeUpdatesT>(value));
89 return *this;
90 }
91 template <typename AttributeUpdatesT = FacetAttributeUpdate>
92 UpdateFacetRequest& AddAttributeUpdates(AttributeUpdatesT&& value) {
93 m_attributeUpdatesHasBeenSet = true;
94 m_attributeUpdates.emplace_back(std::forward<AttributeUpdatesT>(value));
95 return *this;
96 }
98
100
104 inline ObjectType GetObjectType() const { return m_objectType; }
105 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
106 inline void SetObjectType(ObjectType value) {
107 m_objectTypeHasBeenSet = true;
108 m_objectType = value;
109 }
111 SetObjectType(value);
112 return *this;
113 }
115 private:
116 Aws::String m_schemaArn;
117
118 Aws::String m_name;
119
120 Aws::Vector<FacetAttributeUpdate> m_attributeUpdates;
121
122 ObjectType m_objectType{ObjectType::NOT_SET};
123 bool m_schemaArnHasBeenSet = false;
124 bool m_nameHasBeenSet = false;
125 bool m_attributeUpdatesHasBeenSet = false;
126 bool m_objectTypeHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CloudDirectory
131} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API UpdateFacetRequest()=default
UpdateFacetRequest & WithName(NameT &&value)
UpdateFacetRequest & AddAttributeUpdates(AttributeUpdatesT &&value)
void SetAttributeUpdates(AttributeUpdatesT &&value)
UpdateFacetRequest & WithSchemaArn(SchemaArnT &&value)
UpdateFacetRequest & WithAttributeUpdates(AttributeUpdatesT &&value)
const Aws::Vector< FacetAttributeUpdate > & GetAttributeUpdates() const
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFacetRequest & WithObjectType(ObjectType 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