AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateShardCountRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Kinesis
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 "UpdateShardCount"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetStreamName() const{ return m_streamName; }
42 
46  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
47 
51  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
52 
56  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
57 
61  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
62 
66  inline UpdateShardCountRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
67 
71  inline UpdateShardCountRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
72 
76  inline UpdateShardCountRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
77 
78 
89  inline int GetTargetShardCount() const{ return m_targetShardCount; }
90 
101  inline bool TargetShardCountHasBeenSet() const { return m_targetShardCountHasBeenSet; }
102 
113  inline void SetTargetShardCount(int value) { m_targetShardCountHasBeenSet = true; m_targetShardCount = value; }
114 
125  inline UpdateShardCountRequest& WithTargetShardCount(int value) { SetTargetShardCount(value); return *this;}
126 
127 
131  inline const ScalingType& GetScalingType() const{ return m_scalingType; }
132 
136  inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
137 
141  inline void SetScalingType(const ScalingType& value) { m_scalingTypeHasBeenSet = true; m_scalingType = value; }
142 
146  inline void SetScalingType(ScalingType&& value) { m_scalingTypeHasBeenSet = true; m_scalingType = std::move(value); }
147 
151  inline UpdateShardCountRequest& WithScalingType(const ScalingType& value) { SetScalingType(value); return *this;}
152 
156  inline UpdateShardCountRequest& WithScalingType(ScalingType&& value) { SetScalingType(std::move(value)); return *this;}
157 
158  private:
159 
160  Aws::String m_streamName;
161  bool m_streamNameHasBeenSet;
162 
163  int m_targetShardCount;
164  bool m_targetShardCountHasBeenSet;
165 
166  ScalingType m_scalingType;
167  bool m_scalingTypeHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace Kinesis
172 } // namespace Aws
Aws::Kinesis::Model::UpdateShardCountRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::UpdateShardCountRequest::WithStreamName
UpdateShardCountRequest & WithStreamName(const char *value)
Definition: UpdateShardCountRequest.h:76
Aws::Kinesis::Model::UpdateShardCountRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ScalingType.h
Aws::Kinesis::Model::UpdateShardCountRequest::WithStreamName
UpdateShardCountRequest & WithStreamName(const Aws::String &value)
Definition: UpdateShardCountRequest.h:66
Aws::Kinesis::Model::UpdateShardCountRequest::TargetShardCountHasBeenSet
bool TargetShardCountHasBeenSet() const
Definition: UpdateShardCountRequest.h:101
Aws::Kinesis::Model::ScalingType
ScalingType
Definition: ScalingType.h:17
Aws::Kinesis::Model::UpdateShardCountRequest::GetScalingType
const ScalingType & GetScalingType() const
Definition: UpdateShardCountRequest.h:131
Aws::Kinesis::Model::UpdateShardCountRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: UpdateShardCountRequest.h:41
Aws::Kinesis::Model::UpdateShardCountRequest::GetTargetShardCount
int GetTargetShardCount() const
Definition: UpdateShardCountRequest.h:89
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::UpdateShardCountRequest::WithTargetShardCount
UpdateShardCountRequest & WithTargetShardCount(int value)
Definition: UpdateShardCountRequest.h:125
Aws::Kinesis::Model::UpdateShardCountRequest::WithScalingType
UpdateShardCountRequest & WithScalingType(ScalingType &&value)
Definition: UpdateShardCountRequest.h:156
Aws::Kinesis::Model::UpdateShardCountRequest
Definition: UpdateShardCountRequest.h:23
KinesisRequest.h
Aws::Kinesis::Model::UpdateShardCountRequest::ScalingTypeHasBeenSet
bool ScalingTypeHasBeenSet() const
Definition: UpdateShardCountRequest.h:136
Aws::Kinesis::Model::UpdateShardCountRequest::SetScalingType
void SetScalingType(const ScalingType &value)
Definition: UpdateShardCountRequest.h:141
Aws::Kinesis::Model::UpdateShardCountRequest::SetScalingType
void SetScalingType(ScalingType &&value)
Definition: UpdateShardCountRequest.h:146
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::UpdateShardCountRequest::SetTargetShardCount
void SetTargetShardCount(int value)
Definition: UpdateShardCountRequest.h:113
Aws::Kinesis::Model::UpdateShardCountRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: UpdateShardCountRequest.h:51
Kinesis_EXPORTS.h
Aws::Kinesis::Model::UpdateShardCountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateShardCountRequest.h:31
Aws::Kinesis::Model::UpdateShardCountRequest::UpdateShardCountRequest
UpdateShardCountRequest()
Aws::Kinesis::Model::UpdateShardCountRequest::SetStreamName
void SetStreamName(const char *value)
Definition: UpdateShardCountRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::UpdateShardCountRequest::WithScalingType
UpdateShardCountRequest & WithScalingType(const ScalingType &value)
Definition: UpdateShardCountRequest.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::UpdateShardCountRequest::WithStreamName
UpdateShardCountRequest & WithStreamName(Aws::String &&value)
Definition: UpdateShardCountRequest.h:71
Aws::Kinesis::Model::UpdateShardCountRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: UpdateShardCountRequest.h:56
Aws::Kinesis::Model::UpdateShardCountRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: UpdateShardCountRequest.h:46