AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MetricsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTThingsGraph {
20namespace Model {
21
29 public:
30 AWS_IOTTHINGSGRAPH_API MetricsConfiguration() = default;
31 AWS_IOTTHINGSGRAPH_API MetricsConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTHINGSGRAPH_API MetricsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetCloudMetricEnabled() const { return m_cloudMetricEnabled; }
40 inline bool CloudMetricEnabledHasBeenSet() const { return m_cloudMetricEnabledHasBeenSet; }
41 inline void SetCloudMetricEnabled(bool value) {
42 m_cloudMetricEnabledHasBeenSet = true;
43 m_cloudMetricEnabled = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetMetricRuleRoleArn() const { return m_metricRuleRoleArn; }
56 inline bool MetricRuleRoleArnHasBeenSet() const { return m_metricRuleRoleArnHasBeenSet; }
57 template <typename MetricRuleRoleArnT = Aws::String>
58 void SetMetricRuleRoleArn(MetricRuleRoleArnT&& value) {
59 m_metricRuleRoleArnHasBeenSet = true;
60 m_metricRuleRoleArn = std::forward<MetricRuleRoleArnT>(value);
61 }
62 template <typename MetricRuleRoleArnT = Aws::String>
63 MetricsConfiguration& WithMetricRuleRoleArn(MetricRuleRoleArnT&& value) {
64 SetMetricRuleRoleArn(std::forward<MetricRuleRoleArnT>(value));
65 return *this;
66 }
68 private:
69 bool m_cloudMetricEnabled{false};
70
71 Aws::String m_metricRuleRoleArn;
72 bool m_cloudMetricEnabledHasBeenSet = false;
73 bool m_metricRuleRoleArnHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoTThingsGraph
78} // namespace Aws
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricRuleRoleArn(MetricRuleRoleArnT &&value)
MetricsConfiguration & WithMetricRuleRoleArn(MetricRuleRoleArnT &&value)
AWS_IOTTHINGSGRAPH_API MetricsConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTHINGSGRAPH_API MetricsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTHINGSGRAPH_API MetricsConfiguration()=default
MetricsConfiguration & WithCloudMetricEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue