public class PredictRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.String key,
java.lang.String value)
A map of variable name-value pairs that represent an observation.
|
PredictRequest |
clearRecordEntries()
Removes all the entries added into Record.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMLModelId()
A unique identifier of the
MLModel . |
java.lang.String |
getPredictEndpoint()
Returns the value of the predictEndpoint property for this object.
|
java.util.Map<java.lang.String,java.lang.String> |
getRecord()
A map of variable name-value pairs that represent an observation.
|
int |
hashCode() |
void |
setMLModelId(java.lang.String mLModelId)
A unique identifier of the
MLModel . |
void |
setPredictEndpoint(java.lang.String predictEndpoint)
Sets the value of predictEndpoint
|
void |
setRecord(java.util.Map<java.lang.String,java.lang.String> record)
A map of variable name-value pairs that represent an observation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictRequest |
withMLModelId(java.lang.String mLModelId)
A unique identifier of the
MLModel . |
PredictRequest |
withPredictEndpoint(java.lang.String predictEndpoint)
Sets the value of the predictEndpoint property for this object.
|
PredictRequest |
withRecord(java.util.Map<java.lang.String,java.lang.String> record)
A map of variable name-value pairs that represent an observation.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String getPredictEndpoint()
Constraints:
Length: - 2048
Pattern: https://[a-zA-Z0-9-.]*\.amazon(aws)?\.com[/]?
public void setPredictEndpoint(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.