AWS SDK for C++  1.9.107
AWS SDK for C++
GetAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SimpleDB
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "GetAttributes"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetDomainName() const{ return m_domainName; }
44 
48  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
49 
53  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
54 
58  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
59 
63  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
64 
68  inline GetAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
69 
73  inline GetAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
74 
78  inline GetAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
79 
80 
84  inline const Aws::String& GetItemName() const{ return m_itemName; }
85 
89  inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
90 
94  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
95 
99  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = std::move(value); }
100 
104  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
105 
109  inline GetAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
110 
114  inline GetAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(std::move(value)); return *this;}
115 
119  inline GetAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
120 
121 
125  inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; }
126 
130  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
131 
135  inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
136 
140  inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
141 
145  inline GetAttributesRequest& WithAttributeNames(const Aws::Vector<Aws::String>& value) { SetAttributeNames(value); return *this;}
146 
150  inline GetAttributesRequest& WithAttributeNames(Aws::Vector<Aws::String>&& value) { SetAttributeNames(std::move(value)); return *this;}
151 
155  inline GetAttributesRequest& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
156 
160  inline GetAttributesRequest& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
161 
165  inline GetAttributesRequest& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
166 
167 
174  inline bool GetConsistentRead() const{ return m_consistentRead; }
175 
182  inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
183 
190  inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
191 
198  inline GetAttributesRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
199 
200  private:
201 
202  Aws::String m_domainName;
203  bool m_domainNameHasBeenSet;
204 
205  Aws::String m_itemName;
206  bool m_itemNameHasBeenSet;
207 
208  Aws::Vector<Aws::String> m_attributeNames;
209  bool m_attributeNamesHasBeenSet;
210 
211  bool m_consistentRead;
212  bool m_consistentReadHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace SimpleDB
217 } // namespace Aws
Aws::SimpleDB::Model::GetAttributesRequest::GetConsistentRead
bool GetConsistentRead() const
Definition: GetAttributesRequest.h:174
Aws::SimpleDB::Model::GetAttributesRequest::GetAttributesRequest
GetAttributesRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::SimpleDB::Model::GetAttributesRequest::ConsistentReadHasBeenSet
bool ConsistentReadHasBeenSet() const
Definition: GetAttributesRequest.h:182
Aws::SimpleDB::Model::GetAttributesRequest::SetItemName
void SetItemName(const char *value)
Definition: GetAttributesRequest.h:104
Aws::SimpleDB::Model::GetAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SimpleDB::Model::GetAttributesRequest::SetConsistentRead
void SetConsistentRead(bool value)
Definition: GetAttributesRequest.h:190
Aws::SimpleDB::Model::GetAttributesRequest::GetAttributeNames
const Aws::Vector< Aws::String > & GetAttributeNames() const
Definition: GetAttributesRequest.h:125
SimpleDBRequest.h
Aws::SimpleDB::Model::GetAttributesRequest::ItemNameHasBeenSet
bool ItemNameHasBeenSet() const
Definition: GetAttributesRequest.h:89
Aws::SimpleDB::Model::GetAttributesRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: GetAttributesRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SimpleDB::Model::GetAttributesRequest::SetDomainName
void SetDomainName(const char *value)
Definition: GetAttributesRequest.h:63
AWSVector.h
Aws::SimpleDB::Model::GetAttributesRequest::WithDomainName
GetAttributesRequest & WithDomainName(Aws::String &&value)
Definition: GetAttributesRequest.h:73
Aws::SimpleDB::Model::GetAttributesRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: GetAttributesRequest.h:53
Aws::SimpleDB::Model::GetAttributesRequest::AddAttributeNames
GetAttributesRequest & AddAttributeNames(const Aws::String &value)
Definition: GetAttributesRequest.h:155
Aws::SimpleDB::Model::GetAttributesRequest::WithAttributeNames
GetAttributesRequest & WithAttributeNames(const Aws::Vector< Aws::String > &value)
Definition: GetAttributesRequest.h:145
Aws::SimpleDB::Model::GetAttributesRequest::WithDomainName
GetAttributesRequest & WithDomainName(const Aws::String &value)
Definition: GetAttributesRequest.h:68
Aws::SimpleDB::Model::GetAttributesRequest
Definition: GetAttributesRequest.h:23
Aws::SimpleDB::Model::GetAttributesRequest::SetAttributeNames
void SetAttributeNames(const Aws::Vector< Aws::String > &value)
Definition: GetAttributesRequest.h:135
AWSString.h
Aws::SimpleDB::Model::GetAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAttributesRequest.h:31
Aws::SimpleDB::Model::GetAttributesRequest::WithItemName
GetAttributesRequest & WithItemName(const char *value)
Definition: GetAttributesRequest.h:119
Aws::SimpleDB::Model::GetAttributesRequest::SetItemName
void SetItemName(const Aws::String &value)
Definition: GetAttributesRequest.h:94
Aws::SimpleDB::Model::GetAttributesRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: GetAttributesRequest.h:48
Aws::SimpleDB::Model::GetAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SimpleDB::Model::GetAttributesRequest::WithAttributeNames
GetAttributesRequest & WithAttributeNames(Aws::Vector< Aws::String > &&value)
Definition: GetAttributesRequest.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::GetAttributesRequest::WithDomainName
GetAttributesRequest & WithDomainName(const char *value)
Definition: GetAttributesRequest.h:78
Aws::SimpleDB::Model::GetAttributesRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: GetAttributesRequest.h:43
Aws::SimpleDB::Model::GetAttributesRequest::AddAttributeNames
GetAttributesRequest & AddAttributeNames(const char *value)
Definition: GetAttributesRequest.h:165
Aws::SimpleDB::Model::GetAttributesRequest::AddAttributeNames
GetAttributesRequest & AddAttributeNames(Aws::String &&value)
Definition: GetAttributesRequest.h:160
Aws::SimpleDB::Model::GetAttributesRequest::WithItemName
GetAttributesRequest & WithItemName(Aws::String &&value)
Definition: GetAttributesRequest.h:114
Aws::SimpleDB::Model::GetAttributesRequest::AttributeNamesHasBeenSet
bool AttributeNamesHasBeenSet() const
Definition: GetAttributesRequest.h:130
AWS_SIMPLEDB_API
#define AWS_SIMPLEDB_API
Definition: SimpleDB_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimpleDB_EXPORTS.h
Aws::SimpleDB::Model::GetAttributesRequest::GetItemName
const Aws::String & GetItemName() const
Definition: GetAttributesRequest.h:84
Aws::SimpleDB::Model::GetAttributesRequest::WithConsistentRead
GetAttributesRequest & WithConsistentRead(bool value)
Definition: GetAttributesRequest.h:198
Aws::SimpleDB::Model::GetAttributesRequest::WithItemName
GetAttributesRequest & WithItemName(const Aws::String &value)
Definition: GetAttributesRequest.h:109
Aws::SimpleDB::SimpleDBRequest
Definition: SimpleDBRequest.h:17
Aws::SimpleDB::Model::GetAttributesRequest::SetAttributeNames
void SetAttributeNames(Aws::Vector< Aws::String > &&value)
Definition: GetAttributesRequest.h:140
Aws::SimpleDB::Model::GetAttributesRequest::SetItemName
void SetItemName(Aws::String &&value)
Definition: GetAttributesRequest.h:99