AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RejectChoice.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 DataZone
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATAZONE_API RejectChoice() = default;
37 AWS_DATAZONE_API RejectChoice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<int>& GetPredictionChoices() const { return m_predictionChoices; }
48 inline bool PredictionChoicesHasBeenSet() const { return m_predictionChoicesHasBeenSet; }
49 template<typename PredictionChoicesT = Aws::Vector<int>>
50 void SetPredictionChoices(PredictionChoicesT&& value) { m_predictionChoicesHasBeenSet = true; m_predictionChoices = std::forward<PredictionChoicesT>(value); }
51 template<typename PredictionChoicesT = Aws::Vector<int>>
52 RejectChoice& WithPredictionChoices(PredictionChoicesT&& value) { SetPredictionChoices(std::forward<PredictionChoicesT>(value)); return *this;}
53 inline RejectChoice& AddPredictionChoices(int value) { m_predictionChoicesHasBeenSet = true; m_predictionChoices.push_back(value); return *this; }
55
57
61 inline const Aws::String& GetPredictionTarget() const { return m_predictionTarget; }
62 inline bool PredictionTargetHasBeenSet() const { return m_predictionTargetHasBeenSet; }
63 template<typename PredictionTargetT = Aws::String>
64 void SetPredictionTarget(PredictionTargetT&& value) { m_predictionTargetHasBeenSet = true; m_predictionTarget = std::forward<PredictionTargetT>(value); }
65 template<typename PredictionTargetT = Aws::String>
66 RejectChoice& WithPredictionTarget(PredictionTargetT&& value) { SetPredictionTarget(std::forward<PredictionTargetT>(value)); return *this;}
68 private:
69
70 Aws::Vector<int> m_predictionChoices;
71 bool m_predictionChoicesHasBeenSet = false;
72
73 Aws::String m_predictionTarget;
74 bool m_predictionTargetHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DataZone
79} // 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