AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Output.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/model/CompressionFormat.h>
9#include <aws/databrew/model/OutputFormat.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/databrew/model/S3Location.h>
12#include <aws/databrew/model/OutputFormatOptions.h>
13#include <aws/core/utils/memory/stl/AWSString.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 GlueDataBrew
27{
28namespace Model
29{
30
37 class Output
38 {
39 public:
40 AWS_GLUEDATABREW_API Output() = default;
41 AWS_GLUEDATABREW_API Output(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLUEDATABREW_API Output& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline CompressionFormat GetCompressionFormat() const { return m_compressionFormat; }
51 inline bool CompressionFormatHasBeenSet() const { return m_compressionFormatHasBeenSet; }
52 inline void SetCompressionFormat(CompressionFormat value) { m_compressionFormatHasBeenSet = true; m_compressionFormat = value; }
55
57
60 inline OutputFormat GetFormat() const { return m_format; }
61 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
62 inline void SetFormat(OutputFormat value) { m_formatHasBeenSet = true; m_format = value; }
63 inline Output& WithFormat(OutputFormat value) { SetFormat(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetPartitionColumns() const { return m_partitionColumns; }
71 inline bool PartitionColumnsHasBeenSet() const { return m_partitionColumnsHasBeenSet; }
72 template<typename PartitionColumnsT = Aws::Vector<Aws::String>>
73 void SetPartitionColumns(PartitionColumnsT&& value) { m_partitionColumnsHasBeenSet = true; m_partitionColumns = std::forward<PartitionColumnsT>(value); }
74 template<typename PartitionColumnsT = Aws::Vector<Aws::String>>
75 Output& WithPartitionColumns(PartitionColumnsT&& value) { SetPartitionColumns(std::forward<PartitionColumnsT>(value)); return *this;}
76 template<typename PartitionColumnsT = Aws::String>
77 Output& AddPartitionColumns(PartitionColumnsT&& value) { m_partitionColumnsHasBeenSet = true; m_partitionColumns.emplace_back(std::forward<PartitionColumnsT>(value)); return *this; }
79
81
84 inline const S3Location& GetLocation() const { return m_location; }
85 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
86 template<typename LocationT = S3Location>
87 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
88 template<typename LocationT = S3Location>
89 Output& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
91
93
97 inline bool GetOverwrite() const { return m_overwrite; }
98 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
99 inline void SetOverwrite(bool value) { m_overwriteHasBeenSet = true; m_overwrite = value; }
100 inline Output& WithOverwrite(bool value) { SetOverwrite(value); return *this;}
102
104
107 inline const OutputFormatOptions& GetFormatOptions() const { return m_formatOptions; }
108 inline bool FormatOptionsHasBeenSet() const { return m_formatOptionsHasBeenSet; }
109 template<typename FormatOptionsT = OutputFormatOptions>
110 void SetFormatOptions(FormatOptionsT&& value) { m_formatOptionsHasBeenSet = true; m_formatOptions = std::forward<FormatOptionsT>(value); }
111 template<typename FormatOptionsT = OutputFormatOptions>
112 Output& WithFormatOptions(FormatOptionsT&& value) { SetFormatOptions(std::forward<FormatOptionsT>(value)); return *this;}
114
116
121 inline int GetMaxOutputFiles() const { return m_maxOutputFiles; }
122 inline bool MaxOutputFilesHasBeenSet() const { return m_maxOutputFilesHasBeenSet; }
123 inline void SetMaxOutputFiles(int value) { m_maxOutputFilesHasBeenSet = true; m_maxOutputFiles = value; }
124 inline Output& WithMaxOutputFiles(int value) { SetMaxOutputFiles(value); return *this;}
126 private:
127
129 bool m_compressionFormatHasBeenSet = false;
130
132 bool m_formatHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_partitionColumns;
135 bool m_partitionColumnsHasBeenSet = false;
136
137 S3Location m_location;
138 bool m_locationHasBeenSet = false;
139
140 bool m_overwrite{false};
141 bool m_overwriteHasBeenSet = false;
142
143 OutputFormatOptions m_formatOptions;
144 bool m_formatOptionsHasBeenSet = false;
145
146 int m_maxOutputFiles{0};
147 bool m_maxOutputFilesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace GlueDataBrew
152} // namespace Aws
void SetPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:73
void SetLocation(LocationT &&value)
Definition Output.h:87
void SetOverwrite(bool value)
Definition Output.h:99
void SetCompressionFormat(CompressionFormat value)
Definition Output.h:52
Output & AddPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:77
const OutputFormatOptions & GetFormatOptions() const
Definition Output.h:107
CompressionFormat GetCompressionFormat() const
Definition Output.h:50
void SetFormatOptions(FormatOptionsT &&value)
Definition Output.h:110
bool PartitionColumnsHasBeenSet() const
Definition Output.h:71
void SetMaxOutputFiles(int value)
Definition Output.h:123
bool LocationHasBeenSet() const
Definition Output.h:85
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
bool FormatOptionsHasBeenSet() const
Definition Output.h:108
Output & WithMaxOutputFiles(int value)
Definition Output.h:124
Output & WithOverwrite(bool value)
Definition Output.h:100
Output & WithCompressionFormat(CompressionFormat value)
Definition Output.h:53
Output & WithFormat(OutputFormat value)
Definition Output.h:63
OutputFormat GetFormat() const
Definition Output.h:60
AWS_GLUEDATABREW_API Output(Aws::Utils::Json::JsonView jsonValue)
const S3Location & GetLocation() const
Definition Output.h:84
Output & WithFormatOptions(FormatOptionsT &&value)
Definition Output.h:112
Output & WithLocation(LocationT &&value)
Definition Output.h:89
bool OverwriteHasBeenSet() const
Definition Output.h:98
AWS_GLUEDATABREW_API Output & operator=(Aws::Utils::Json::JsonView jsonValue)
Output & WithPartitionColumns(PartitionColumnsT &&value)
Definition Output.h:75
void SetFormat(OutputFormat value)
Definition Output.h:62
bool MaxOutputFilesHasBeenSet() const
Definition Output.h:122
bool CompressionFormatHasBeenSet() const
Definition Output.h:51
AWS_GLUEDATABREW_API Output()=default
const Aws::Vector< Aws::String > & GetPartitionColumns() const
Definition Output.h:70
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue