AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableEnhancedMonitoringRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kinesis/model/MetricsName.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kinesis
17{
18namespace 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_KINESIS_API Aws::String SerializePayload() const override;
39
41
45 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
46
48
51 inline const Aws::String& GetStreamName() const{ return m_streamName; }
52 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
53 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
55 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
56 inline EnableEnhancedMonitoringRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
57 inline EnableEnhancedMonitoringRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
58 inline EnableEnhancedMonitoringRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
60
62
76 inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const{ return m_shardLevelMetrics; }
77 inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; }
78 inline void SetShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
79 inline void SetShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = std::move(value); }
82 inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
83 inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
91 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
92 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
93 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
94 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
95 inline EnableEnhancedMonitoringRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
96 inline EnableEnhancedMonitoringRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
97 inline EnableEnhancedMonitoringRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
99 private:
100
101 Aws::String m_streamName;
102 bool m_streamNameHasBeenSet = false;
103
104 Aws::Vector<MetricsName> m_shardLevelMetrics;
105 bool m_shardLevelMetricsHasBeenSet = false;
106
107 Aws::String m_streamARN;
108 bool m_streamARNHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Kinesis
113} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
EnableEnhancedMonitoringRequest & WithStreamName(const char *value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KINESIS_API Aws::String SerializePayload() const override
EnableEnhancedMonitoringRequest & WithStreamName(const Aws::String &value)
EnableEnhancedMonitoringRequest & WithStreamARN(Aws::String &&value)
EnableEnhancedMonitoringRequest & WithStreamARN(const char *value)
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
EnableEnhancedMonitoringRequest & WithStreamARN(const Aws::String &value)
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(const Aws::Vector< MetricsName > &value)
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(Aws::Vector< MetricsName > &&value)
EnableEnhancedMonitoringRequest & WithStreamName(Aws::String &&value)
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(MetricsName &&value)
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(const MetricsName &value)
void SetShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector