AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricsConfiguration.h
1
6#pragma once
7#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTThingsGraph
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOTTHINGSGRAPH_API MetricsConfiguration() = default;
36 AWS_IOTTHINGSGRAPH_API MetricsConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTHINGSGRAPH_API MetricsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetCloudMetricEnabled() const { return m_cloudMetricEnabled; }
46 inline bool CloudMetricEnabledHasBeenSet() const { return m_cloudMetricEnabledHasBeenSet; }
47 inline void SetCloudMetricEnabled(bool value) { m_cloudMetricEnabledHasBeenSet = true; m_cloudMetricEnabled = value; }
48 inline MetricsConfiguration& WithCloudMetricEnabled(bool value) { SetCloudMetricEnabled(value); return *this;}
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) { m_metricRuleRoleArnHasBeenSet = true; m_metricRuleRoleArn = std::forward<MetricRuleRoleArnT>(value); }
59 template<typename MetricRuleRoleArnT = Aws::String>
60 MetricsConfiguration& WithMetricRuleRoleArn(MetricRuleRoleArnT&& value) { SetMetricRuleRoleArn(std::forward<MetricRuleRoleArnT>(value)); return *this;}
62 private:
63
64 bool m_cloudMetricEnabled{false};
65 bool m_cloudMetricEnabledHasBeenSet = false;
66
67 Aws::String m_metricRuleRoleArn;
68 bool m_metricRuleRoleArnHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IoTThingsGraph
73} // 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