AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
RejectChoice.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/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API RejectChoice() = default;
32 AWS_DATAZONE_API RejectChoice(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 RejectChoice& WithPredictionTarget(PredictionTargetT&& value) {
50 SetPredictionTarget(std::forward<PredictionTargetT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<int>& GetPredictionChoices() const { return m_predictionChoices; }
61 inline bool PredictionChoicesHasBeenSet() const { return m_predictionChoicesHasBeenSet; }
62 template <typename PredictionChoicesT = Aws::Vector<int>>
63 void SetPredictionChoices(PredictionChoicesT&& value) {
64 m_predictionChoicesHasBeenSet = true;
65 m_predictionChoices = std::forward<PredictionChoicesT>(value);
66 }
67 template <typename PredictionChoicesT = Aws::Vector<int>>
68 RejectChoice& WithPredictionChoices(PredictionChoicesT&& value) {
69 SetPredictionChoices(std::forward<PredictionChoicesT>(value));
70 return *this;
71 }
73 m_predictionChoicesHasBeenSet = true;
74 m_predictionChoices.push_back(value);
75 return *this;
76 }
78 private:
79 Aws::String m_predictionTarget;
80
81 Aws::Vector<int> m_predictionChoices;
82 bool m_predictionTargetHasBeenSet = false;
83 bool m_predictionChoicesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DataZone
88} // namespace Aws
AWS_DATAZONE_API RejectChoice(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API RejectChoice()=default
RejectChoice & AddPredictionChoices(int value)
RejectChoice & WithPredictionTarget(PredictionTargetT &&value)
void SetPredictionChoices(PredictionChoicesT &&value)
AWS_DATAZONE_API RejectChoice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< int > & GetPredictionChoices() const
RejectChoice & WithPredictionChoices(PredictionChoicesT &&value)
const Aws::String & GetPredictionTarget() const
void SetPredictionTarget(PredictionTargetT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue