AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; }
49 inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); }
50 inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); }
51 inline CreateFacetRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;}
52 inline CreateFacetRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;}
53 inline CreateFacetRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreateFacetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreateFacetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreateFacetRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::Vector<FacetAttribute>& GetAttributes() const{ return m_attributes; }
75 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
76 inline void SetAttributes(const Aws::Vector<FacetAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
77 inline void SetAttributes(Aws::Vector<FacetAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
78 inline CreateFacetRequest& WithAttributes(const Aws::Vector<FacetAttribute>& value) { SetAttributes(value); return *this;}
79 inline CreateFacetRequest& WithAttributes(Aws::Vector<FacetAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
80 inline CreateFacetRequest& AddAttributes(const FacetAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
81 inline CreateFacetRequest& AddAttributes(FacetAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
83
85
95 inline const ObjectType& GetObjectType() const{ return m_objectType; }
96 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
97 inline void SetObjectType(const ObjectType& value) { m_objectTypeHasBeenSet = true; m_objectType = value; }
98 inline void SetObjectType(ObjectType&& value) { m_objectTypeHasBeenSet = true; m_objectType = std::move(value); }
99 inline CreateFacetRequest& WithObjectType(const ObjectType& value) { SetObjectType(value); return *this;}
100 inline CreateFacetRequest& WithObjectType(ObjectType&& value) { SetObjectType(std::move(value)); return *this;}
102
104
110 inline const FacetStyle& GetFacetStyle() const{ return m_facetStyle; }
111 inline bool FacetStyleHasBeenSet() const { return m_facetStyleHasBeenSet; }
112 inline void SetFacetStyle(const FacetStyle& value) { m_facetStyleHasBeenSet = true; m_facetStyle = value; }
113 inline void SetFacetStyle(FacetStyle&& value) { m_facetStyleHasBeenSet = true; m_facetStyle = std::move(value); }
114 inline CreateFacetRequest& WithFacetStyle(const FacetStyle& value) { SetFacetStyle(value); return *this;}
115 inline CreateFacetRequest& WithFacetStyle(FacetStyle&& value) { SetFacetStyle(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_schemaArn;
120 bool m_schemaArnHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::Vector<FacetAttribute> m_attributes;
126 bool m_attributesHasBeenSet = false;
127
128 ObjectType m_objectType;
129 bool m_objectTypeHasBeenSet = false;
130
131 FacetStyle m_facetStyle;
132 bool m_facetStyleHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CloudDirectory
137} // namespace Aws
CreateFacetRequest & AddAttributes(FacetAttribute &&value)
CreateFacetRequest & WithAttributes(const Aws::Vector< FacetAttribute > &value)
CreateFacetRequest & WithAttributes(Aws::Vector< FacetAttribute > &&value)
void SetAttributes(const Aws::Vector< FacetAttribute > &value)
CreateFacetRequest & WithSchemaArn(const char *value)
void SetAttributes(Aws::Vector< FacetAttribute > &&value)
CreateFacetRequest & WithObjectType(ObjectType &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFacetRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateFacetRequest & WithFacetStyle(FacetStyle &&value)
CreateFacetRequest & WithName(const Aws::String &value)
CreateFacetRequest & WithName(const char *value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
CreateFacetRequest & WithObjectType(const ObjectType &value)
CreateFacetRequest & WithSchemaArn(const Aws::String &value)
const Aws::Vector< FacetAttribute > & GetAttributes() const
CreateFacetRequest & WithSchemaArn(Aws::String &&value)
CreateFacetRequest & WithFacetStyle(const FacetStyle &value)
CreateFacetRequest & AddAttributes(const FacetAttribute &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