public class CreateBatchPredictionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateBatchPrediction operation
.
Generates predictions for a group of observations. The observations to
process exist in one or more data files referenced by a
DataSource
. This operation creates a new
BatchPrediction
, and uses an MLModel
and
the data files referenced by the DataSource
as
information sources.
CreateBatchPrediction
is an asynchronous operation. In
response to CreateBatchPrediction
,
Amazon Machine Learning (Amazon ML) immediately returns and
sets the BatchPrediction
status to PENDING
.
After the BatchPrediction
completes, Amazon ML
sets the status to COMPLETED
.
You can poll for status updates by using the GetBatchPrediction
operation and checking the Status
parameter of the
result. After the COMPLETED
status appears, the results
are available in the location specified by the OutputUri
parameter.
NOOP
Constructor and Description |
---|
CreateBatchPredictionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateBatchPredictionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getBatchPredictionDataSourceId()
The ID of the
DataSource that points to the group of
observations to predict. |
String |
getBatchPredictionId()
A user-supplied ID that uniquely identifies the
BatchPrediction . |
String |
getBatchPredictionName()
A user-supplied name or description of the
BatchPrediction . |
String |
getMLModelId()
The ID of the
MLModel that will generate predictions for
the group of observations. |
String |
getOutputUri()
The location of an Amazon Simple Storage Service (Amazon S3) bucket or
directory to store the batch prediction results.
|
int |
hashCode() |
void |
setBatchPredictionDataSourceId(String batchPredictionDataSourceId)
The ID of the
DataSource that points to the group of
observations to predict. |
void |
setBatchPredictionId(String batchPredictionId)
A user-supplied ID that uniquely identifies the
BatchPrediction . |
void |
setBatchPredictionName(String batchPredictionName)
A user-supplied name or description of the
BatchPrediction . |
void |
setMLModelId(String mLModelId)
The ID of the
MLModel that will generate predictions for
the group of observations. |
void |
setOutputUri(String outputUri)
The location of an Amazon Simple Storage Service (Amazon S3) bucket or
directory to store the batch prediction results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateBatchPredictionRequest |
withBatchPredictionDataSourceId(String batchPredictionDataSourceId)
The ID of the
DataSource that points to the group of
observations to predict. |
CreateBatchPredictionRequest |
withBatchPredictionId(String batchPredictionId)
A user-supplied ID that uniquely identifies the
BatchPrediction . |
CreateBatchPredictionRequest |
withBatchPredictionName(String batchPredictionName)
A user-supplied name or description of the
BatchPrediction . |
CreateBatchPredictionRequest |
withMLModelId(String mLModelId)
The ID of the
MLModel that will generate predictions for
the group of observations. |
CreateBatchPredictionRequest |
withOutputUri(String outputUri)
The location of an Amazon Simple Storage Service (Amazon S3) bucket or
directory to store the batch prediction results.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getBatchPredictionId()
BatchPrediction
.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
BatchPrediction
.public void setBatchPredictionId(String batchPredictionId)
BatchPrediction
.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
batchPredictionId
- A user-supplied ID that uniquely identifies the
BatchPrediction
.public CreateBatchPredictionRequest withBatchPredictionId(String batchPredictionId)
BatchPrediction
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
batchPredictionId
- A user-supplied ID that uniquely identifies the
BatchPrediction
.public String getBatchPredictionName()
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.
Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.public void setBatchPredictionName(String batchPredictionName)
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.
Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$
batchPredictionName
- A user-supplied name or description of the
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.public CreateBatchPredictionRequest withBatchPredictionName(String batchPredictionName)
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$
batchPredictionName
- A user-supplied name or description of the
BatchPrediction
. BatchPredictionName
can
only use the UTF-8 character set.public String getMLModelId()
MLModel
that will generate predictions for
the group of observations.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
MLModel
that will generate predictions for
the group of observations.public void setMLModelId(String mLModelId)
MLModel
that will generate predictions for
the group of observations.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
- The ID of the MLModel
that will generate predictions for
the group of observations.public CreateBatchPredictionRequest withMLModelId(String mLModelId)
MLModel
that will generate predictions for
the group of observations.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
mLModelId
- The ID of the MLModel
that will generate predictions for
the group of observations.public String getBatchPredictionDataSourceId()
DataSource
that points to the group of
observations to predict.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
DataSource
that points to the group of
observations to predict.public void setBatchPredictionDataSourceId(String batchPredictionDataSourceId)
DataSource
that points to the group of
observations to predict.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
batchPredictionDataSourceId
- The ID of the DataSource
that points to the group of
observations to predict.public CreateBatchPredictionRequest withBatchPredictionDataSourceId(String batchPredictionDataSourceId)
DataSource
that points to the group of
observations to predict.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+
batchPredictionDataSourceId
- The ID of the DataSource
that points to the group of
observations to predict.public String getOutputUri()
Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?
Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
public void setOutputUri(String outputUri)
Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?
outputUri
- The location of an Amazon Simple Storage Service (Amazon S3) bucket or
directory to store the batch prediction results. The following
substrings are not allowed in the s3 key portion of the "outputURI"
field: ':', '//', '/./', '/../'. Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
public CreateBatchPredictionRequest withOutputUri(String outputUri)
Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?
outputUri
- The location of an Amazon Simple Storage Service (Amazon S3) bucket or
directory to store the batch prediction results. The following
substrings are not allowed in the s3 key portion of the "outputURI"
field: ':', '//', '/./', '/../'. Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateBatchPredictionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.