public class PredictRequest extends AmazonWebServiceRequest implements Serializable
Predict operation
.
A realtime operation that generates prediction for the observation using given ML Model Id
Note that not all response fields will be populated as this is dependent on the type of requested model
Constructor and Description |
---|
PredictRequest() |
Modifier and Type | Method and Description |
---|---|
PredictRequest |
addRecordEntry(String key,
String value)
Map of variable name-value pairs representing an observation.
|
PredictRequest |
clearRecordEntries()
Removes all the entries added into Record.
|
boolean |
equals(Object obj) |
String |
getMLModelId()
Unique identifier of the predictor.
|
String |
getPredictEndpoint()
Returns the value of the PredictEndpoint property for this object.
|
Map<String,String> |
getRecord()
Map of variable name-value pairs representing an observation.
|
int |
hashCode() |
void |
setMLModelId(String mLModelId)
Unique identifier of the predictor.
|
void |
setPredictEndpoint(String predictEndpoint)
Sets the value of the PredictEndpoint property for this object.
|
void |
setRecord(Map<String,String> record)
Map of variable name-value pairs representing an observation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictRequest |
withMLModelId(String mLModelId)
Unique identifier of the predictor.
|
PredictRequest |
withPredictEndpoint(String predictEndpoint)
Sets the value of the PredictEndpoint property for this object.
|
PredictRequest |
withRecord(Map<String,String> record)
Map of variable name-value pairs representing an observation.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getMLModelId()
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
public void setMLModelId(String mLModelId)
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
- Unique identifier of the predictor.public PredictRequest withMLModelId(String mLModelId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
- Unique identifier of the predictor.public Map<String,String> getRecord()
public void setRecord(Map<String,String> record)
record
- Map of variable name-value pairs representing an observation.public PredictRequest withRecord(Map<String,String> record)
Returns a reference to this object so that method calls can be chained together.
record
- Map of variable name-value pairs representing 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 Object
Object.toString()
Copyright © 2015. All rights reserved.