AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PipeLogConfiguration.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/pipes/model/S3LogDestination.h>
9#include <aws/pipes/model/FirehoseLogDestination.h>
10#include <aws/pipes/model/CloudwatchLogsLogDestination.h>
11#include <aws/pipes/model/LogLevel.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/pipes/model/IncludeExecutionDataOption.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Pipes
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PIPES_API PipeLogConfiguration() = default;
43 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const S3LogDestination& GetS3LogDestination() const { return m_s3LogDestination; }
51 inline bool S3LogDestinationHasBeenSet() const { return m_s3LogDestinationHasBeenSet; }
52 template<typename S3LogDestinationT = S3LogDestination>
53 void SetS3LogDestination(S3LogDestinationT&& value) { m_s3LogDestinationHasBeenSet = true; m_s3LogDestination = std::forward<S3LogDestinationT>(value); }
54 template<typename S3LogDestinationT = S3LogDestination>
55 PipeLogConfiguration& WithS3LogDestination(S3LogDestinationT&& value) { SetS3LogDestination(std::forward<S3LogDestinationT>(value)); return *this;}
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) { m_firehoseLogDestinationHasBeenSet = true; m_firehoseLogDestination = std::forward<FirehoseLogDestinationT>(value); }
66 template<typename FirehoseLogDestinationT = FirehoseLogDestination>
67 PipeLogConfiguration& WithFirehoseLogDestination(FirehoseLogDestinationT&& value) { SetFirehoseLogDestination(std::forward<FirehoseLogDestinationT>(value)); return *this;}
69
71
74 inline const CloudwatchLogsLogDestination& GetCloudwatchLogsLogDestination() const { return m_cloudwatchLogsLogDestination; }
75 inline bool CloudwatchLogsLogDestinationHasBeenSet() const { return m_cloudwatchLogsLogDestinationHasBeenSet; }
76 template<typename CloudwatchLogsLogDestinationT = CloudwatchLogsLogDestination>
77 void SetCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT&& value) { m_cloudwatchLogsLogDestinationHasBeenSet = true; m_cloudwatchLogsLogDestination = std::forward<CloudwatchLogsLogDestinationT>(value); }
78 template<typename CloudwatchLogsLogDestinationT = CloudwatchLogsLogDestination>
79 PipeLogConfiguration& WithCloudwatchLogsLogDestination(CloudwatchLogsLogDestinationT&& value) { SetCloudwatchLogsLogDestination(std::forward<CloudwatchLogsLogDestinationT>(value)); return *this;}
81
83
87 inline LogLevel GetLevel() const { return m_level; }
88 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
89 inline void SetLevel(LogLevel value) { m_levelHasBeenSet = true; m_level = value; }
90 inline PipeLogConfiguration& WithLevel(LogLevel value) { SetLevel(value); return *this;}
92
94
102 inline const Aws::Vector<IncludeExecutionDataOption>& GetIncludeExecutionData() const { return m_includeExecutionData; }
103 inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; }
104 template<typename IncludeExecutionDataT = Aws::Vector<IncludeExecutionDataOption>>
105 void SetIncludeExecutionData(IncludeExecutionDataT&& value) { m_includeExecutionDataHasBeenSet = true; m_includeExecutionData = std::forward<IncludeExecutionDataT>(value); }
106 template<typename IncludeExecutionDataT = Aws::Vector<IncludeExecutionDataOption>>
107 PipeLogConfiguration& WithIncludeExecutionData(IncludeExecutionDataT&& value) { SetIncludeExecutionData(std::forward<IncludeExecutionDataT>(value)); return *this;}
108 inline PipeLogConfiguration& AddIncludeExecutionData(IncludeExecutionDataOption value) { m_includeExecutionDataHasBeenSet = true; m_includeExecutionData.push_back(value); return *this; }
110 private:
111
112 S3LogDestination m_s3LogDestination;
113 bool m_s3LogDestinationHasBeenSet = false;
114
115 FirehoseLogDestination m_firehoseLogDestination;
116 bool m_firehoseLogDestinationHasBeenSet = false;
117
118 CloudwatchLogsLogDestination m_cloudwatchLogsLogDestination;
119 bool m_cloudwatchLogsLogDestinationHasBeenSet = false;
120
122 bool m_levelHasBeenSet = false;
123
124 Aws::Vector<IncludeExecutionDataOption> m_includeExecutionData;
125 bool m_includeExecutionDataHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Pipes
130} // 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