AWS SDK for C++  1.9.104
AWS SDK for C++
SelectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SimpleDB
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "Select"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetSelectExpression() const{ return m_selectExpression; }
43 
47  inline bool SelectExpressionHasBeenSet() const { return m_selectExpressionHasBeenSet; }
48 
52  inline void SetSelectExpression(const Aws::String& value) { m_selectExpressionHasBeenSet = true; m_selectExpression = value; }
53 
57  inline void SetSelectExpression(Aws::String&& value) { m_selectExpressionHasBeenSet = true; m_selectExpression = std::move(value); }
58 
62  inline void SetSelectExpression(const char* value) { m_selectExpressionHasBeenSet = true; m_selectExpression.assign(value); }
63 
67  inline SelectRequest& WithSelectExpression(const Aws::String& value) { SetSelectExpression(value); return *this;}
68 
72  inline SelectRequest& WithSelectExpression(Aws::String&& value) { SetSelectExpression(std::move(value)); return *this;}
73 
77  inline SelectRequest& WithSelectExpression(const char* value) { SetSelectExpression(value); return *this;}
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 
96  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 
102  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
103 
108  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
109 
114  inline SelectRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 
120  inline SelectRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
126  inline SelectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128 
135  inline bool GetConsistentRead() const{ return m_consistentRead; }
136 
143  inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
144 
151  inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
152 
159  inline SelectRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
160 
161  private:
162 
163  Aws::String m_selectExpression;
164  bool m_selectExpressionHasBeenSet;
165 
166  Aws::String m_nextToken;
167  bool m_nextTokenHasBeenSet;
168 
169  bool m_consistentRead;
170  bool m_consistentReadHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace SimpleDB
175 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SimpleDB::Model::SelectRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SelectRequest.h:108
Aws::SimpleDB::Model::SelectRequest::SetSelectExpression
void SetSelectExpression(const char *value)
Definition: SelectRequest.h:62
Aws::SimpleDB::Model::SelectRequest::WithSelectExpression
SelectRequest & WithSelectExpression(Aws::String &&value)
Definition: SelectRequest.h:72
SimpleDBRequest.h
Aws::SimpleDB::Model::SelectRequest::ConsistentReadHasBeenSet
bool ConsistentReadHasBeenSet() const
Definition: SelectRequest.h:143
Aws::SimpleDB::Model::SelectRequest::GetConsistentRead
bool GetConsistentRead() const
Definition: SelectRequest.h:135
Aws::SimpleDB::Model::SelectRequest::WithConsistentRead
SelectRequest & WithConsistentRead(bool value)
Definition: SelectRequest.h:159
Aws::SimpleDB::Model::SelectRequest::WithNextToken
SelectRequest & WithNextToken(const char *value)
Definition: SelectRequest.h:126
Aws::SimpleDB::Model::SelectRequest::WithNextToken
SelectRequest & WithNextToken(const Aws::String &value)
Definition: SelectRequest.h:114
Aws::SimpleDB::Model::SelectRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SelectRequest.h:84
Aws::SimpleDB::Model::SelectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SimpleDB::Model::SelectRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SelectRequest.h:96
Aws::SimpleDB::Model::SelectRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SimpleDB::Model::SelectRequest::SetConsistentRead
void SetConsistentRead(bool value)
Definition: SelectRequest.h:151
Aws::SimpleDB::Model::SelectRequest::SetSelectExpression
void SetSelectExpression(const Aws::String &value)
Definition: SelectRequest.h:52
Aws::SimpleDB::Model::SelectRequest::GetSelectExpression
const Aws::String & GetSelectExpression() const
Definition: SelectRequest.h:42
AWSString.h
Aws::SimpleDB::Model::SelectRequest::SelectRequest
SelectRequest()
Aws::SimpleDB::Model::SelectRequest::WithSelectExpression
SelectRequest & WithSelectExpression(const Aws::String &value)
Definition: SelectRequest.h:67
Aws::SimpleDB::Model::SelectRequest
Definition: SelectRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::SelectRequest::WithNextToken
SelectRequest & WithNextToken(Aws::String &&value)
Definition: SelectRequest.h:120
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::SelectRequest::SetSelectExpression
void SetSelectExpression(Aws::String &&value)
Definition: SelectRequest.h:57
Aws::SimpleDB::Model::SelectRequest::WithSelectExpression
SelectRequest & WithSelectExpression(const char *value)
Definition: SelectRequest.h:77
Aws::SimpleDB::Model::SelectRequest::SelectExpressionHasBeenSet
bool SelectExpressionHasBeenSet() const
Definition: SelectRequest.h:47
Aws::SimpleDB::SimpleDBRequest
Definition: SimpleDBRequest.h:17
Aws::SimpleDB::Model::SelectRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SelectRequest.h:102
Aws::SimpleDB::Model::SelectRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SelectRequest.h:90
Aws::SimpleDB::Model::SelectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SelectRequest.h:30