AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
EnhancedMetrics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/kinesis/Kinesis_EXPORTS.h>
9#include <aws/kinesis/model/MetricsName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kinesis {
21namespace Model {
22
29 public:
30 AWS_KINESIS_API EnhancedMetrics() = default;
31 AWS_KINESIS_API EnhancedMetrics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
50 inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const { return m_shardLevelMetrics; }
51 inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; }
52 template <typename ShardLevelMetricsT = Aws::Vector<MetricsName>>
53 void SetShardLevelMetrics(ShardLevelMetricsT&& value) {
54 m_shardLevelMetricsHasBeenSet = true;
55 m_shardLevelMetrics = std::forward<ShardLevelMetricsT>(value);
56 }
57 template <typename ShardLevelMetricsT = Aws::Vector<MetricsName>>
58 EnhancedMetrics& WithShardLevelMetrics(ShardLevelMetricsT&& value) {
59 SetShardLevelMetrics(std::forward<ShardLevelMetricsT>(value));
60 return *this;
61 }
63 m_shardLevelMetricsHasBeenSet = true;
64 m_shardLevelMetrics.push_back(value);
65 return *this;
66 }
68 private:
69 Aws::Vector<MetricsName> m_shardLevelMetrics;
70 bool m_shardLevelMetricsHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace Kinesis
75} // 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