AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PrometheusService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROMETHEUSSERVICE_API LoggingDestination() = default;
37 AWS_PROMETHEUSSERVICE_API LoggingDestination(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API LoggingDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const CloudWatchLogDestination& GetCloudWatchLogs() const { return m_cloudWatchLogs; }
47 inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
48 template<typename CloudWatchLogsT = CloudWatchLogDestination>
49 void SetCloudWatchLogs(CloudWatchLogsT&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::forward<CloudWatchLogsT>(value); }
50 template<typename CloudWatchLogsT = CloudWatchLogDestination>
51 LoggingDestination& WithCloudWatchLogs(CloudWatchLogsT&& value) { SetCloudWatchLogs(std::forward<CloudWatchLogsT>(value)); return *this;}
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) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
62 template<typename FiltersT = LoggingFilter>
63 LoggingDestination& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
65 private:
66
67 CloudWatchLogDestination m_cloudWatchLogs;
68 bool m_cloudWatchLogsHasBeenSet = false;
69
70 LoggingFilter m_filters;
71 bool m_filtersHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace PrometheusService
76} // 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