Class PredictRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.machinelearning.model.PredictRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class PredictRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PredictRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredictRequest
addRecordEntry(String key, String value)
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 theMLModel
.String
getPredictEndpoint()
Map<String,String>
getRecord()
int
hashCode()
void
setMLModelId(String mLModelId)
A unique identifier of theMLModel
.void
setPredictEndpoint(String predictEndpoint)
void
setRecord(Map<String,String> record)
String
toString()
Returns a string representation of this object; useful for testing and debugging.PredictRequest
withMLModelId(String mLModelId)
A unique identifier of theMLModel
.PredictRequest
withPredictEndpoint(String predictEndpoint)
PredictRequest
withRecord(Map<String,String> record)
-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setMLModelId
public void setMLModelId(String mLModelId)
A unique identifier of the
MLModel
.- Parameters:
mLModelId
- A unique identifier of theMLModel
.
-
getMLModelId
public String getMLModelId()
A unique identifier of the
MLModel
.- Returns:
- A unique identifier of the
MLModel
.
-
withMLModelId
public PredictRequest withMLModelId(String mLModelId)
A unique identifier of the
MLModel
.- Parameters:
mLModelId
- A unique identifier of theMLModel
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecord
public PredictRequest withRecord(Map<String,String> record)
- Parameters:
record
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addRecordEntry
public PredictRequest addRecordEntry(String key, String value)
-
clearRecordEntries
public PredictRequest clearRecordEntries()
Removes all the entries added into Record. <p> Returns a reference to this object so that method calls can be chained together.
-
setPredictEndpoint
public void setPredictEndpoint(String predictEndpoint)
- Parameters:
predictEndpoint
-
-
getPredictEndpoint
public String getPredictEndpoint()
- Returns:
-
withPredictEndpoint
public PredictRequest withPredictEndpoint(String predictEndpoint)
- Parameters:
predictEndpoint
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PredictRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-