AWS SDK for C++  0.12.9
AWS SDK for C++
PredictRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace MachineLearning
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
42 
46  inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
47 
51  inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
52 
56  inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
57 
61  inline PredictRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
62 
66  inline PredictRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(value); return *this;}
67 
71  inline PredictRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
72 
73 
74  inline const Aws::Map<Aws::String, Aws::String>& GetRecord() const{ return m_record; }
75 
76 
77  inline void SetRecord(const Aws::Map<Aws::String, Aws::String>& value) { m_recordHasBeenSet = true; m_record = value; }
78 
79 
80  inline void SetRecord(Aws::Map<Aws::String, Aws::String>&& value) { m_recordHasBeenSet = true; m_record = value; }
81 
82 
83  inline PredictRequest& WithRecord(const Aws::Map<Aws::String, Aws::String>& value) { SetRecord(value); return *this;}
84 
85 
86  inline PredictRequest& WithRecord(Aws::Map<Aws::String, Aws::String>&& value) { SetRecord(value); return *this;}
87 
88 
89  inline PredictRequest& AddRecord(const Aws::String& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
90 
91 
92  inline PredictRequest& AddRecord(Aws::String&& key, const Aws::String& value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
93 
94 
95  inline PredictRequest& AddRecord(const Aws::String& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
96 
97 
98  inline PredictRequest& AddRecord(Aws::String&& key, Aws::String&& value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
99 
100 
101  inline PredictRequest& AddRecord(const char* key, Aws::String&& value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
102 
103 
104  inline PredictRequest& AddRecord(Aws::String&& key, const char* value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
105 
106 
107  inline PredictRequest& AddRecord(const char* key, const char* value) { m_recordHasBeenSet = true; m_record[key] = value; return *this; }
108 
109 
110  inline const Aws::String& GetPredictEndpoint() const{ return m_predictEndpoint; }
111 
112 
113  inline void SetPredictEndpoint(const Aws::String& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = value; }
114 
115 
116  inline void SetPredictEndpoint(Aws::String&& value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint = value; }
117 
118 
119  inline void SetPredictEndpoint(const char* value) { m_predictEndpointHasBeenSet = true; m_predictEndpoint.assign(value); }
120 
121 
122  inline PredictRequest& WithPredictEndpoint(const Aws::String& value) { SetPredictEndpoint(value); return *this;}
123 
124 
125  inline PredictRequest& WithPredictEndpoint(Aws::String&& value) { SetPredictEndpoint(value); return *this;}
126 
127 
128  inline PredictRequest& WithPredictEndpoint(const char* value) { SetPredictEndpoint(value); return *this;}
129 
130  private:
131  Aws::String m_mLModelId;
132  bool m_mLModelIdHasBeenSet;
134  bool m_recordHasBeenSet;
135  Aws::String m_predictEndpoint;
136  bool m_predictEndpointHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace MachineLearning
141 } // namespace Aws
const Aws::String & GetMLModelId() const
void SetRecord(Aws::Map< Aws::String, Aws::String > &&value)
PredictRequest & WithMLModelId(const Aws::String &value)
PredictRequest & AddRecord(const char *key, Aws::String &&value)
PredictRequest & WithPredictEndpoint(const char *value)
PredictRequest & WithMLModelId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetPredictEndpoint(Aws::String &&value)
PredictRequest & WithPredictEndpoint(const Aws::String &value)
void SetPredictEndpoint(const Aws::String &value)
PredictRequest & AddRecord(Aws::String &&key, const Aws::String &value)
PredictRequest & WithMLModelId(Aws::String &&value)
PredictRequest & WithRecord(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetRecord() const
PredictRequest & AddRecord(const char *key, const char *value)
PredictRequest & AddRecord(Aws::String &&key, const char *value)
PredictRequest & AddRecord(Aws::String &&key, Aws::String &&value)
PredictRequest & AddRecord(const Aws::String &key, Aws::String &&value)
void SetRecord(const Aws::Map< Aws::String, Aws::String > &value)
void SetMLModelId(const Aws::String &value)
PredictRequest & AddRecord(const Aws::String &key, const Aws::String &value)
PredictRequest & WithRecord(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PredictRequest & WithPredictEndpoint(Aws::String &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
const Aws::String & GetPredictEndpoint() const