AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Spigot& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Spigot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Spigot& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
63 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
64 inline Spigot& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
65 inline Spigot& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
66 inline Spigot& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
67 inline Spigot& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
68 inline Spigot& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
70
72
76 inline const Aws::String& GetPath() const{ return m_path; }
77 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
78 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
79 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
80 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
81 inline Spigot& WithPath(const Aws::String& value) { SetPath(value); return *this;}
82 inline Spigot& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
83 inline Spigot& WithPath(const char* value) { SetPath(value); return *this;}
85
87
91 inline int GetTopk() const{ return m_topk; }
92 inline bool TopkHasBeenSet() const { return m_topkHasBeenSet; }
93 inline void SetTopk(int value) { m_topkHasBeenSet = true; m_topk = value; }
94 inline Spigot& WithTopk(int value) { SetTopk(value); return *this;}
96
98
103 inline double GetProb() const{ return m_prob; }
104 inline bool ProbHasBeenSet() const { return m_probHasBeenSet; }
105 inline void SetProb(double value) { m_probHasBeenSet = true; m_prob = value; }
106 inline Spigot& WithProb(double value) { SetProb(value); return *this;}
108 private:
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
114 bool m_inputsHasBeenSet = false;
115
116 Aws::String m_path;
117 bool m_pathHasBeenSet = false;
118
119 int m_topk;
120 bool m_topkHasBeenSet = false;
121
122 double m_prob;
123 bool m_probHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Glue
128} // namespace Aws
double GetProb() const
Definition Spigot.h:103
bool TopkHasBeenSet() const
Definition Spigot.h:92
const Aws::Vector< Aws::String > & GetInputs() const
Definition Spigot.h:60
const Aws::String & GetName() const
Definition Spigot.h:46
Spigot & WithProb(double value)
Definition Spigot.h:106
int GetTopk() const
Definition Spigot.h:91
AWS_GLUE_API Spigot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPath(const Aws::String &value)
Definition Spigot.h:78
bool ProbHasBeenSet() const
Definition Spigot.h:104
Spigot & WithTopk(int value)
Definition Spigot.h:94
void SetProb(double value)
Definition Spigot.h:105
bool NameHasBeenSet() const
Definition Spigot.h:47
Spigot & AddInputs(const Aws::String &value)
Definition Spigot.h:66
Spigot & AddInputs(const char *value)
Definition Spigot.h:68
void SetName(Aws::String &&value)
Definition Spigot.h:49
void SetPath(Aws::String &&value)
Definition Spigot.h:79
Spigot & WithName(const Aws::String &value)
Definition Spigot.h:51
void SetInputs(Aws::Vector< Aws::String > &&value)
Definition Spigot.h:63
void SetPath(const char *value)
Definition Spigot.h:80
Spigot & WithName(const char *value)
Definition Spigot.h:53
Spigot & AddInputs(Aws::String &&value)
Definition Spigot.h:67
void SetInputs(const Aws::Vector< Aws::String > &value)
Definition Spigot.h:62
Spigot & WithPath(Aws::String &&value)
Definition Spigot.h:82
void SetName(const Aws::String &value)
Definition Spigot.h:48
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Spigot & WithName(Aws::String &&value)
Definition Spigot.h:52
AWS_GLUE_API Spigot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPath() const
Definition Spigot.h:76
Spigot & WithPath(const char *value)
Definition Spigot.h:83
void SetTopk(int value)
Definition Spigot.h:93
Spigot & WithPath(const Aws::String &value)
Definition Spigot.h:81
Spigot & WithInputs(const Aws::Vector< Aws::String > &value)
Definition Spigot.h:64
void SetName(const char *value)
Definition Spigot.h:50
Spigot & WithInputs(Aws::Vector< Aws::String > &&value)
Definition Spigot.h:65
bool PathHasBeenSet() const
Definition Spigot.h:77
bool InputsHasBeenSet() const
Definition Spigot.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue