AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Output.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/databrew/GlueDataBrew_EXPORTS.h>
10#include <aws/databrew/model/CompressionFormat.h>
11#include <aws/databrew/model/OutputFormat.h>
12#include <aws/databrew/model/OutputFormatOptions.h>
13#include <aws/databrew/model/S3Location.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GlueDataBrew {
25namespace Model {
26
33class Output {
34 public:
35 AWS_GLUEDATABREW_API Output() = default;
36 AWS_GLUEDATABREW_API Output(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLUEDATABREW_API Output& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline CompressionFormat GetCompressionFormat() const { return m_compressionFormat; }
45 inline bool CompressionFormatHasBeenSet() const { return m_compressionFormatHasBeenSet; }
47 m_compressionFormatHasBeenSet = true;
48 m_compressionFormat = value;
49 }
52 return *this;
53 }
55
57
60 inline OutputFormat GetFormat() const { return m_format; }
61 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
62 inline void SetFormat(OutputFormat value) {
63 m_formatHasBeenSet = true;
64 m_format = value;
65 }
67 SetFormat(value);
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetPartitionColumns() const { return m_partitionColumns; }
77 inline bool PartitionColumnsHasBeenSet() const { return m_partitionColumnsHasBeenSet; }
78 template <typename PartitionColumnsT = Aws::Vector<Aws::String>>
79 void SetPartitionColumns(PartitionColumnsT&& value) {
80 m_partitionColumnsHasBeenSet = true;
81 m_partitionColumns = std::forward<PartitionColumnsT>(value);
82 }
83 template <typename PartitionColumnsT = Aws::Vector<Aws::String>>
84 Output& WithPartitionColumns(PartitionColumnsT&& value) {
85 SetPartitionColumns(std::forward<PartitionColumnsT>(value));
86 return *this;
87 }
88 template <typename PartitionColumnsT = Aws::String>
89 Output& AddPartitionColumns(PartitionColumnsT&& value) {
90 m_partitionColumnsHasBeenSet = true;
91 m_partitionColumns.emplace_back(std::forward<PartitionColumnsT>(value));
92 return *this;
93 }
95
97
100 inline const S3Location& GetLocation() const { return m_location; }
101 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
102 template <typename LocationT = S3Location>
103 void SetLocation(LocationT&& value) {
104 m_locationHasBeenSet = true;
105 m_location = std::forward<LocationT>(value);
106 }
107 template <typename LocationT = S3Location>
108 Output& WithLocation(LocationT&& value) {
109 SetLocation(std::forward<LocationT>(value));
110 return *this;
111 }
113
115
119 inline bool GetOverwrite() const { return m_overwrite; }
120 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
121 inline void SetOverwrite(bool value) {
122 m_overwriteHasBeenSet = true;
123 m_overwrite = value;
124 }
125 inline Output& WithOverwrite(bool value) {
126 SetOverwrite(value);
127 return *this;
128 }
130
132
135 inline const OutputFormatOptions& GetFormatOptions() const { return m_formatOptions; }
136 inline bool FormatOptionsHasBeenSet() const { return m_formatOptionsHasBeenSet; }
137 template <typename FormatOptionsT = OutputFormatOptions>
138 void SetFormatOptions(FormatOptionsT&& value) {
139 m_formatOptionsHasBeenSet = true;
140 m_formatOptions = std::forward<FormatOptionsT>(value);
141 }
142 template <typename FormatOptionsT = OutputFormatOptions>
143 Output& WithFormatOptions(FormatOptionsT&& value) {
144 SetFormatOptions(std::forward<FormatOptionsT>(value));
145 return *this;
146 }
148
150
155 inline int GetMaxOutputFiles() const { return m_maxOutputFiles; }
156 inline bool MaxOutputFilesHasBeenSet() const { return m_maxOutputFilesHasBeenSet; }
157 inline void SetMaxOutputFiles(int value) {
158 m_maxOutputFilesHasBeenSet = true;
159 m_maxOutputFiles = value;
160 }
161 inline Output& WithMaxOutputFiles(int value) {
162 SetMaxOutputFiles(value);
163 return *this;
164 }
166 private:
168
170
171 Aws::Vector<Aws::String> m_partitionColumns;
172
173 S3Location m_location;
174
175 bool m_overwrite{false};
176
177 OutputFormatOptions m_formatOptions;
178
179 int m_maxOutputFiles{0};
180 bool m_compressionFormatHasBeenSet = false;
181 bool m_formatHasBeenSet = false;
182 bool m_partitionColumnsHasBeenSet = false;
183 bool m_locationHasBeenSet = false;
184 bool m_overwriteHasBeenSet = false;
185 bool m_formatOptionsHasBeenSet = false;
186 bool m_maxOutputFilesHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace GlueDataBrew
191} // namespace Aws
void SetPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:79
void SetLocation(LocationT &&value)
Definition Output.h:103
void SetOverwrite(bool value)
Definition Output.h:121
void SetCompressionFormat(CompressionFormat value)
Definition Output.h:46
Output & AddPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:89
const OutputFormatOptions & GetFormatOptions() const
Definition Output.h:135
CompressionFormat GetCompressionFormat() const
Definition Output.h:44
void SetFormatOptions(FormatOptionsT &&value)
Definition Output.h:138
bool PartitionColumnsHasBeenSet() const
Definition Output.h:77
void SetMaxOutputFiles(int value)
Definition Output.h:157
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
bool FormatOptionsHasBeenSet() const
Definition Output.h:136
Output & WithMaxOutputFiles(int value)
Definition Output.h:161
Output & WithOverwrite(bool value)
Definition Output.h:125
Output & WithCompressionFormat(CompressionFormat value)
Definition Output.h:50
Output & WithFormat(OutputFormat value)
Definition Output.h:66
OutputFormat GetFormat() const
Definition Output.h:60
AWS_GLUEDATABREW_API Output(Aws::Utils::Json::JsonView jsonValue)
const S3Location & GetLocation() const
Definition Output.h:100
Output & WithFormatOptions(FormatOptionsT &&value)
Definition Output.h:143
Output & WithLocation(LocationT &&value)
Definition Output.h:108
AWS_GLUEDATABREW_API Output & operator=(Aws::Utils::Json::JsonView jsonValue)
Output & WithPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:84
void SetFormat(OutputFormat value)
Definition Output.h:62
bool MaxOutputFilesHasBeenSet() const
Definition Output.h:156
bool CompressionFormatHasBeenSet() const
Definition Output.h:45
AWS_GLUEDATABREW_API Output()=default
const Aws::Vector< Aws::String > & GetPartitionColumns() const
Definition Output.h:76
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue