AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeStreamRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DynamoDBStreams
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeStream"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetStreamArn() const{ return m_streamArn; }
45 
49  inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
50 
54  inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; }
55 
59  inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); }
60 
64  inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); }
65 
69  inline DescribeStreamRequest& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;}
70 
74  inline DescribeStreamRequest& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;}
75 
79  inline DescribeStreamRequest& WithStreamArn(const char* value) { SetStreamArn(value); return *this;}
80 
81 
85  inline int GetLimit() const{ return m_limit; }
86 
90  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
91 
95  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
96 
100  inline DescribeStreamRequest& WithLimit(int value) { SetLimit(value); return *this;}
101 
102 
108  inline const Aws::String& GetExclusiveStartShardId() const{ return m_exclusiveStartShardId; }
109 
115  inline bool ExclusiveStartShardIdHasBeenSet() const { return m_exclusiveStartShardIdHasBeenSet; }
116 
122  inline void SetExclusiveStartShardId(const Aws::String& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = value; }
123 
129  inline void SetExclusiveStartShardId(Aws::String&& value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId = std::move(value); }
130 
136  inline void SetExclusiveStartShardId(const char* value) { m_exclusiveStartShardIdHasBeenSet = true; m_exclusiveStartShardId.assign(value); }
137 
143  inline DescribeStreamRequest& WithExclusiveStartShardId(const Aws::String& value) { SetExclusiveStartShardId(value); return *this;}
144 
150  inline DescribeStreamRequest& WithExclusiveStartShardId(Aws::String&& value) { SetExclusiveStartShardId(std::move(value)); return *this;}
151 
157  inline DescribeStreamRequest& WithExclusiveStartShardId(const char* value) { SetExclusiveStartShardId(value); return *this;}
158 
159  private:
160 
161  Aws::String m_streamArn;
162  bool m_streamArnHasBeenSet;
163 
164  int m_limit;
165  bool m_limitHasBeenSet;
166 
167  Aws::String m_exclusiveStartShardId;
168  bool m_exclusiveStartShardIdHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace DynamoDBStreams
173 } // namespace Aws
DescribeStreamRequest & WithExclusiveStartShardId(Aws::String &&value)
DescribeStreamRequest & WithExclusiveStartShardId(const char *value)
virtual const char * GetServiceRequestName() const override
DescribeStreamRequest & WithStreamArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeStreamRequest & WithStreamArn(Aws::String &&value)
#define AWS_DYNAMODBSTREAMS_API
DescribeStreamRequest & WithStreamArn(const char *value)
DescribeStreamRequest & WithExclusiveStartShardId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97