AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline Union& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline Union& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline Union& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
62 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
63 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
64 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
65 inline Union& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
66 inline Union& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
67 inline Union& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
68 inline Union& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
69 inline Union& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
71
73
79 inline const UnionType& GetUnionType() const{ return m_unionType; }
80 inline bool UnionTypeHasBeenSet() const { return m_unionTypeHasBeenSet; }
81 inline void SetUnionType(const UnionType& value) { m_unionTypeHasBeenSet = true; m_unionType = value; }
82 inline void SetUnionType(UnionType&& value) { m_unionTypeHasBeenSet = true; m_unionType = std::move(value); }
83 inline Union& WithUnionType(const UnionType& value) { SetUnionType(value); return *this;}
84 inline Union& WithUnionType(UnionType&& value) { SetUnionType(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
92 bool m_inputsHasBeenSet = false;
93
94 UnionType m_unionType;
95 bool m_unionTypeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Glue
100} // namespace Aws
const Aws::Vector< Aws::String > & GetInputs() const
Definition Union.h:61
void SetUnionType(const UnionType &value)
Definition Union.h:81
Union & WithUnionType(UnionType &&value)
Definition Union.h:84
bool NameHasBeenSet() const
Definition Union.h:48
void SetName(const Aws::String &value)
Definition Union.h:49
Union & WithUnionType(const UnionType &value)
Definition Union.h:83
Union & AddInputs(Aws::String &&value)
Definition Union.h:68
void SetInputs(const Aws::Vector< Aws::String > &value)
Definition Union.h:63
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Union & WithName(Aws::String &&value)
Definition Union.h:53
Union & WithName(const char *value)
Definition Union.h:54
bool UnionTypeHasBeenSet() const
Definition Union.h:80
AWS_GLUE_API Union()
const UnionType & GetUnionType() const
Definition Union.h:79
const Aws::String & GetName() const
Definition Union.h:47
void SetUnionType(UnionType &&value)
Definition Union.h:82
Union & AddInputs(const char *value)
Definition Union.h:69
AWS_GLUE_API Union(Aws::Utils::Json::JsonView jsonValue)
bool InputsHasBeenSet() const
Definition Union.h:62
void SetName(const char *value)
Definition Union.h:51
void SetName(Aws::String &&value)
Definition Union.h:50
AWS_GLUE_API Union & operator=(Aws::Utils::Json::JsonView jsonValue)
Union & WithInputs(Aws::Vector< Aws::String > &&value)
Definition Union.h:66
Union & WithName(const Aws::String &value)
Definition Union.h:52
Union & WithInputs(const Aws::Vector< Aws::String > &value)
Definition Union.h:65
Union & AddInputs(const Aws::String &value)
Definition Union.h:67
void SetInputs(Aws::Vector< Aws::String > &&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