AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AcceptChoice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
30 public:
31 AWS_DATAZONE_API AcceptChoice() = default;
32 AWS_DATAZONE_API AcceptChoice(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetPredictionTarget() const { return m_predictionTarget; }
42 inline bool PredictionTargetHasBeenSet() const { return m_predictionTargetHasBeenSet; }
43 template <typename PredictionTargetT = Aws::String>
44 void SetPredictionTarget(PredictionTargetT&& value) {
45 m_predictionTargetHasBeenSet = true;
46 m_predictionTarget = std::forward<PredictionTargetT>(value);
47 }
48 template <typename PredictionTargetT = Aws::String>
49 AcceptChoice& WithPredictionTarget(PredictionTargetT&& value) {
50 SetPredictionTarget(std::forward<PredictionTargetT>(value));
51 return *this;
52 }
54
56
60 inline int GetPredictionChoice() const { return m_predictionChoice; }
61 inline bool PredictionChoiceHasBeenSet() const { return m_predictionChoiceHasBeenSet; }
62 inline void SetPredictionChoice(int value) {
63 m_predictionChoiceHasBeenSet = true;
64 m_predictionChoice = value;
65 }
68 return *this;
69 }
71
73
76 inline const Aws::String& GetEditedValue() const { return m_editedValue; }
77 inline bool EditedValueHasBeenSet() const { return m_editedValueHasBeenSet; }
78 template <typename EditedValueT = Aws::String>
79 void SetEditedValue(EditedValueT&& value) {
80 m_editedValueHasBeenSet = true;
81 m_editedValue = std::forward<EditedValueT>(value);
82 }
83 template <typename EditedValueT = Aws::String>
84 AcceptChoice& WithEditedValue(EditedValueT&& value) {
85 SetEditedValue(std::forward<EditedValueT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_predictionTarget;
91
92 int m_predictionChoice{0};
93
94 Aws::String m_editedValue;
95 bool m_predictionTargetHasBeenSet = false;
96 bool m_predictionChoiceHasBeenSet = false;
97 bool m_editedValueHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DataZone
102} // namespace Aws
void SetPredictionTarget(PredictionTargetT &&value)
const Aws::String & GetPredictionTarget() const
const Aws::String & GetEditedValue() const
void SetEditedValue(EditedValueT &&value)
AcceptChoice & WithEditedValue(EditedValueT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API AcceptChoice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API AcceptChoice()=default
AWS_DATAZONE_API AcceptChoice(Aws::Utils::Json::JsonView jsonValue)
AcceptChoice & WithPredictionTarget(PredictionTargetT &&value)
AcceptChoice & WithPredictionChoice(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue