AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnhancedMetrics.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kinesis/model/MetricsName.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kinesis
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_KINESIS_API EnhancedMetrics() = default;
36 AWS_KINESIS_API EnhancedMetrics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
56 inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const { return m_shardLevelMetrics; }
57 inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; }
58 template<typename ShardLevelMetricsT = Aws::Vector<MetricsName>>
59 void SetShardLevelMetrics(ShardLevelMetricsT&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = std::forward<ShardLevelMetricsT>(value); }
60 template<typename ShardLevelMetricsT = Aws::Vector<MetricsName>>
61 EnhancedMetrics& WithShardLevelMetrics(ShardLevelMetricsT&& value) { SetShardLevelMetrics(std::forward<ShardLevelMetricsT>(value)); return *this;}
62 inline EnhancedMetrics& AddShardLevelMetrics(MetricsName value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
64 private:
65
66 Aws::Vector<MetricsName> m_shardLevelMetrics;
67 bool m_shardLevelMetricsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Kinesis
72} // namespace Aws
AWS_KINESIS_API EnhancedMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
AWS_KINESIS_API EnhancedMetrics(Aws::Utils::Json::JsonView jsonValue)
EnhancedMetrics & AddShardLevelMetrics(MetricsName value)
EnhancedMetrics & WithShardLevelMetrics(ShardLevelMetricsT &&value)
AWS_KINESIS_API EnhancedMetrics()=default
void SetShardLevelMetrics(ShardLevelMetricsT &&value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue