AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
WorkerLogDelivery.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/model/CloudWatchLogsLogDelivery.h>
9#include <aws/kafkaconnect/model/FirehoseLogDelivery.h>
10#include <aws/kafkaconnect/model/S3LogDelivery.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KafkaConnect {
22namespace Model {
23
32 public:
33 AWS_KAFKACONNECT_API WorkerLogDelivery() = default;
34 AWS_KAFKACONNECT_API WorkerLogDelivery(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KAFKACONNECT_API WorkerLogDelivery& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const CloudWatchLogsLogDelivery& GetCloudWatchLogs() const { return m_cloudWatchLogs; }
43 inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
44 template <typename CloudWatchLogsT = CloudWatchLogsLogDelivery>
45 void SetCloudWatchLogs(CloudWatchLogsT&& value) {
46 m_cloudWatchLogsHasBeenSet = true;
47 m_cloudWatchLogs = std::forward<CloudWatchLogsT>(value);
48 }
49 template <typename CloudWatchLogsT = CloudWatchLogsLogDelivery>
50 WorkerLogDelivery& WithCloudWatchLogs(CloudWatchLogsT&& value) {
51 SetCloudWatchLogs(std::forward<CloudWatchLogsT>(value));
52 return *this;
53 }
55
57
60 inline const FirehoseLogDelivery& GetFirehose() const { return m_firehose; }
61 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
62 template <typename FirehoseT = FirehoseLogDelivery>
63 void SetFirehose(FirehoseT&& value) {
64 m_firehoseHasBeenSet = true;
65 m_firehose = std::forward<FirehoseT>(value);
66 }
67 template <typename FirehoseT = FirehoseLogDelivery>
68 WorkerLogDelivery& WithFirehose(FirehoseT&& value) {
69 SetFirehose(std::forward<FirehoseT>(value));
70 return *this;
71 }
73
75
78 inline const S3LogDelivery& GetS3() const { return m_s3; }
79 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
80 template <typename S3T = S3LogDelivery>
81 void SetS3(S3T&& value) {
82 m_s3HasBeenSet = true;
83 m_s3 = std::forward<S3T>(value);
84 }
85 template <typename S3T = S3LogDelivery>
86 WorkerLogDelivery& WithS3(S3T&& value) {
87 SetS3(std::forward<S3T>(value));
88 return *this;
89 }
91 private:
92 CloudWatchLogsLogDelivery m_cloudWatchLogs;
93
94 FirehoseLogDelivery m_firehose;
95
96 S3LogDelivery m_s3;
97 bool m_cloudWatchLogsHasBeenSet = false;
98 bool m_firehoseHasBeenSet = false;
99 bool m_s3HasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace KafkaConnect
104} // namespace Aws
AWS_KAFKACONNECT_API WorkerLogDelivery(Aws::Utils::Json::JsonView jsonValue)
const CloudWatchLogsLogDelivery & GetCloudWatchLogs() const
WorkerLogDelivery & WithFirehose(FirehoseT &&value)
AWS_KAFKACONNECT_API WorkerLogDelivery & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCloudWatchLogs(CloudWatchLogsT &&value)
const FirehoseLogDelivery & GetFirehose() const
WorkerLogDelivery & WithS3(S3T &&value)
WorkerLogDelivery & WithCloudWatchLogs(CloudWatchLogsT &&value)
AWS_KAFKACONNECT_API WorkerLogDelivery()=default
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue