AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
CreateFacetRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/FacetAttribute.h>
10#include <aws/clouddirectory/model/FacetStyle.h>
11#include <aws/clouddirectory/model/ObjectType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudDirectory {
19namespace Model {
20
24 public:
25 AWS_CLOUDDIRECTORY_API CreateFacetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateFacet"; }
32
33 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
43 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
44 template <typename SchemaArnT = Aws::String>
45 void SetSchemaArn(SchemaArnT&& value) {
46 m_schemaArnHasBeenSet = true;
47 m_schemaArn = std::forward<SchemaArnT>(value);
48 }
49 template <typename SchemaArnT = Aws::String>
50 CreateFacetRequest& WithSchemaArn(SchemaArnT&& value) {
51 SetSchemaArn(std::forward<SchemaArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 CreateFacetRequest& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<FacetAttribute>& GetAttributes() const { return m_attributes; }
79 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
80 template <typename AttributesT = Aws::Vector<FacetAttribute>>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = Aws::Vector<FacetAttribute>>
86 CreateFacetRequest& WithAttributes(AttributesT&& value) {
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
90 template <typename AttributesT = FacetAttribute>
91 CreateFacetRequest& AddAttributes(AttributesT&& value) {
92 m_attributesHasBeenSet = true;
93 m_attributes.emplace_back(std::forward<AttributesT>(value));
94 return *this;
95 }
97
99
109 inline ObjectType GetObjectType() const { return m_objectType; }
110 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
111 inline void SetObjectType(ObjectType value) {
112 m_objectTypeHasBeenSet = true;
113 m_objectType = value;
114 }
116 SetObjectType(value);
117 return *this;
118 }
120
122
128 inline FacetStyle GetFacetStyle() const { return m_facetStyle; }
129 inline bool FacetStyleHasBeenSet() const { return m_facetStyleHasBeenSet; }
130 inline void SetFacetStyle(FacetStyle value) {
131 m_facetStyleHasBeenSet = true;
132 m_facetStyle = value;
133 }
135 SetFacetStyle(value);
136 return *this;
137 }
139 private:
140 Aws::String m_schemaArn;
141
142 Aws::String m_name;
143
144 Aws::Vector<FacetAttribute> m_attributes;
145
146 ObjectType m_objectType{ObjectType::NOT_SET};
147
148 FacetStyle m_facetStyle{FacetStyle::NOT_SET};
149 bool m_schemaArnHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_attributesHasBeenSet = false;
152 bool m_objectTypeHasBeenSet = false;
153 bool m_facetStyleHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace CloudDirectory
158} // namespace Aws
CreateFacetRequest & WithSchemaArn(SchemaArnT &&value)
CreateFacetRequest & WithAttributes(AttributesT &&value)
AWS_CLOUDDIRECTORY_API CreateFacetRequest()=default
CreateFacetRequest & AddAttributes(AttributesT &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateFacetRequest & WithFacetStyle(FacetStyle value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
CreateFacetRequest & WithObjectType(ObjectType value)
CreateFacetRequest & WithName(NameT &&value)
const Aws::Vector< FacetAttribute > & GetAttributes() const
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