public class PredictRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Predict operation.
Generates a prediction for the observation using the specified
MLModel .
NOTE: Note Not all response parameters will be populated because this is dependent on the type of requested model.
NOOP| 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.
|
PredictRequest |
clone()
Creates a shallow clone of this request.
|
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 the PredictEndpoint property for this object.
|
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.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getMLModelId()
MLModel.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
MLModel.public void setMLModelId(String mLModelId)
MLModel.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId - A unique identifier of the MLModel.public PredictRequest withMLModelId(String mLModelId)
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()
public void setRecord(Map<String,String> record)
record - A map of variable name-value pairs that represent an observation.public PredictRequest withRecord(Map<String,String> record)
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)
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: 0 - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?
public void setPredictEndpoint(String predictEndpoint)
Constraints:
Length: 0 - 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: 0 - 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 ObjectObject.toString()public PredictRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.