AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RenameField.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/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API RenameField() = default;
32 AWS_GLUE_API RenameField(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 RenameField& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
59 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
60 template <typename InputsT = Aws::Vector<Aws::String>>
61 void SetInputs(InputsT&& value) {
62 m_inputsHasBeenSet = true;
63 m_inputs = std::forward<InputsT>(value);
64 }
65 template <typename InputsT = Aws::Vector<Aws::String>>
66 RenameField& WithInputs(InputsT&& value) {
67 SetInputs(std::forward<InputsT>(value));
68 return *this;
69 }
70 template <typename InputsT = Aws::String>
71 RenameField& AddInputs(InputsT&& value) {
72 m_inputsHasBeenSet = true;
73 m_inputs.emplace_back(std::forward<InputsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSourcePath() const { return m_sourcePath; }
83 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
84 template <typename SourcePathT = Aws::Vector<Aws::String>>
85 void SetSourcePath(SourcePathT&& value) {
86 m_sourcePathHasBeenSet = true;
87 m_sourcePath = std::forward<SourcePathT>(value);
88 }
89 template <typename SourcePathT = Aws::Vector<Aws::String>>
90 RenameField& WithSourcePath(SourcePathT&& value) {
91 SetSourcePath(std::forward<SourcePathT>(value));
92 return *this;
93 }
94 template <typename SourcePathT = Aws::String>
95 RenameField& AddSourcePath(SourcePathT&& value) {
96 m_sourcePathHasBeenSet = true;
97 m_sourcePath.emplace_back(std::forward<SourcePathT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<Aws::String>& GetTargetPath() const { return m_targetPath; }
107 inline bool TargetPathHasBeenSet() const { return m_targetPathHasBeenSet; }
108 template <typename TargetPathT = Aws::Vector<Aws::String>>
109 void SetTargetPath(TargetPathT&& value) {
110 m_targetPathHasBeenSet = true;
111 m_targetPath = std::forward<TargetPathT>(value);
112 }
113 template <typename TargetPathT = Aws::Vector<Aws::String>>
114 RenameField& WithTargetPath(TargetPathT&& value) {
115 SetTargetPath(std::forward<TargetPathT>(value));
116 return *this;
117 }
118 template <typename TargetPathT = Aws::String>
119 RenameField& AddTargetPath(TargetPathT&& value) {
120 m_targetPathHasBeenSet = true;
121 m_targetPath.emplace_back(std::forward<TargetPathT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_name;
127
129
130 Aws::Vector<Aws::String> m_sourcePath;
131
132 Aws::Vector<Aws::String> m_targetPath;
133 bool m_nameHasBeenSet = false;
134 bool m_inputsHasBeenSet = false;
135 bool m_sourcePathHasBeenSet = false;
136 bool m_targetPathHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Glue
141} // namespace Aws
void SetTargetPath(TargetPathT &&value)
RenameField & AddTargetPath(TargetPathT &&value)
AWS_GLUE_API RenameField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API RenameField(Aws::Utils::Json::JsonView jsonValue)
RenameField & WithSourcePath(SourcePathT &&value)
Definition RenameField.h:90
const Aws::Vector< Aws::String > & GetInputs() const
Definition RenameField.h:58
const Aws::String & GetName() const
Definition RenameField.h:40
RenameField & WithName(NameT &&value)
Definition RenameField.h:48
void SetSourcePath(SourcePathT &&value)
Definition RenameField.h:85
RenameField & WithInputs(InputsT &&value)
Definition RenameField.h:66
const Aws::Vector< Aws::String > & GetSourcePath() const
Definition RenameField.h:82
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition RenameField.h:43
AWS_GLUE_API RenameField()=default
const Aws::Vector< Aws::String > & GetTargetPath() const
RenameField & AddSourcePath(SourcePathT &&value)
Definition RenameField.h:95
RenameField & AddInputs(InputsT &&value)
Definition RenameField.h:71
RenameField & WithTargetPath(TargetPathT &&value)
void SetInputs(InputsT &&value)
Definition RenameField.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue