public class PredictRequest extends AmazonWebServiceRequest implements Serializable
Generates a prediction for the observation using the specified
ML Model
.
Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.
Constructor and Description |
---|
PredictRequest() |
Modifier and Type | Method and Description |
---|---|
PredictRequest |
addRecordEntry(String key,
String value)
A map of variable name-value pairs that represent an observation.
|
PredictRequest |
clearRecordEntries()
Removes all the entries added into Record.
|
boolean |
equals(Object obj) |
String |
getMLModelId()
A unique identifier of the
MLModel . |
String |
getPredictEndpoint()
Returns the value of the predictEndpoint property for this object.
|
Map<String,String> |
getRecord()
A map of variable name-value pairs that represent an observation.
|
int |
hashCode() |
void |
setMLModelId(String mLModelId)
A unique identifier of the
MLModel . |
void |
setPredictEndpoint(String predictEndpoint)
Sets the value of predictEndpoint
|
void |
setRecord(Map<String,String> record)
A map of variable name-value pairs that represent an observation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictRequest |
withMLModelId(String mLModelId)
A unique identifier of the
MLModel . |
PredictRequest |
withPredictEndpoint(String predictEndpoint)
Sets the value of the predictEndpoint property for this object.
|
PredictRequest |
withRecord(Map<String,String> record)
A map of variable name-value pairs that represent an observation.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getMLModelId()
A unique identifier of the MLModel
.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
A unique identifier of the MLModel
.
public void setMLModelId(String mLModelId)
A unique identifier of the MLModel
.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
-
A unique identifier of the MLModel
.
public PredictRequest withMLModelId(String mLModelId)
A unique identifier of the MLModel
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
-
A unique identifier of the MLModel
.
public Map<String,String> getRecord()
A map of variable name-value pairs that represent an observation.
A map of variable name-value pairs that represent an observation.
public void setRecord(Map<String,String> record)
A map of variable name-value pairs that represent an observation.
record
- A map of variable name-value pairs that represent an observation.
public PredictRequest withRecord(Map<String,String> record)
A map of variable name-value pairs that represent an observation.
Returns a reference to this object so that method calls can be chained together.
record
- A map of variable name-value pairs that represent an observation.
public PredictRequest addRecordEntry(String key, String value)
A map of variable name-value pairs that represent an observation.
The method adds a new key-value pair into Record parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Record.value
- The corresponding value of the entry to be added into
Record.public PredictRequest clearRecordEntries()
Returns a reference to this object so that method calls can be chained together.
public String getPredictEndpoint()
Constraints:
Length: - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?
public void setPredictEndpoint(String predictEndpoint)
Constraints:
Length: - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?
predictEndpoint
- The new value for the predictEndpoint property for
this object.public PredictRequest withPredictEndpoint(String predictEndpoint)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?
predictEndpoint
- The new value for the predictEndpoint property for
this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.