AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetObjectAttributesRequest.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/clouddirectory/model/ObjectReference.h>
11#include <aws/clouddirectory/model/ConsistencyLevel.h>
12#include <aws/clouddirectory/model/SchemaFacet.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudDirectory
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDDIRECTORY_API GetObjectAttributesRequest() = 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 "GetObjectAttributes"; }
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& GetDirectoryArn() const { return m_directoryArn; }
47 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
48 template<typename DirectoryArnT = Aws::String>
49 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
50 template<typename DirectoryArnT = Aws::String>
51 GetObjectAttributesRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
53
55
58 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
59 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
60 template<typename ObjectReferenceT = ObjectReference>
61 void SetObjectReference(ObjectReferenceT&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::forward<ObjectReferenceT>(value); }
62 template<typename ObjectReferenceT = ObjectReference>
63 GetObjectAttributesRequest& WithObjectReference(ObjectReferenceT&& value) { SetObjectReference(std::forward<ObjectReferenceT>(value)); return *this;}
65
67
70 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
71 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
72 inline void SetConsistencyLevel(ConsistencyLevel value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
75
77
81 inline const SchemaFacet& GetSchemaFacet() const { return m_schemaFacet; }
82 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
83 template<typename SchemaFacetT = SchemaFacet>
84 void SetSchemaFacet(SchemaFacetT&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::forward<SchemaFacetT>(value); }
85 template<typename SchemaFacetT = SchemaFacet>
86 GetObjectAttributesRequest& WithSchemaFacet(SchemaFacetT&& value) { SetSchemaFacet(std::forward<SchemaFacetT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
94 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
95 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
96 void SetAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::forward<AttributeNamesT>(value); }
97 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
98 GetObjectAttributesRequest& WithAttributeNames(AttributeNamesT&& value) { SetAttributeNames(std::forward<AttributeNamesT>(value)); return *this;}
99 template<typename AttributeNamesT = Aws::String>
100 GetObjectAttributesRequest& AddAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value)); return *this; }
102 private:
103
104 Aws::String m_directoryArn;
105 bool m_directoryArnHasBeenSet = false;
106
107 ObjectReference m_objectReference;
108 bool m_objectReferenceHasBeenSet = false;
109
111 bool m_consistencyLevelHasBeenSet = false;
112
113 SchemaFacet m_schemaFacet;
114 bool m_schemaFacetHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_attributeNames;
117 bool m_attributeNamesHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CloudDirectory
122} // 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