AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
LoggingDestination.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/CloudWatchLogDestination.h>
9#include <aws/amp/model/LoggingFilter.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
30 public:
31 AWS_PROMETHEUSSERVICE_API LoggingDestination() = default;
32 AWS_PROMETHEUSSERVICE_API LoggingDestination(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROMETHEUSSERVICE_API LoggingDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const CloudWatchLogDestination& GetCloudWatchLogs() const { return m_cloudWatchLogs; }
41 inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
42 template <typename CloudWatchLogsT = CloudWatchLogDestination>
43 void SetCloudWatchLogs(CloudWatchLogsT&& value) {
44 m_cloudWatchLogsHasBeenSet = true;
45 m_cloudWatchLogs = std::forward<CloudWatchLogsT>(value);
46 }
47 template <typename CloudWatchLogsT = CloudWatchLogDestination>
48 LoggingDestination& WithCloudWatchLogs(CloudWatchLogsT&& value) {
49 SetCloudWatchLogs(std::forward<CloudWatchLogsT>(value));
50 return *this;
51 }
53
55
58 inline const LoggingFilter& GetFilters() const { return m_filters; }
59 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
60 template <typename FiltersT = LoggingFilter>
61 void SetFilters(FiltersT&& value) {
62 m_filtersHasBeenSet = true;
63 m_filters = std::forward<FiltersT>(value);
64 }
65 template <typename FiltersT = LoggingFilter>
66 LoggingDestination& WithFilters(FiltersT&& value) {
67 SetFilters(std::forward<FiltersT>(value));
68 return *this;
69 }
71 private:
72 CloudWatchLogDestination m_cloudWatchLogs;
73
74 LoggingFilter m_filters;
75 bool m_cloudWatchLogsHasBeenSet = false;
76 bool m_filtersHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace PrometheusService
81} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingDestination & WithCloudWatchLogs(CloudWatchLogsT &&value)
LoggingDestination & WithFilters(FiltersT &&value)
AWS_PROMETHEUSSERVICE_API LoggingDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API LoggingDestination()=default
AWS_PROMETHEUSSERVICE_API LoggingDestination(Aws::Utils::Json::JsonView jsonValue)
const CloudWatchLogDestination & GetCloudWatchLogs() const
Aws::Utils::Json::JsonValue JsonValue