AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Option.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glue {
20namespace Model {
21
27class Option {
28 public:
29 AWS_GLUE_API Option() = default;
30 AWS_GLUE_API Option(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 template <typename ValueT = Aws::String>
41 void SetValue(ValueT&& value) {
42 m_valueHasBeenSet = true;
43 m_value = std::forward<ValueT>(value);
44 }
45 template <typename ValueT = Aws::String>
46 Option& WithValue(ValueT&& value) {
47 SetValue(std::forward<ValueT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetLabel() const { return m_label; }
57 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
58 template <typename LabelT = Aws::String>
59 void SetLabel(LabelT&& value) {
60 m_labelHasBeenSet = true;
61 m_label = std::forward<LabelT>(value);
62 }
63 template <typename LabelT = Aws::String>
64 Option& WithLabel(LabelT&& value) {
65 SetLabel(std::forward<LabelT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 Option& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_value;
89
90 Aws::String m_label;
91
92 Aws::String m_description;
93 bool m_valueHasBeenSet = false;
94 bool m_labelHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Glue
100} // namespace Aws
void SetValue(ValueT &&value)
Definition Option.h:41
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ValueHasBeenSet() const
Definition Option.h:39
bool DescriptionHasBeenSet() const
Definition Option.h:75
Option & WithLabel(LabelT &&value)
Definition Option.h:64
Option & WithValue(ValueT &&value)
Definition Option.h:46
AWS_GLUE_API Option()=default
const Aws::String & GetDescription() const
Definition Option.h:74
void SetDescription(DescriptionT &&value)
Definition Option.h:77
void SetLabel(LabelT &&value)
Definition Option.h:59
Option & WithDescription(DescriptionT &&value)
Definition Option.h:82
const Aws::String & GetValue() const
Definition Option.h:38
const Aws::String & GetLabel() const
Definition Option.h:56
bool LabelHasBeenSet() const
Definition Option.h:57
AWS_GLUE_API Option & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Option(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue