AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SelectFromCollection.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GLUE_API SelectFromCollection() = default;
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 SelectFromCollection& 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 SelectFromCollection& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
65 template<typename InputsT = Aws::String>
66 SelectFromCollection& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
68
70
73 inline int GetIndex() const { return m_index; }
74 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
75 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
76 inline SelectFromCollection& WithIndex(int value) { SetIndex(value); return *this;}
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
84 bool m_inputsHasBeenSet = false;
85
86 int m_index{0};
87 bool m_indexHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Glue
92} // namespace Aws
AWS_GLUE_API SelectFromCollection(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API SelectFromCollection()=default
AWS_GLUE_API SelectFromCollection & operator=(Aws::Utils::Json::JsonView jsonValue)
SelectFromCollection & WithName(NameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
SelectFromCollection & AddInputs(InputsT &&value)
SelectFromCollection & WithIndex(int value)
const Aws::Vector< Aws::String > & GetInputs() const
SelectFromCollection & WithInputs(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