AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricSource.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/model/S3SourceConfig.h>
9#include <aws/lookoutmetrics/model/AppFlowConfig.h>
10#include <aws/lookoutmetrics/model/CloudWatchConfig.h>
11#include <aws/lookoutmetrics/model/RDSSourceConfig.h>
12#include <aws/lookoutmetrics/model/RedshiftSourceConfig.h>
13#include <aws/lookoutmetrics/model/AthenaSourceConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LookoutMetrics
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LOOKOUTMETRICS_API MetricSource();
41 AWS_LOOKOUTMETRICS_API MetricSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOOKOUTMETRICS_API MetricSource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const S3SourceConfig& GetS3SourceConfig() const{ return m_s3SourceConfig; }
49 inline bool S3SourceConfigHasBeenSet() const { return m_s3SourceConfigHasBeenSet; }
50 inline void SetS3SourceConfig(const S3SourceConfig& value) { m_s3SourceConfigHasBeenSet = true; m_s3SourceConfig = value; }
51 inline void SetS3SourceConfig(S3SourceConfig&& value) { m_s3SourceConfigHasBeenSet = true; m_s3SourceConfig = std::move(value); }
52 inline MetricSource& WithS3SourceConfig(const S3SourceConfig& value) { SetS3SourceConfig(value); return *this;}
53 inline MetricSource& WithS3SourceConfig(S3SourceConfig&& value) { SetS3SourceConfig(std::move(value)); return *this;}
55
57
60 inline const AppFlowConfig& GetAppFlowConfig() const{ return m_appFlowConfig; }
61 inline bool AppFlowConfigHasBeenSet() const { return m_appFlowConfigHasBeenSet; }
62 inline void SetAppFlowConfig(const AppFlowConfig& value) { m_appFlowConfigHasBeenSet = true; m_appFlowConfig = value; }
63 inline void SetAppFlowConfig(AppFlowConfig&& value) { m_appFlowConfigHasBeenSet = true; m_appFlowConfig = std::move(value); }
64 inline MetricSource& WithAppFlowConfig(const AppFlowConfig& value) { SetAppFlowConfig(value); return *this;}
65 inline MetricSource& WithAppFlowConfig(AppFlowConfig&& value) { SetAppFlowConfig(std::move(value)); return *this;}
67
69
72 inline const CloudWatchConfig& GetCloudWatchConfig() const{ return m_cloudWatchConfig; }
73 inline bool CloudWatchConfigHasBeenSet() const { return m_cloudWatchConfigHasBeenSet; }
74 inline void SetCloudWatchConfig(const CloudWatchConfig& value) { m_cloudWatchConfigHasBeenSet = true; m_cloudWatchConfig = value; }
75 inline void SetCloudWatchConfig(CloudWatchConfig&& value) { m_cloudWatchConfigHasBeenSet = true; m_cloudWatchConfig = std::move(value); }
76 inline MetricSource& WithCloudWatchConfig(const CloudWatchConfig& value) { SetCloudWatchConfig(value); return *this;}
77 inline MetricSource& WithCloudWatchConfig(CloudWatchConfig&& value) { SetCloudWatchConfig(std::move(value)); return *this;}
79
81
84 inline const RDSSourceConfig& GetRDSSourceConfig() const{ return m_rDSSourceConfig; }
85 inline bool RDSSourceConfigHasBeenSet() const { return m_rDSSourceConfigHasBeenSet; }
86 inline void SetRDSSourceConfig(const RDSSourceConfig& value) { m_rDSSourceConfigHasBeenSet = true; m_rDSSourceConfig = value; }
87 inline void SetRDSSourceConfig(RDSSourceConfig&& value) { m_rDSSourceConfigHasBeenSet = true; m_rDSSourceConfig = std::move(value); }
88 inline MetricSource& WithRDSSourceConfig(const RDSSourceConfig& value) { SetRDSSourceConfig(value); return *this;}
89 inline MetricSource& WithRDSSourceConfig(RDSSourceConfig&& value) { SetRDSSourceConfig(std::move(value)); return *this;}
91
93
96 inline const RedshiftSourceConfig& GetRedshiftSourceConfig() const{ return m_redshiftSourceConfig; }
97 inline bool RedshiftSourceConfigHasBeenSet() const { return m_redshiftSourceConfigHasBeenSet; }
98 inline void SetRedshiftSourceConfig(const RedshiftSourceConfig& value) { m_redshiftSourceConfigHasBeenSet = true; m_redshiftSourceConfig = value; }
99 inline void SetRedshiftSourceConfig(RedshiftSourceConfig&& value) { m_redshiftSourceConfigHasBeenSet = true; m_redshiftSourceConfig = std::move(value); }
101 inline MetricSource& WithRedshiftSourceConfig(RedshiftSourceConfig&& value) { SetRedshiftSourceConfig(std::move(value)); return *this;}
103
105
108 inline const AthenaSourceConfig& GetAthenaSourceConfig() const{ return m_athenaSourceConfig; }
109 inline bool AthenaSourceConfigHasBeenSet() const { return m_athenaSourceConfigHasBeenSet; }
110 inline void SetAthenaSourceConfig(const AthenaSourceConfig& value) { m_athenaSourceConfigHasBeenSet = true; m_athenaSourceConfig = value; }
111 inline void SetAthenaSourceConfig(AthenaSourceConfig&& value) { m_athenaSourceConfigHasBeenSet = true; m_athenaSourceConfig = std::move(value); }
113 inline MetricSource& WithAthenaSourceConfig(AthenaSourceConfig&& value) { SetAthenaSourceConfig(std::move(value)); return *this;}
115 private:
116
117 S3SourceConfig m_s3SourceConfig;
118 bool m_s3SourceConfigHasBeenSet = false;
119
120 AppFlowConfig m_appFlowConfig;
121 bool m_appFlowConfigHasBeenSet = false;
122
123 CloudWatchConfig m_cloudWatchConfig;
124 bool m_cloudWatchConfigHasBeenSet = false;
125
126 RDSSourceConfig m_rDSSourceConfig;
127 bool m_rDSSourceConfigHasBeenSet = false;
128
129 RedshiftSourceConfig m_redshiftSourceConfig;
130 bool m_redshiftSourceConfigHasBeenSet = false;
131
132 AthenaSourceConfig m_athenaSourceConfig;
133 bool m_athenaSourceConfigHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace LookoutMetrics
138} // namespace Aws
AWS_LOOKOUTMETRICS_API MetricSource()
MetricSource & WithCloudWatchConfig(CloudWatchConfig &&value)
MetricSource & WithRDSSourceConfig(const RDSSourceConfig &value)
void SetRedshiftSourceConfig(const RedshiftSourceConfig &value)
MetricSource & WithRDSSourceConfig(RDSSourceConfig &&value)
MetricSource & WithS3SourceConfig(const S3SourceConfig &value)
MetricSource & WithAppFlowConfig(const AppFlowConfig &value)
AWS_LOOKOUTMETRICS_API MetricSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const CloudWatchConfig & GetCloudWatchConfig() const
void SetRedshiftSourceConfig(RedshiftSourceConfig &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricSource & WithS3SourceConfig(S3SourceConfig &&value)
void SetAthenaSourceConfig(const AthenaSourceConfig &value)
void SetS3SourceConfig(S3SourceConfig &&value)
void SetCloudWatchConfig(CloudWatchConfig &&value)
const AppFlowConfig & GetAppFlowConfig() const
void SetS3SourceConfig(const S3SourceConfig &value)
void SetCloudWatchConfig(const CloudWatchConfig &value)
MetricSource & WithCloudWatchConfig(const CloudWatchConfig &value)
void SetRDSSourceConfig(const RDSSourceConfig &value)
const RDSSourceConfig & GetRDSSourceConfig() const
void SetAppFlowConfig(const AppFlowConfig &value)
MetricSource & WithAthenaSourceConfig(AthenaSourceConfig &&value)
MetricSource & WithAthenaSourceConfig(const AthenaSourceConfig &value)
void SetAthenaSourceConfig(AthenaSourceConfig &&value)
const RedshiftSourceConfig & GetRedshiftSourceConfig() const
const S3SourceConfig & GetS3SourceConfig() const
const AthenaSourceConfig & GetAthenaSourceConfig() const
MetricSource & WithRedshiftSourceConfig(const RedshiftSourceConfig &value)
MetricSource & WithRedshiftSourceConfig(RedshiftSourceConfig &&value)
AWS_LOOKOUTMETRICS_API MetricSource(Aws::Utils::Json::JsonView jsonValue)
void SetRDSSourceConfig(RDSSourceConfig &&value)
void SetAppFlowConfig(AppFlowConfig &&value)
MetricSource & WithAppFlowConfig(AppFlowConfig &&value)
Aws::Utils::Json::JsonValue JsonValue