AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricPolicy.h
1
6#pragma once
7#include <aws/mediastore/MediaStore_EXPORTS.h>
8#include <aws/mediastore/model/ContainerLevelMetrics.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediastore/model/MetricPolicyRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaStore
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_MEDIASTORE_API MetricPolicy();
44 AWS_MEDIASTORE_API MetricPolicy(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIASTORE_API MetricPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const ContainerLevelMetrics& GetContainerLevelMetrics() const{ return m_containerLevelMetrics; }
54 inline bool ContainerLevelMetricsHasBeenSet() const { return m_containerLevelMetricsHasBeenSet; }
55 inline void SetContainerLevelMetrics(const ContainerLevelMetrics& value) { m_containerLevelMetricsHasBeenSet = true; m_containerLevelMetrics = value; }
56 inline void SetContainerLevelMetrics(ContainerLevelMetrics&& value) { m_containerLevelMetricsHasBeenSet = true; m_containerLevelMetrics = std::move(value); }
58 inline MetricPolicy& WithContainerLevelMetrics(ContainerLevelMetrics&& value) { SetContainerLevelMetrics(std::move(value)); return *this;}
60
62
70 inline const Aws::Vector<MetricPolicyRule>& GetMetricPolicyRules() const{ return m_metricPolicyRules; }
71 inline bool MetricPolicyRulesHasBeenSet() const { return m_metricPolicyRulesHasBeenSet; }
72 inline void SetMetricPolicyRules(const Aws::Vector<MetricPolicyRule>& value) { m_metricPolicyRulesHasBeenSet = true; m_metricPolicyRules = value; }
73 inline void SetMetricPolicyRules(Aws::Vector<MetricPolicyRule>&& value) { m_metricPolicyRulesHasBeenSet = true; m_metricPolicyRules = std::move(value); }
75 inline MetricPolicy& WithMetricPolicyRules(Aws::Vector<MetricPolicyRule>&& value) { SetMetricPolicyRules(std::move(value)); return *this;}
76 inline MetricPolicy& AddMetricPolicyRules(const MetricPolicyRule& value) { m_metricPolicyRulesHasBeenSet = true; m_metricPolicyRules.push_back(value); return *this; }
77 inline MetricPolicy& AddMetricPolicyRules(MetricPolicyRule&& value) { m_metricPolicyRulesHasBeenSet = true; m_metricPolicyRules.push_back(std::move(value)); return *this; }
79 private:
80
81 ContainerLevelMetrics m_containerLevelMetrics;
82 bool m_containerLevelMetricsHasBeenSet = false;
83
84 Aws::Vector<MetricPolicyRule> m_metricPolicyRules;
85 bool m_metricPolicyRulesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace MediaStore
90} // namespace Aws
MetricPolicy & WithMetricPolicyRules(const Aws::Vector< MetricPolicyRule > &value)
MetricPolicy & WithContainerLevelMetrics(const ContainerLevelMetrics &value)
MetricPolicy & WithMetricPolicyRules(Aws::Vector< MetricPolicyRule > &&value)
AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContainerLevelMetrics(ContainerLevelMetrics &&value)
void SetMetricPolicyRules(Aws::Vector< MetricPolicyRule > &&value)
MetricPolicy & WithContainerLevelMetrics(ContainerLevelMetrics &&value)
AWS_MEDIASTORE_API MetricPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetContainerLevelMetrics(const ContainerLevelMetrics &value)
MetricPolicy & AddMetricPolicyRules(const MetricPolicyRule &value)
MetricPolicy & AddMetricPolicyRules(MetricPolicyRule &&value)
const Aws::Vector< MetricPolicyRule > & GetMetricPolicyRules() const
void SetMetricPolicyRules(const Aws::Vector< MetricPolicyRule > &value)
AWS_MEDIASTORE_API MetricPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContainerLevelMetrics & GetContainerLevelMetrics() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue