AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PipeLogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/pipes/Pipes_EXPORTS.h>
9#include <aws/pipes/model/CloudwatchLogsLogDestination.h>
10#include <aws/pipes/model/FirehoseLogDestination.h>
11#include <aws/pipes/model/IncludeExecutionDataOption.h>
12#include <aws/pipes/model/LogLevel.h>
13#include <aws/pipes/model/S3LogDestination.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pipes {
25namespace Model {
26
34 public:
35 AWS_PIPES_API PipeLogConfiguration() = default;
38 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const S3LogDestination& GetS3LogDestination() const { return m_s3LogDestination; }
45 inline bool S3LogDestinationHasBeenSet() const { return m_s3LogDestinationHasBeenSet; }
46 template <typename S3LogDestinationT = S3LogDestination>
47 void SetS3LogDestination(S3LogDestinationT&& value) {
48 m_s3LogDestinationHasBeenSet = true;
49 m_s3LogDestination = std::forward<S3LogDestinationT>(value);
50 }
51 template <typename S3LogDestinationT = S3LogDestination>
52 PipeLogConfiguration& WithS3LogDestination(S3LogDestinationT&& value) {
53 SetS3LogDestination(std::forward<S3LogDestinationT>(value));
54 return *this;
55 }
57
59
62 inline const FirehoseLogDestination& GetFirehoseLogDestination() const { return m_firehoseLogDestination; }
63 inline bool FirehoseLogDestinationHasBeenSet() const { return m_firehoseLogDestinationHasBeenSet; }
64 template <typename FirehoseLogDestinationT = FirehoseLogDestination>
65 void SetFirehoseLogDestination(FirehoseLogDestinationT&& value) {
66 m_firehoseLogDestinationHasBeenSet = true;
67 m_firehoseLogDestination = std::forward<FirehoseLogDestinationT>(value);
68 }
69 template <typename FirehoseLogDestinationT = FirehoseLogDestination>
70 PipeLogConfiguration& WithFirehoseLogDestination(FirehoseLogDestinationT&& value) {
71 SetFirehoseLogDestination(std::forward<FirehoseLogDestinationT>(value));
72 return *this;
73 }
75
77
80 inline const CloudwatchLogsLogDestination& GetCloudwatchLogsLogDestination() const { return m_cloudwatchLogsLogDestination; }
81 inline bool CloudwatchLogsLogDestinationHasBeenSet() const { return m_cloudwatchLogsLogDestinationHasBeenSet; }
82 template <typename CloudwatchLogsLogDestinationT = CloudwatchLogsLogDestination>
83 void SetCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT&& value) {
84 m_cloudwatchLogsLogDestinationHasBeenSet = true;
85 m_cloudwatchLogsLogDestination = std::forward<CloudwatchLogsLogDestinationT>(value);
86 }
87 template <typename CloudwatchLogsLogDestinationT = CloudwatchLogsLogDestination>
88 PipeLogConfiguration& WithCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT&& value) {
89 SetCloudwatchLogsLogDestination(std::forward<CloudwatchLogsLogDestinationT>(value));
90 return *this;
91 }
93
95
99 inline LogLevel GetLevel() const { return m_level; }
100 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
101 inline void SetLevel(LogLevel value) {
102 m_levelHasBeenSet = true;
103 m_level = value;
104 }
106 SetLevel(value);
107 return *this;
108 }
110
112
120 inline const Aws::Vector<IncludeExecutionDataOption>& GetIncludeExecutionData() const { return m_includeExecutionData; }
121 inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; }
122 template <typename IncludeExecutionDataT = Aws::Vector<IncludeExecutionDataOption>>
123 void SetIncludeExecutionData(IncludeExecutionDataT&& value) {
124 m_includeExecutionDataHasBeenSet = true;
125 m_includeExecutionData = std::forward<IncludeExecutionDataT>(value);
126 }
127 template <typename IncludeExecutionDataT = Aws::Vector<IncludeExecutionDataOption>>
128 PipeLogConfiguration& WithIncludeExecutionData(IncludeExecutionDataT&& value) {
129 SetIncludeExecutionData(std::forward<IncludeExecutionDataT>(value));
130 return *this;
131 }
133 m_includeExecutionDataHasBeenSet = true;
134 m_includeExecutionData.push_back(value);
135 return *this;
136 }
138 private:
139 S3LogDestination m_s3LogDestination;
140
141 FirehoseLogDestination m_firehoseLogDestination;
142
143 CloudwatchLogsLogDestination m_cloudwatchLogsLogDestination;
144
146
147 Aws::Vector<IncludeExecutionDataOption> m_includeExecutionData;
148 bool m_s3LogDestinationHasBeenSet = false;
149 bool m_firehoseLogDestinationHasBeenSet = false;
150 bool m_cloudwatchLogsLogDestinationHasBeenSet = false;
151 bool m_levelHasBeenSet = false;
152 bool m_includeExecutionDataHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Pipes
157} // namespace Aws
AWS_PIPES_API PipeLogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeLogConfiguration & WithIncludeExecutionData(IncludeExecutionDataT &&value)
const Aws::Vector< IncludeExecutionDataOption > & GetIncludeExecutionData() const
const S3LogDestination & GetS3LogDestination() const
PipeLogConfiguration & WithFirehoseLogDestination(FirehoseLogDestinationT &&value)
void SetCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT &&value)
const CloudwatchLogsLogDestination & GetCloudwatchLogsLogDestination() const
void SetIncludeExecutionData(IncludeExecutionDataT &&value)
PipeLogConfiguration & WithLevel(LogLevel value)
AWS_PIPES_API PipeLogConfiguration(Aws::Utils::Json::JsonView jsonValue)
PipeLogConfiguration & AddIncludeExecutionData(IncludeExecutionDataOption value)
AWS_PIPES_API PipeLogConfiguration()=default
PipeLogConfiguration & WithS3LogDestination(S3LogDestinationT &&value)
void SetFirehoseLogDestination(FirehoseLogDestinationT &&value)
void SetS3LogDestination(S3LogDestinationT &&value)
const FirehoseLogDestination & GetFirehoseLogDestination() const
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PipeLogConfiguration & WithCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue