AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Union.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/UnionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
34 class Union
35 {
36 public:
37 AWS_GLUE_API Union() = default;
38 AWS_GLUE_API Union(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLUE_API Union& operator=(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 Union& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
60 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
61 template<typename InputsT = Aws::Vector<Aws::String>>
62 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
63 template<typename InputsT = Aws::Vector<Aws::String>>
64 Union& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
65 template<typename InputsT = Aws::String>
66 Union& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
68
70
76 inline UnionType GetUnionType() const { return m_unionType; }
77 inline bool UnionTypeHasBeenSet() const { return m_unionTypeHasBeenSet; }
78 inline void SetUnionType(UnionType value) { m_unionTypeHasBeenSet = true; m_unionType = value; }
79 inline Union& WithUnionType(UnionType value) { SetUnionType(value); return *this;}
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
87 bool m_inputsHasBeenSet = false;
88
89 UnionType m_unionType{UnionType::NOT_SET};
90 bool m_unionTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Glue
95} // namespace Aws
const Aws::Vector< Aws::String > & GetInputs() const
Definition Union.h:59
bool NameHasBeenSet() const
Definition Union.h:48
Union & WithName(NameT &&value)
Definition Union.h:52
Union & AddInputs(InputsT &&value)
Definition Union.h:66
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool UnionTypeHasBeenSet() const
Definition Union.h:77
const Aws::String & GetName() const
Definition Union.h:47
void SetInputs(InputsT &&value)
Definition Union.h:62
UnionType GetUnionType() const
Definition Union.h:76
AWS_GLUE_API Union(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Union.h:50
AWS_GLUE_API Union()=default
bool InputsHasBeenSet() const
Definition Union.h:60
void SetUnionType(UnionType value)
Definition Union.h:78
Union & WithUnionType(UnionType value)
Definition Union.h:79
AWS_GLUE_API Union & operator=(Aws::Utils::Json::JsonView jsonValue)
Union & WithInputs(InputsT &&value)
Definition Union.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue