AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
GetObjectAttributesRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/ConsistencyLevel.h>
10#include <aws/clouddirectory/model/ObjectReference.h>
11#include <aws/clouddirectory/model/SchemaFacet.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 GetObjectAttributesRequest() = 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 "GetObjectAttributes"; }
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& GetDirectoryArn() const { return m_directoryArn; }
43 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
44 template <typename DirectoryArnT = Aws::String>
45 void SetDirectoryArn(DirectoryArnT&& value) {
46 m_directoryArnHasBeenSet = true;
47 m_directoryArn = std::forward<DirectoryArnT>(value);
48 }
49 template <typename DirectoryArnT = Aws::String>
51 SetDirectoryArn(std::forward<DirectoryArnT>(value));
52 return *this;
53 }
55
57
60 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
61 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
62 template <typename ObjectReferenceT = ObjectReference>
63 void SetObjectReference(ObjectReferenceT&& value) {
64 m_objectReferenceHasBeenSet = true;
65 m_objectReference = std::forward<ObjectReferenceT>(value);
66 }
67 template <typename ObjectReferenceT = ObjectReference>
69 SetObjectReference(std::forward<ObjectReferenceT>(value));
70 return *this;
71 }
73
75
78 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
79 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
81 m_consistencyLevelHasBeenSet = true;
82 m_consistencyLevel = value;
83 }
89
91
95 inline const SchemaFacet& GetSchemaFacet() const { return m_schemaFacet; }
96 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
97 template <typename SchemaFacetT = SchemaFacet>
98 void SetSchemaFacet(SchemaFacetT&& value) {
99 m_schemaFacetHasBeenSet = true;
100 m_schemaFacet = std::forward<SchemaFacetT>(value);
101 }
102 template <typename SchemaFacetT = SchemaFacet>
104 SetSchemaFacet(std::forward<SchemaFacetT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
114 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
115 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
116 void SetAttributeNames(AttributeNamesT&& value) {
117 m_attributeNamesHasBeenSet = true;
118 m_attributeNames = std::forward<AttributeNamesT>(value);
119 }
120 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
122 SetAttributeNames(std::forward<AttributeNamesT>(value));
123 return *this;
124 }
125 template <typename AttributeNamesT = Aws::String>
127 m_attributeNamesHasBeenSet = true;
128 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_directoryArn;
134
135 ObjectReference m_objectReference;
136
138
139 SchemaFacet m_schemaFacet;
140
141 Aws::Vector<Aws::String> m_attributeNames;
142 bool m_directoryArnHasBeenSet = false;
143 bool m_objectReferenceHasBeenSet = false;
144 bool m_consistencyLevelHasBeenSet = false;
145 bool m_schemaFacetHasBeenSet = false;
146 bool m_attributeNamesHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace CloudDirectory
151} // namespace Aws
AWS_CLOUDDIRECTORY_API GetObjectAttributesRequest()=default
GetObjectAttributesRequest & AddAttributeNames(AttributeNamesT &&value)
GetObjectAttributesRequest & WithAttributeNames(AttributeNamesT &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetAttributeNames() const
GetObjectAttributesRequest & WithConsistencyLevel(ConsistencyLevel value)
GetObjectAttributesRequest & WithDirectoryArn(DirectoryArnT &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
GetObjectAttributesRequest & WithObjectReference(ObjectReferenceT &&value)
GetObjectAttributesRequest & WithSchemaFacet(SchemaFacetT &&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