AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricRuleRoleArn(const Aws::String& value) { m_metricRuleRoleArnHasBeenSet = true; m_metricRuleRoleArn = value; }
58 inline void SetMetricRuleRoleArn(Aws::String&& value) { m_metricRuleRoleArnHasBeenSet = true; m_metricRuleRoleArn = std::move(value); }
59 inline void SetMetricRuleRoleArn(const char* value) { m_metricRuleRoleArnHasBeenSet = true; m_metricRuleRoleArn.assign(value); }
60 inline MetricsConfiguration& WithMetricRuleRoleArn(const Aws::String& value) { SetMetricRuleRoleArn(value); return *this;}
61 inline MetricsConfiguration& WithMetricRuleRoleArn(Aws::String&& value) { SetMetricRuleRoleArn(std::move(value)); return *this;}
62 inline MetricsConfiguration& WithMetricRuleRoleArn(const char* value) { SetMetricRuleRoleArn(value); return *this;}
64 private:
65
66 bool m_cloudMetricEnabled;
67 bool m_cloudMetricEnabledHasBeenSet = false;
68
69 Aws::String m_metricRuleRoleArn;
70 bool m_metricRuleRoleArnHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoTThingsGraph
75} // namespace Aws
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTHINGSGRAPH_API MetricsConfiguration(Aws::Utils::Json::JsonView jsonValue)
MetricsConfiguration & WithMetricRuleRoleArn(const char *value)
AWS_IOTTHINGSGRAPH_API MetricsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricsConfiguration & WithMetricRuleRoleArn(const Aws::String &value)
MetricsConfiguration & WithCloudMetricEnabled(bool value)
MetricsConfiguration & WithMetricRuleRoleArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue