AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
49 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
50 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
51 inline GetObjectAttributesRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
52 inline GetObjectAttributesRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
53 inline GetObjectAttributesRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
55
57
60 inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
61 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
62 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
63 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
65 inline GetObjectAttributesRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
67
69
72 inline const ConsistencyLevel& GetConsistencyLevel() const{ return m_consistencyLevel; }
73 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
74 inline void SetConsistencyLevel(const ConsistencyLevel& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
75 inline void SetConsistencyLevel(ConsistencyLevel&& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = std::move(value); }
77 inline GetObjectAttributesRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;}
79
81
85 inline const SchemaFacet& GetSchemaFacet() const{ return m_schemaFacet; }
86 inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; }
87 inline void SetSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; }
88 inline void SetSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); }
89 inline GetObjectAttributesRequest& WithSchemaFacet(const SchemaFacet& value) { SetSchemaFacet(value); return *this;}
90 inline GetObjectAttributesRequest& WithSchemaFacet(SchemaFacet&& value) { SetSchemaFacet(std::move(value)); return *this;}
92
94
97 inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; }
98 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
99 inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
100 inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
103 inline GetObjectAttributesRequest& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
104 inline GetObjectAttributesRequest& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
105 inline GetObjectAttributesRequest& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
107 private:
108
109 Aws::String m_directoryArn;
110 bool m_directoryArnHasBeenSet = false;
111
112 ObjectReference m_objectReference;
113 bool m_objectReferenceHasBeenSet = false;
114
115 ConsistencyLevel m_consistencyLevel;
116 bool m_consistencyLevelHasBeenSet = false;
117
118 SchemaFacet m_schemaFacet;
119 bool m_schemaFacetHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_attributeNames;
122 bool m_attributeNamesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CloudDirectory
127} // namespace Aws
GetObjectAttributesRequest & WithDirectoryArn(Aws::String &&value)
GetObjectAttributesRequest & WithSchemaFacet(SchemaFacet &&value)
GetObjectAttributesRequest & WithObjectReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetAttributeNames() const
GetObjectAttributesRequest & WithAttributeNames(Aws::Vector< Aws::String > &&value)
GetObjectAttributesRequest & WithDirectoryArn(const Aws::String &value)
void SetAttributeNames(const Aws::Vector< Aws::String > &value)
GetObjectAttributesRequest & AddAttributeNames(const char *value)
GetObjectAttributesRequest & WithSchemaFacet(const SchemaFacet &value)
GetObjectAttributesRequest & AddAttributeNames(Aws::String &&value)
GetObjectAttributesRequest & WithConsistencyLevel(const ConsistencyLevel &value)
GetObjectAttributesRequest & AddAttributeNames(const Aws::String &value)
GetObjectAttributesRequest & WithObjectReference(const ObjectReference &value)
GetObjectAttributesRequest & WithAttributeNames(const Aws::Vector< Aws::String > &value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
GetObjectAttributesRequest & WithDirectoryArn(const char *value)
GetObjectAttributesRequest & WithConsistencyLevel(ConsistencyLevel &&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