AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SchemaArnT = Aws::String>
48 void SetSchemaArn(SchemaArnT&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::forward<SchemaArnT>(value); }
49 template<typename SchemaArnT = Aws::String>
50 UpdateFacetRequest& WithSchemaArn(SchemaArnT&& value) { SetSchemaArn(std::forward<SchemaArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 UpdateFacetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
71 inline const Aws::Vector<FacetAttributeUpdate>& GetAttributeUpdates() const { return m_attributeUpdates; }
72 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
73 template<typename AttributeUpdatesT = Aws::Vector<FacetAttributeUpdate>>
74 void SetAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::forward<AttributeUpdatesT>(value); }
75 template<typename AttributeUpdatesT = Aws::Vector<FacetAttributeUpdate>>
76 UpdateFacetRequest& WithAttributeUpdates(AttributeUpdatesT&& value) { SetAttributeUpdates(std::forward<AttributeUpdatesT>(value)); return *this;}
77 template<typename AttributeUpdatesT = FacetAttributeUpdate>
78 UpdateFacetRequest& AddAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.emplace_back(std::forward<AttributeUpdatesT>(value)); return *this; }
80
82
86 inline ObjectType GetObjectType() const { return m_objectType; }
87 inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; }
88 inline void SetObjectType(ObjectType value) { m_objectTypeHasBeenSet = true; m_objectType = value; }
89 inline UpdateFacetRequest& WithObjectType(ObjectType value) { SetObjectType(value); return *this;}
91 private:
92
93 Aws::String m_schemaArn;
94 bool m_schemaArnHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::Vector<FacetAttributeUpdate> m_attributeUpdates;
100 bool m_attributeUpdatesHasBeenSet = false;
101
102 ObjectType m_objectType{ObjectType::NOT_SET};
103 bool m_objectTypeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CloudDirectory
108} // 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