AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sdb/SimpleDBRequest.h>
10#include <aws/sdb/SimpleDB_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SimpleDB {
16namespace Model {
17
21 public:
22 AWS_SIMPLEDB_API GetAttributesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetAttributes"; }
29
30 AWS_SIMPLEDB_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template <typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) {
44 m_domainNameHasBeenSet = true;
45 m_domainName = std::forward<DomainNameT>(value);
46 }
47 template <typename DomainNameT = Aws::String>
48 GetAttributesRequest& WithDomainName(DomainNameT&& value) {
49 SetDomainName(std::forward<DomainNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetItemName() const { return m_itemName; }
59 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
60 template <typename ItemNameT = Aws::String>
61 void SetItemName(ItemNameT&& value) {
62 m_itemNameHasBeenSet = true;
63 m_itemName = std::forward<ItemNameT>(value);
64 }
65 template <typename ItemNameT = Aws::String>
66 GetAttributesRequest& WithItemName(ItemNameT&& value) {
67 SetItemName(std::forward<ItemNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
77 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
78 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
79 void SetAttributeNames(AttributeNamesT&& value) {
80 m_attributeNamesHasBeenSet = true;
81 m_attributeNames = std::forward<AttributeNamesT>(value);
82 }
83 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
84 GetAttributesRequest& WithAttributeNames(AttributeNamesT&& value) {
85 SetAttributeNames(std::forward<AttributeNamesT>(value));
86 return *this;
87 }
88 template <typename AttributeNamesT = Aws::String>
89 GetAttributesRequest& AddAttributeNames(AttributeNamesT&& value) {
90 m_attributeNamesHasBeenSet = true;
91 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
92 return *this;
93 }
95
97
103 inline bool GetConsistentRead() const { return m_consistentRead; }
104 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
105 inline void SetConsistentRead(bool value) {
106 m_consistentReadHasBeenSet = true;
107 m_consistentRead = value;
108 }
110 SetConsistentRead(value);
111 return *this;
112 }
114 private:
115 Aws::String m_domainName;
116
117 Aws::String m_itemName;
118
119 Aws::Vector<Aws::String> m_attributeNames;
120
121 bool m_consistentRead{false};
122 bool m_domainNameHasBeenSet = false;
123 bool m_itemNameHasBeenSet = false;
124 bool m_attributeNamesHasBeenSet = false;
125 bool m_consistentReadHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SimpleDB
130} // namespace Aws
GetAttributesRequest & WithAttributeNames(AttributeNamesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAttributeNames() const
GetAttributesRequest & WithConsistentRead(bool value)
GetAttributesRequest & AddAttributeNames(AttributeNamesT &&value)
AWS_SIMPLEDB_API GetAttributesRequest()=default
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAttributeNames(AttributeNamesT &&value)
GetAttributesRequest & WithDomainName(DomainNameT &&value)
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
GetAttributesRequest & WithItemName(ItemNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector