AWS SDK for C++  1.9.104
AWS SDK for C++
DisableEnhancedMonitoringRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Kinesis
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DisableEnhancedMonitoring"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetStreamName() const{ return m_streamName; }
48 
53  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
54 
59  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
60 
65  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
66 
71  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
72 
77  inline DisableEnhancedMonitoringRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
78 
83  inline DisableEnhancedMonitoringRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
84 
89  inline DisableEnhancedMonitoringRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
90 
91 
106  inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const{ return m_shardLevelMetrics; }
107 
122  inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; }
123 
138  inline void SetShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
139 
154  inline void SetShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = std::move(value); }
155 
170  inline DisableEnhancedMonitoringRequest& WithShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetShardLevelMetrics(value); return *this;}
171 
186  inline DisableEnhancedMonitoringRequest& WithShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetShardLevelMetrics(std::move(value)); return *this;}
187 
202  inline DisableEnhancedMonitoringRequest& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
203 
218  inline DisableEnhancedMonitoringRequest& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  Aws::String m_streamName;
223  bool m_streamNameHasBeenSet;
224 
225  Aws::Vector<MetricsName> m_shardLevelMetrics;
226  bool m_shardLevelMetricsHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace Kinesis
231 } // namespace Aws
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::WithStreamName
DisableEnhancedMonitoringRequest & WithStreamName(Aws::String &&value)
Definition: DisableEnhancedMonitoringRequest.h:83
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: DisableEnhancedMonitoringRequest.h:53
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::ShardLevelMetricsHasBeenSet
bool ShardLevelMetricsHasBeenSet() const
Definition: DisableEnhancedMonitoringRequest.h:122
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::GetShardLevelMetrics
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
Definition: DisableEnhancedMonitoringRequest.h:106
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(const char *value)
Definition: DisableEnhancedMonitoringRequest.h:71
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest
Definition: DisableEnhancedMonitoringRequest.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::WithStreamName
DisableEnhancedMonitoringRequest & WithStreamName(const Aws::String &value)
Definition: DisableEnhancedMonitoringRequest.h:77
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::AddShardLevelMetrics
DisableEnhancedMonitoringRequest & AddShardLevelMetrics(MetricsName &&value)
Definition: DisableEnhancedMonitoringRequest.h:218
AWSVector.h
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::WithShardLevelMetrics
DisableEnhancedMonitoringRequest & WithShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: DisableEnhancedMonitoringRequest.h:170
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SetShardLevelMetrics
void SetShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: DisableEnhancedMonitoringRequest.h:138
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SetShardLevelMetrics
void SetShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: DisableEnhancedMonitoringRequest.h:154
KinesisRequest.h
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisableEnhancedMonitoringRequest.h:36
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Kinesis_EXPORTS.h
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::AddShardLevelMetrics
DisableEnhancedMonitoringRequest & AddShardLevelMetrics(const MetricsName &value)
Definition: DisableEnhancedMonitoringRequest.h:202
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: DisableEnhancedMonitoringRequest.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::DisableEnhancedMonitoringRequest
DisableEnhancedMonitoringRequest()
MetricsName.h
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::WithStreamName
DisableEnhancedMonitoringRequest & WithStreamName(const char *value)
Definition: DisableEnhancedMonitoringRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::WithShardLevelMetrics
DisableEnhancedMonitoringRequest & WithShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: DisableEnhancedMonitoringRequest.h:186
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: DisableEnhancedMonitoringRequest.h:47
Aws::Kinesis::Model::MetricsName
MetricsName
Definition: MetricsName.h:17
Aws::Kinesis::Model::DisableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: DisableEnhancedMonitoringRequest.h:59