AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Spigot.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
33 class Spigot
34 {
35 public:
36 AWS_GLUE_API Spigot() = default;
37 AWS_GLUE_API Spigot(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Spigot& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
62 template<typename InputsT = Aws::Vector<Aws::String>>
63 Spigot& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
64 template<typename InputsT = Aws::String>
65 Spigot& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
67
69
73 inline const Aws::String& GetPath() const { return m_path; }
74 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
75 template<typename PathT = Aws::String>
76 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
77 template<typename PathT = Aws::String>
78 Spigot& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
80
82
86 inline int GetTopk() const { return m_topk; }
87 inline bool TopkHasBeenSet() const { return m_topkHasBeenSet; }
88 inline void SetTopk(int value) { m_topkHasBeenSet = true; m_topk = value; }
89 inline Spigot& WithTopk(int value) { SetTopk(value); return *this;}
91
93
98 inline double GetProb() const { return m_prob; }
99 inline bool ProbHasBeenSet() const { return m_probHasBeenSet; }
100 inline void SetProb(double value) { m_probHasBeenSet = true; m_prob = value; }
101 inline Spigot& WithProb(double value) { SetProb(value); return *this;}
103 private:
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
109 bool m_inputsHasBeenSet = false;
110
111 Aws::String m_path;
112 bool m_pathHasBeenSet = false;
113
114 int m_topk{0};
115 bool m_topkHasBeenSet = false;
116
117 double m_prob{0.0};
118 bool m_probHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Glue
123} // namespace Aws
double GetProb() const
Definition Spigot.h:98
bool TopkHasBeenSet() const
Definition Spigot.h:87
const Aws::Vector< Aws::String > & GetInputs() const
Definition Spigot.h:58
const Aws::String & GetName() const
Definition Spigot.h:46
Spigot & WithProb(double value)
Definition Spigot.h:101
void SetInputs(InputsT &&value)
Definition Spigot.h:61
int GetTopk() const
Definition Spigot.h:86
AWS_GLUE_API Spigot & operator=(Aws::Utils::Json::JsonView jsonValue)
Spigot & WithName(NameT &&value)
Definition Spigot.h:51
AWS_GLUE_API Spigot()=default
bool ProbHasBeenSet() const
Definition Spigot.h:99
void SetName(NameT &&value)
Definition Spigot.h:49
Spigot & WithPath(PathT &&value)
Definition Spigot.h:78
Spigot & AddInputs(InputsT &&value)
Definition Spigot.h:65
Spigot & WithTopk(int value)
Definition Spigot.h:89
Spigot & WithInputs(InputsT &&value)
Definition Spigot.h:63
void SetProb(double value)
Definition Spigot.h:100
bool NameHasBeenSet() const
Definition Spigot.h:47
void SetPath(PathT &&value)
Definition Spigot.h:76
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:73
void SetTopk(int value)
Definition Spigot.h:88
bool PathHasBeenSet() const
Definition Spigot.h:74
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