AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateFacetRequest.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/ObjectType.h>
12#include <aws/clouddirectory/model/FacetStyle.h>
13#include <aws/clouddirectory/model/FacetAttribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudDirectory
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDDIRECTORY_API CreateFacetRequest() = default;
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 "CreateFacet"; }
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& GetSchemaArn() const { return m_schemaArn; }
47 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
48 template<typename SchemaArnT = Aws::String>
49 void SetSchemaArn(SchemaArnT&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::forward<SchemaArnT>(value); }
50 template<typename SchemaArnT = Aws::String>
51 CreateFacetRequest& WithSchemaArn(SchemaArnT&& value) { SetSchemaArn(std::forward<SchemaArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateFacetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<FacetAttribute>& GetAttributes() const { return m_attributes; }
71 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
72 template<typename AttributesT = Aws::Vector<FacetAttribute>>
73 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
74 template<typename AttributesT = Aws::Vector<FacetAttribute>>
75 CreateFacetRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
76 template<typename AttributesT = FacetAttribute>
77 CreateFacetRequest& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
79
81
91 inline ObjectType GetObjectType() const { return m_objectType; }
92 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
93 inline void SetObjectType(ObjectType value) { m_objectTypeHasBeenSet = true; m_objectType = value; }
94 inline CreateFacetRequest& WithObjectType(ObjectType value) { SetObjectType(value); return *this;}
96
98
104 inline FacetStyle GetFacetStyle() const { return m_facetStyle; }
105 inline bool FacetStyleHasBeenSet() const { return m_facetStyleHasBeenSet; }
106 inline void SetFacetStyle(FacetStyle value) { m_facetStyleHasBeenSet = true; m_facetStyle = value; }
107 inline CreateFacetRequest& WithFacetStyle(FacetStyle value) { SetFacetStyle(value); return *this;}
109 private:
110
111 Aws::String m_schemaArn;
112 bool m_schemaArnHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::Vector<FacetAttribute> m_attributes;
118 bool m_attributesHasBeenSet = false;
119
120 ObjectType m_objectType{ObjectType::NOT_SET};
121 bool m_objectTypeHasBeenSet = false;
122
123 FacetStyle m_facetStyle{FacetStyle::NOT_SET};
124 bool m_facetStyleHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CloudDirectory
129} // 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