AWS SDK for C++  1.9.104
AWS SDK for C++
EnableEnhancedMonitoringRequest.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 "EnableEnhancedMonitoring"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetStreamName() const{ return m_streamName; }
47 
51  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
52 
56  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
57 
61  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
62 
66  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
67 
71  inline EnableEnhancedMonitoringRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
72 
76  inline EnableEnhancedMonitoringRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
77 
81  inline EnableEnhancedMonitoringRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
82 
83 
98  inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const{ return m_shardLevelMetrics; }
99 
114  inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; }
115 
130  inline void SetShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
131 
146  inline void SetShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = std::move(value); }
147 
162  inline EnableEnhancedMonitoringRequest& WithShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetShardLevelMetrics(value); return *this;}
163 
178  inline EnableEnhancedMonitoringRequest& WithShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetShardLevelMetrics(std::move(value)); return *this;}
179 
194  inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
195 
210  inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(std::move(value)); return *this; }
211 
212  private:
213 
214  Aws::String m_streamName;
215  bool m_streamNameHasBeenSet;
216 
217  Aws::Vector<MetricsName> m_shardLevelMetrics;
218  bool m_shardLevelMetricsHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace Kinesis
223 } // namespace Aws
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::EnableEnhancedMonitoringRequest
EnableEnhancedMonitoringRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SetShardLevelMetrics
void SetShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringRequest.h:146
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest
Definition: EnableEnhancedMonitoringRequest.h:28
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::WithStreamName
EnableEnhancedMonitoringRequest & WithStreamName(Aws::String &&value)
Definition: EnableEnhancedMonitoringRequest.h:76
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: EnableEnhancedMonitoringRequest.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::GetShardLevelMetrics
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
Definition: EnableEnhancedMonitoringRequest.h:98
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SetShardLevelMetrics
void SetShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringRequest.h:130
KinesisRequest.h
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: EnableEnhancedMonitoringRequest.h:51
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableEnhancedMonitoringRequest.h:36
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::AddShardLevelMetrics
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(const MetricsName &value)
Definition: EnableEnhancedMonitoringRequest.h:194
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(const char *value)
Definition: EnableEnhancedMonitoringRequest.h:66
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: EnableEnhancedMonitoringRequest.h:61
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::WithShardLevelMetrics
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringRequest.h:178
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::WithStreamName
EnableEnhancedMonitoringRequest & WithStreamName(const char *value)
Definition: EnableEnhancedMonitoringRequest.h:81
Kinesis_EXPORTS.h
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::ShardLevelMetricsHasBeenSet
bool ShardLevelMetricsHasBeenSet() const
Definition: EnableEnhancedMonitoringRequest.h:114
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::WithShardLevelMetrics
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringRequest.h:162
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::WithStreamName
EnableEnhancedMonitoringRequest & WithStreamName(const Aws::String &value)
Definition: EnableEnhancedMonitoringRequest.h:71
MetricsName.h
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: EnableEnhancedMonitoringRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::MetricsName
MetricsName
Definition: MetricsName.h:17
Aws::Kinesis::Model::EnableEnhancedMonitoringRequest::AddShardLevelMetrics
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(MetricsName &&value)
Definition: EnableEnhancedMonitoringRequest.h:210