AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ApplyMapping.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#include <aws/glue/model/Mapping.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
33 public:
34 AWS_GLUE_API ApplyMapping() = default;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 ApplyMapping& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
62 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
63 template <typename InputsT = Aws::Vector<Aws::String>>
64 void SetInputs(InputsT&& value) {
65 m_inputsHasBeenSet = true;
66 m_inputs = std::forward<InputsT>(value);
67 }
68 template <typename InputsT = Aws::Vector<Aws::String>>
69 ApplyMapping& WithInputs(InputsT&& value) {
70 SetInputs(std::forward<InputsT>(value));
71 return *this;
72 }
73 template <typename InputsT = Aws::String>
74 ApplyMapping& AddInputs(InputsT&& value) {
75 m_inputsHasBeenSet = true;
76 m_inputs.emplace_back(std::forward<InputsT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Vector<Mapping>& GetMapping() const { return m_mapping; }
87 inline bool MappingHasBeenSet() const { return m_mappingHasBeenSet; }
88 template <typename MappingT = Aws::Vector<Mapping>>
89 void SetMapping(MappingT&& value) {
90 m_mappingHasBeenSet = true;
91 m_mapping = std::forward<MappingT>(value);
92 }
93 template <typename MappingT = Aws::Vector<Mapping>>
94 ApplyMapping& WithMapping(MappingT&& value) {
95 SetMapping(std::forward<MappingT>(value));
96 return *this;
97 }
98 template <typename MappingT = Mapping>
99 ApplyMapping& AddMapping(MappingT&& value) {
100 m_mappingHasBeenSet = true;
101 m_mapping.emplace_back(std::forward<MappingT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107
109
110 Aws::Vector<Mapping> m_mapping;
111 bool m_nameHasBeenSet = false;
112 bool m_inputsHasBeenSet = false;
113 bool m_mappingHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Glue
118} // namespace Aws
void SetMapping(MappingT &&value)
ApplyMapping & AddMapping(MappingT &&value)
void SetName(NameT &&value)
AWS_GLUE_API ApplyMapping()=default
AWS_GLUE_API ApplyMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplyMapping & WithMapping(MappingT &&value)
AWS_GLUE_API ApplyMapping(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
ApplyMapping & WithName(NameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ApplyMapping & AddInputs(InputsT &&value)
ApplyMapping & WithInputs(InputsT &&value)
const Aws::Vector< Mapping > & GetMapping() const
const Aws::Vector< Aws::String > & GetInputs() const
void SetInputs(InputsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue