AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredictRequest.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/machinelearning/MachineLearningRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MachineLearning
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MACHINELEARNING_API PredictRequest();
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_MACHINELEARNING_API Aws::String SerializePayload() const override;
34
35 AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
43 inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
44 inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
45 inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); }
46 inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
47 inline PredictRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
48 inline PredictRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;}
49 inline PredictRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
51
53
54 inline const Aws::Map<Aws::String, Aws::String>& GetRecord() const{ return m_record; }
55 inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
56 inline void SetRecord(const Aws::Map<Aws::String, Aws::String>& value) { m_recordHasBeenSet = true; m_record = value; }
57 inline void SetRecord(Aws::Map<Aws::String, Aws::String>&& value) { m_recordHasBeenSet = true; m_record = std::move(value); }
58 inline PredictRequest& WithRecord(const Aws::Map<Aws::String, Aws::String>& value) { SetRecord(value); return *this;}
59 inline PredictRequest& WithRecord(Aws::Map<Aws::String, Aws::String>&& value) { SetRecord(std::move(value)); return *this;}
60 inline PredictRequest& AddRecord(const Aws::String& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
61 inline PredictRequest& AddRecord(Aws::String&& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), value); return *this; }
62 inline PredictRequest& AddRecord(const Aws::String& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
63 inline PredictRequest& AddRecord(Aws::String&& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), std::move(value)); return *this; }
64 inline PredictRequest& AddRecord(const char* key, Aws::String&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
65 inline PredictRequest& AddRecord(Aws::String&& key, const char* value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), value); return *this; }
66 inline PredictRequest& AddRecord(const char* key, const char* value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
68
70
71 inline const Aws::String& GetPredictEndpoint() const{ return m_predictEndpoint; }
72 inline bool PredictEndpointHasBeenSet() const { return m_predictEndpointHasBeenSet; }
73 inline void SetPredictEndpoint(const Aws::String& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = value; }
74 inline void SetPredictEndpoint(Aws::String&& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = std::move(value); }
75 inline void SetPredictEndpoint(const char* value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint.assign(value); }
76 inline PredictRequest& WithPredictEndpoint(const Aws::String& value) { SetPredictEndpoint(value); return *this;}
77 inline PredictRequest& WithPredictEndpoint(Aws::String&& value) { SetPredictEndpoint(std::move(value)); return *this;}
78 inline PredictRequest& WithPredictEndpoint(const char* value) { SetPredictEndpoint(value); return *this;}
80 private:
81
82 Aws::String m_mLModelId;
83 bool m_mLModelIdHasBeenSet = false;
84
86 bool m_recordHasBeenSet = false;
87
88 Aws::String m_predictEndpoint;
89 bool m_predictEndpointHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace MachineLearning
94} // namespace Aws
PredictRequest & WithMLModelId(Aws::String &&value)
PredictRequest & WithPredictEndpoint(const Aws::String &value)
PredictRequest & WithPredictEndpoint(Aws::String &&value)
PredictRequest & AddRecord(const Aws::String &key, const Aws::String &value)
void SetRecord(const Aws::Map< Aws::String, Aws::String > &value)
PredictRequest & AddRecord(const char *key, const char *value)
PredictRequest & WithMLModelId(const char *value)
PredictRequest & WithRecord(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MACHINELEARNING_API Aws::String SerializePayload() const override
void SetPredictEndpoint(const Aws::String &value)
const Aws::String & GetMLModelId() const
AWS_MACHINELEARNING_API PredictRequest()
PredictRequest & AddRecord(const Aws::String &key, Aws::String &&value)
PredictRequest & WithRecord(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetRecord() const
AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PredictRequest & WithMLModelId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PredictRequest & WithPredictEndpoint(const char *value)
PredictRequest & AddRecord(Aws::String &&key, const char *value)
PredictRequest & AddRecord(const char *key, Aws::String &&value)
void SetMLModelId(const Aws::String &value)
PredictRequest & AddRecord(Aws::String &&key, const Aws::String &value)
void SetPredictEndpoint(Aws::String &&value)
const Aws::String & GetPredictEndpoint() const
PredictRequest & AddRecord(Aws::String &&key, Aws::String &&value)
void SetRecord(Aws::Map< Aws::String, Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String