AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SelectFromCollection.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
31 public:
32 AWS_GLUE_API SelectFromCollection() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
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) {
63 m_inputsHasBeenSet = true;
64 m_inputs = std::forward<InputsT>(value);
65 }
66 template <typename InputsT = Aws::Vector<Aws::String>>
67 SelectFromCollection& WithInputs(InputsT&& value) {
68 SetInputs(std::forward<InputsT>(value));
69 return *this;
70 }
71 template <typename InputsT = Aws::String>
72 SelectFromCollection& AddInputs(InputsT&& value) {
73 m_inputsHasBeenSet = true;
74 m_inputs.emplace_back(std::forward<InputsT>(value));
75 return *this;
76 }
78
80
83 inline int GetIndex() const { return m_index; }
84 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
85 inline void SetIndex(int value) {
86 m_indexHasBeenSet = true;
87 m_index = value;
88 }
89 inline SelectFromCollection& WithIndex(int value) {
90 SetIndex(value);
91 return *this;
92 }
94 private:
95 Aws::String m_name;
96
98
99 int m_index{0};
100 bool m_nameHasBeenSet = false;
101 bool m_inputsHasBeenSet = false;
102 bool m_indexHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Glue
107} // 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