AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SelectRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sdb/SimpleDBRequest.h>
9#include <aws/sdb/SimpleDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SimpleDB {
15namespace Model {
16
20 public:
21 AWS_SIMPLEDB_API SelectRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "Select"; }
28
29 AWS_SIMPLEDB_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetSelectExpression() const { return m_selectExpression; }
40 inline bool SelectExpressionHasBeenSet() const { return m_selectExpressionHasBeenSet; }
41 template <typename SelectExpressionT = Aws::String>
42 void SetSelectExpression(SelectExpressionT&& value) {
43 m_selectExpressionHasBeenSet = true;
44 m_selectExpression = std::forward<SelectExpressionT>(value);
45 }
46 template <typename SelectExpressionT = Aws::String>
47 SelectRequest& WithSelectExpression(SelectExpressionT&& value) {
48 SetSelectExpression(std::forward<SelectExpressionT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 SelectRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
79 inline bool GetConsistentRead() const { return m_consistentRead; }
80 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
81 inline void SetConsistentRead(bool value) {
82 m_consistentReadHasBeenSet = true;
83 m_consistentRead = value;
84 }
85 inline SelectRequest& WithConsistentRead(bool value) {
86 SetConsistentRead(value);
87 return *this;
88 }
90 private:
91 Aws::String m_selectExpression;
92
93 Aws::String m_nextToken;
94
95 bool m_consistentRead{false};
96 bool m_selectExpressionHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_consistentReadHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SimpleDB
103} // namespace Aws
SelectRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
void SetNextToken(NextTokenT &&value)
SelectRequest & WithConsistentRead(bool value)
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetSelectExpression() const
const Aws::String & GetNextToken() const
SelectRequest & WithSelectExpression(SelectExpressionT &&value)
void SetSelectExpression(SelectExpressionT &&value)
AWS_SIMPLEDB_API SelectRequest()=default
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String