AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AmpConfiguration.h>
9#include <aws/amp/model/CloudWatchConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PrometheusService {
21namespace Model {
22
29 public:
30 AWS_PROMETHEUSSERVICE_API Destination() = default;
31 AWS_PROMETHEUSSERVICE_API Destination(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PROMETHEUSSERVICE_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const AmpConfiguration& GetAmpConfiguration() const { return m_ampConfiguration; }
40 inline bool AmpConfigurationHasBeenSet() const { return m_ampConfigurationHasBeenSet; }
41 template <typename AmpConfigurationT = AmpConfiguration>
42 void SetAmpConfiguration(AmpConfigurationT&& value) {
43 m_ampConfigurationHasBeenSet = true;
44 m_ampConfiguration = std::forward<AmpConfigurationT>(value);
45 }
46 template <typename AmpConfigurationT = AmpConfiguration>
47 Destination& WithAmpConfiguration(AmpConfigurationT&& value) {
48 SetAmpConfiguration(std::forward<AmpConfigurationT>(value));
49 return *this;
50 }
52
54
57 inline const CloudWatchConfiguration& GetCloudWatchConfiguration() const { return m_cloudWatchConfiguration; }
58 inline bool CloudWatchConfigurationHasBeenSet() const { return m_cloudWatchConfigurationHasBeenSet; }
59 template <typename CloudWatchConfigurationT = CloudWatchConfiguration>
60 void SetCloudWatchConfiguration(CloudWatchConfigurationT&& value) {
61 m_cloudWatchConfigurationHasBeenSet = true;
62 m_cloudWatchConfiguration = std::forward<CloudWatchConfigurationT>(value);
63 }
64 template <typename CloudWatchConfigurationT = CloudWatchConfiguration>
65 Destination& WithCloudWatchConfiguration(CloudWatchConfigurationT&& value) {
66 SetCloudWatchConfiguration(std::forward<CloudWatchConfigurationT>(value));
67 return *this;
68 }
70 private:
71 AmpConfiguration m_ampConfiguration;
72
73 CloudWatchConfiguration m_cloudWatchConfiguration;
74 bool m_ampConfigurationHasBeenSet = false;
75 bool m_cloudWatchConfigurationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace PrometheusService
80} // namespace Aws
const AmpConfiguration & GetAmpConfiguration() const
Definition Destination.h:39
AWS_PROMETHEUSSERVICE_API Destination(Aws::Utils::Json::JsonView jsonValue)
const CloudWatchConfiguration & GetCloudWatchConfiguration() const
Definition Destination.h:57
AWS_PROMETHEUSSERVICE_API Destination()=default
AWS_PROMETHEUSSERVICE_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCloudWatchConfiguration(CloudWatchConfigurationT &&value)
Definition Destination.h:60
Destination & WithAmpConfiguration(AmpConfigurationT &&value)
Definition Destination.h:47
void SetAmpConfiguration(AmpConfigurationT &&value)
Definition Destination.h:42
Destination & WithCloudWatchConfiguration(CloudWatchConfigurationT &&value)
Definition Destination.h:65
Aws::Utils::Json::JsonValue JsonValue