AWS SDK for C++  1.9.109
AWS SDK for C++
PredictRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MachineLearning
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "Predict"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
42 
46  inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
47 
51  inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
52 
56  inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); }
57 
61  inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
62 
66  inline PredictRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
67 
71  inline PredictRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;}
72 
76  inline PredictRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
77 
78 
79 
80  inline const Aws::Map<Aws::String, Aws::String>& GetRecord() const{ return m_record; }
81 
82 
83  inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
84 
85 
86  inline void SetRecord(const Aws::Map<Aws::String, Aws::String>& value) { m_recordHasBeenSet = true; m_record = value; }
87 
88 
89  inline void SetRecord(Aws::Map<Aws::String, Aws::String>&& value) { m_recordHasBeenSet = true; m_record = std::move(value); }
90 
91 
92  inline PredictRequest& WithRecord(const Aws::Map<Aws::String, Aws::String>& value) { SetRecord(value); return *this;}
93 
94 
95  inline PredictRequest& WithRecord(Aws::Map<Aws::String, Aws::String>&& value) { SetRecord(std::move(value)); return *this;}
96 
97 
98  inline PredictRequest& AddRecord(const Aws::String& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
99 
100 
101  inline PredictRequest& AddRecord(Aws::String&& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), value); return *this; }
102 
103 
104  inline PredictRequest& AddRecord(const Aws::String& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
105 
106 
107  inline PredictRequest& AddRecord(Aws::String&& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), std::move(value)); return *this; }
108 
109 
110  inline PredictRequest& AddRecord(const char* key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
111 
112 
113  inline PredictRequest& AddRecord(Aws::String&& key, const char* value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), value); return *this; }
114 
115 
116  inline PredictRequest& AddRecord(const char* key, const char* value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
117 
118 
119 
120  inline const Aws::String& GetPredictEndpoint() const{ return m_predictEndpoint; }
121 
122 
123  inline bool PredictEndpointHasBeenSet() const { return m_predictEndpointHasBeenSet; }
124 
125 
126  inline void SetPredictEndpoint(const Aws::String& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = value; }
127 
128 
129  inline void SetPredictEndpoint(Aws::String&& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = std::move(value); }
130 
131 
132  inline void SetPredictEndpoint(const char* value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint.assign(value); }
133 
134 
135  inline PredictRequest& WithPredictEndpoint(const Aws::String& value) { SetPredictEndpoint(value); return *this;}
136 
137 
138  inline PredictRequest& WithPredictEndpoint(Aws::String&& value) { SetPredictEndpoint(std::move(value)); return *this;}
139 
140 
141  inline PredictRequest& WithPredictEndpoint(const char* value) { SetPredictEndpoint(value); return *this;}
142 
143  private:
144 
145  Aws::String m_mLModelId;
146  bool m_mLModelIdHasBeenSet;
147 
149  bool m_recordHasBeenSet;
150 
151  Aws::String m_predictEndpoint;
152  bool m_predictEndpointHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace MachineLearning
157 } // namespace Aws
Aws::MachineLearning::Model::PredictRequest::WithPredictEndpoint
PredictRequest & WithPredictEndpoint(const Aws::String &value)
Definition: PredictRequest.h:135
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(Aws::String &&key, const Aws::String &value)
Definition: PredictRequest.h:101
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::PredictRequest::GetPredictEndpoint
const Aws::String & GetPredictEndpoint() const
Definition: PredictRequest.h:120
Aws::MachineLearning::Model::PredictRequest::WithMLModelId
PredictRequest & WithMLModelId(const Aws::String &value)
Definition: PredictRequest.h:66
Aws::MachineLearning::Model::PredictRequest::SetRecord
void SetRecord(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PredictRequest.h:86
Aws::MachineLearning::Model::PredictRequest::SetMLModelId
void SetMLModelId(const Aws::String &value)
Definition: PredictRequest.h:51
Aws::MachineLearning::Model::PredictRequest::PredictEndpointHasBeenSet
bool PredictEndpointHasBeenSet() const
Definition: PredictRequest.h:123
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(const char *key, Aws::String &&value)
Definition: PredictRequest.h:110
Aws::MachineLearning::Model::PredictRequest::WithRecord
PredictRequest & WithRecord(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PredictRequest.h:92
Aws::MachineLearning::Model::PredictRequest::SetMLModelId
void SetMLModelId(const char *value)
Definition: PredictRequest.h:61
Aws::MachineLearning::Model::PredictRequest::WithMLModelId
PredictRequest & WithMLModelId(Aws::String &&value)
Definition: PredictRequest.h:71
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::PredictRequest::SetPredictEndpoint
void SetPredictEndpoint(const char *value)
Definition: PredictRequest.h:132
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(const Aws::String &key, const Aws::String &value)
Definition: PredictRequest.h:98
Aws::MachineLearning::Model::PredictRequest::SetPredictEndpoint
void SetPredictEndpoint(const Aws::String &value)
Definition: PredictRequest.h:126
Aws::MachineLearning::Model::PredictRequest::GetMLModelId
const Aws::String & GetMLModelId() const
Definition: PredictRequest.h:41
AWSString.h
Aws::MachineLearning::Model::PredictRequest::PredictRequest
PredictRequest()
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(const char *key, const char *value)
Definition: PredictRequest.h:116
MachineLearningRequest.h
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(const Aws::String &key, Aws::String &&value)
Definition: PredictRequest.h:104
Aws::MachineLearning::Model::PredictRequest::WithPredictEndpoint
PredictRequest & WithPredictEndpoint(const char *value)
Definition: PredictRequest.h:141
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws::MachineLearning::Model::PredictRequest::SetPredictEndpoint
void SetPredictEndpoint(Aws::String &&value)
Definition: PredictRequest.h:129
Aws::MachineLearning::Model::PredictRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MachineLearning::Model::PredictRequest::SetRecord
void SetRecord(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PredictRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(Aws::String &&key, const char *value)
Definition: PredictRequest.h:113
Aws::MachineLearning::Model::PredictRequest::GetRecord
const Aws::Map< Aws::String, Aws::String > & GetRecord() const
Definition: PredictRequest.h:80
Aws::MachineLearning::Model::PredictRequest::WithRecord
PredictRequest & WithRecord(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PredictRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::PredictRequest::SetMLModelId
void SetMLModelId(Aws::String &&value)
Definition: PredictRequest.h:56
Aws::MachineLearning::Model::PredictRequest::MLModelIdHasBeenSet
bool MLModelIdHasBeenSet() const
Definition: PredictRequest.h:46
Aws::MachineLearning::Model::PredictRequest::AddRecord
PredictRequest & AddRecord(Aws::String &&key, Aws::String &&value)
Definition: PredictRequest.h:107
Aws::MachineLearning::Model::PredictRequest::WithPredictEndpoint
PredictRequest & WithPredictEndpoint(Aws::String &&value)
Definition: PredictRequest.h:138
Aws::MachineLearning::Model::PredictRequest::WithMLModelId
PredictRequest & WithMLModelId(const char *value)
Definition: PredictRequest.h:76
Aws::MachineLearning::Model::PredictRequest::RecordHasBeenSet
bool RecordHasBeenSet() const
Definition: PredictRequest.h:83
AWSMap.h
Aws::MachineLearning::Model::PredictRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MachineLearning::Model::PredictRequest
Definition: PredictRequest.h:23
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MachineLearning::Model::PredictRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PredictRequest.h:31