AWS SDK for C++  1.8.71
AWS SDK for C++
GetRecordsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kinesis
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetRecords"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
45  inline const Aws::String& GetShardIterator() const{ return m_shardIterator; }
46 
52  inline bool ShardIteratorHasBeenSet() const { return m_shardIteratorHasBeenSet; }
53 
59  inline void SetShardIterator(const Aws::String& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = value; }
60 
66  inline void SetShardIterator(Aws::String&& value) { m_shardIteratorHasBeenSet = true; m_shardIterator = std::move(value); }
67 
73  inline void SetShardIterator(const char* value) { m_shardIteratorHasBeenSet = true; m_shardIterator.assign(value); }
74 
80  inline GetRecordsRequest& WithShardIterator(const Aws::String& value) { SetShardIterator(value); return *this;}
81 
87  inline GetRecordsRequest& WithShardIterator(Aws::String&& value) { SetShardIterator(std::move(value)); return *this;}
88 
94  inline GetRecordsRequest& WithShardIterator(const char* value) { SetShardIterator(value); return *this;}
95 
96 
102  inline int GetLimit() const{ return m_limit; }
103 
109  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
110 
116  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
117 
123  inline GetRecordsRequest& WithLimit(int value) { SetLimit(value); return *this;}
124 
125  private:
126 
127  Aws::String m_shardIterator;
128  bool m_shardIteratorHasBeenSet;
129 
130  int m_limit;
131  bool m_limitHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace Kinesis
136 } // namespace Aws
GetRecordsRequest & WithShardIterator(const char *value)
GetRecordsRequest & WithLimit(int value)
void SetShardIterator(const char *value)
void SetShardIterator(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetShardIterator(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetRecordsRequest & WithShardIterator(Aws::String &&value)
const Aws::String & GetShardIterator() const
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetRecordsRequest & WithShardIterator(const Aws::String &value)