AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Spigot.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
29class Spigot {
30 public:
31 AWS_GLUE_API Spigot() = default;
32 AWS_GLUE_API Spigot(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Spigot& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
59 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
60 template <typename InputsT = Aws::Vector<Aws::String>>
61 void SetInputs(InputsT&& value) {
62 m_inputsHasBeenSet = true;
63 m_inputs = std::forward<InputsT>(value);
64 }
65 template <typename InputsT = Aws::Vector<Aws::String>>
66 Spigot& WithInputs(InputsT&& value) {
67 SetInputs(std::forward<InputsT>(value));
68 return *this;
69 }
70 template <typename InputsT = Aws::String>
71 Spigot& AddInputs(InputsT&& value) {
72 m_inputsHasBeenSet = true;
73 m_inputs.emplace_back(std::forward<InputsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetPath() const { return m_path; }
84 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
85 template <typename PathT = Aws::String>
86 void SetPath(PathT&& value) {
87 m_pathHasBeenSet = true;
88 m_path = std::forward<PathT>(value);
89 }
90 template <typename PathT = Aws::String>
91 Spigot& WithPath(PathT&& value) {
92 SetPath(std::forward<PathT>(value));
93 return *this;
94 }
96
98
102 inline int GetTopk() const { return m_topk; }
103 inline bool TopkHasBeenSet() const { return m_topkHasBeenSet; }
104 inline void SetTopk(int value) {
105 m_topkHasBeenSet = true;
106 m_topk = value;
107 }
108 inline Spigot& WithTopk(int value) {
109 SetTopk(value);
110 return *this;
111 }
113
115
120 inline double GetProb() const { return m_prob; }
121 inline bool ProbHasBeenSet() const { return m_probHasBeenSet; }
122 inline void SetProb(double value) {
123 m_probHasBeenSet = true;
124 m_prob = value;
125 }
126 inline Spigot& WithProb(double value) {
127 SetProb(value);
128 return *this;
129 }
131 private:
132 Aws::String m_name;
133
135
136 Aws::String m_path;
137
138 int m_topk{0};
139
140 double m_prob{0.0};
141 bool m_nameHasBeenSet = false;
142 bool m_inputsHasBeenSet = false;
143 bool m_pathHasBeenSet = false;
144 bool m_topkHasBeenSet = false;
145 bool m_probHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Glue
150} // namespace Aws
double GetProb() const
Definition Spigot.h:120
bool TopkHasBeenSet() const
Definition Spigot.h:103
const Aws::Vector< Aws::String > & GetInputs() const
Definition Spigot.h:58
const Aws::String & GetName() const
Definition Spigot.h:40
Spigot & WithProb(double value)
Definition Spigot.h:126
void SetInputs(InputsT &&value)
Definition Spigot.h:61
int GetTopk() const
Definition Spigot.h:102
AWS_GLUE_API Spigot & operator=(Aws::Utils::Json::JsonView jsonValue)
Spigot & WithName(NameT &&value)
Definition Spigot.h:48
AWS_GLUE_API Spigot()=default
bool ProbHasBeenSet() const
Definition Spigot.h:121
void SetName(NameT &&value)
Definition Spigot.h:43
Spigot & WithPath(PathT &&value)
Definition Spigot.h:91
Spigot & AddInputs(InputsT &&value)
Definition Spigot.h:71
Spigot & WithTopk(int value)
Definition Spigot.h:108
Spigot & WithInputs(InputsT &&value)
Definition Spigot.h:66
void SetProb(double value)
Definition Spigot.h:122
bool NameHasBeenSet() const
Definition Spigot.h:41
void SetPath(PathT &&value)
Definition Spigot.h:86
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API Spigot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPath() const
Definition Spigot.h:83
void SetTopk(int value)
Definition Spigot.h:104
bool PathHasBeenSet() const
Definition Spigot.h:84
bool InputsHasBeenSet() const
Definition Spigot.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue