AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFacetRequest.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/FacetAttributeUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudDirectory
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDDIRECTORY_API UpdateFacetRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFacet"; }
34
35 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; }
46 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
47 inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; }
48 inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); }
49 inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); }
50 inline UpdateFacetRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;}
51 inline UpdateFacetRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;}
52 inline UpdateFacetRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateFacetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateFacetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateFacetRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
75 inline const Aws::Vector<FacetAttributeUpdate>& GetAttributeUpdates() const{ return m_attributeUpdates; }
76 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
77 inline void SetAttributeUpdates(const Aws::Vector<FacetAttributeUpdate>& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; }
78 inline void SetAttributeUpdates(Aws::Vector<FacetAttributeUpdate>&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); }
81 inline UpdateFacetRequest& AddAttributeUpdates(const FacetAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; }
82 inline UpdateFacetRequest& AddAttributeUpdates(FacetAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; }
84
86
90 inline const ObjectType& GetObjectType() const{ return m_objectType; }
91 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
92 inline void SetObjectType(const ObjectType& value) { m_objectTypeHasBeenSet = true; m_objectType = value; }
93 inline void SetObjectType(ObjectType&& value) { m_objectTypeHasBeenSet = true; m_objectType = std::move(value); }
94 inline UpdateFacetRequest& WithObjectType(const ObjectType& value) { SetObjectType(value); return *this;}
95 inline UpdateFacetRequest& WithObjectType(ObjectType&& value) { SetObjectType(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_schemaArn;
100 bool m_schemaArnHasBeenSet = false;
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::Vector<FacetAttributeUpdate> m_attributeUpdates;
106 bool m_attributeUpdatesHasBeenSet = false;
107
108 ObjectType m_objectType;
109 bool m_objectTypeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CloudDirectory
114} // namespace Aws
UpdateFacetRequest & WithAttributeUpdates(Aws::Vector< FacetAttributeUpdate > &&value)
UpdateFacetRequest & WithName(Aws::String &&value)
UpdateFacetRequest & WithName(const Aws::String &value)
UpdateFacetRequest & WithAttributeUpdates(const Aws::Vector< FacetAttributeUpdate > &value)
virtual const char * GetServiceRequestName() const override
UpdateFacetRequest & WithSchemaArn(const Aws::String &value)
UpdateFacetRequest & AddAttributeUpdates(const FacetAttributeUpdate &value)
UpdateFacetRequest & WithObjectType(const ObjectType &value)
UpdateFacetRequest & WithSchemaArn(Aws::String &&value)
UpdateFacetRequest & WithSchemaArn(const char *value)
UpdateFacetRequest & AddAttributeUpdates(FacetAttributeUpdate &&value)
void SetAttributeUpdates(const Aws::Vector< FacetAttributeUpdate > &value)
UpdateFacetRequest & WithObjectType(ObjectType &&value)
const Aws::Vector< FacetAttributeUpdate > & GetAttributeUpdates() const
UpdateFacetRequest & WithName(const char *value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAttributeUpdates(Aws::Vector< FacetAttributeUpdate > &&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