public class CreateProjectVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a new version of a model and begins training. Models are managed as
part of an Amazon Rekognition Custom Labels project. You can specify one
training dataset and one testing dataset. The response from
CreateProjectVersion
is an Amazon Resource Name (ARN) for the
version of the model.
Training takes a while to complete. You can get the current status by calling DescribeProjectVersions.
Once training has successfully completed, call DescribeProjectVersions to get the training results and evaluate the model.
After evaluating the model, you start the model by calling StartProjectVersion.
This operation requires permissions to perform the
rekognition:CreateProjectVersion
action.
Constructor and Description |
---|
CreateProjectVersionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
OutputConfig |
getOutputConfig()
The Amazon S3 location to store the results of training.
|
java.lang.String |
getProjectArn()
The ARN of the Amazon Rekognition Custom Labels project that manages the
model that you want to train.
|
TestingData |
getTestingData()
The dataset to use for testing.
|
TrainingData |
getTrainingData()
The dataset to use for training.
|
java.lang.String |
getVersionName()
A name for the version of the model.
|
int |
hashCode() |
void |
setOutputConfig(OutputConfig outputConfig)
The Amazon S3 location to store the results of training.
|
void |
setProjectArn(java.lang.String projectArn)
The ARN of the Amazon Rekognition Custom Labels project that manages the
model that you want to train.
|
void |
setTestingData(TestingData testingData)
The dataset to use for testing.
|
void |
setTrainingData(TrainingData trainingData)
The dataset to use for training.
|
void |
setVersionName(java.lang.String versionName)
A name for the version of the model.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateProjectVersionRequest |
withOutputConfig(OutputConfig outputConfig)
The Amazon S3 location to store the results of training.
|
CreateProjectVersionRequest |
withProjectArn(java.lang.String projectArn)
The ARN of the Amazon Rekognition Custom Labels project that manages the
model that you want to train.
|
CreateProjectVersionRequest |
withTestingData(TestingData testingData)
The dataset to use for testing.
|
CreateProjectVersionRequest |
withTrainingData(TrainingData trainingData)
The dataset to use for training.
|
CreateProjectVersionRequest |
withVersionName(java.lang.String versionName)
A name for the version of the model.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getProjectArn()
The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
Constraints:
Length: 20 - 2048
Pattern:
(^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
-Z0-9_.\-]{1,255}\/[0-9]+$)
The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
public void setProjectArn(java.lang.String projectArn)
The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
Constraints:
Length: 20 - 2048
Pattern:
(^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
-Z0-9_.\-]{1,255}\/[0-9]+$)
projectArn
- The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
public CreateProjectVersionRequest withProjectArn(java.lang.String projectArn)
The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern:
(^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
-Z0-9_.\-]{1,255}\/[0-9]+$)
projectArn
- The ARN of the Amazon Rekognition Custom Labels project that manages the model that you want to train.
public java.lang.String getVersionName()
A name for the version of the model. This value must be unique.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
A name for the version of the model. This value must be unique.
public void setVersionName(java.lang.String versionName)
A name for the version of the model. This value must be unique.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
versionName
- A name for the version of the model. This value must be unique.
public CreateProjectVersionRequest withVersionName(java.lang.String versionName)
A name for the version of the model. This value must be unique.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
versionName
- A name for the version of the model. This value must be unique.
public OutputConfig getOutputConfig()
The Amazon S3 location to store the results of training.
The Amazon S3 location to store the results of training.
public void setOutputConfig(OutputConfig outputConfig)
The Amazon S3 location to store the results of training.
outputConfig
- The Amazon S3 location to store the results of training.
public CreateProjectVersionRequest withOutputConfig(OutputConfig outputConfig)
The Amazon S3 location to store the results of training.
Returns a reference to this object so that method calls can be chained together.
outputConfig
- The Amazon S3 location to store the results of training.
public TrainingData getTrainingData()
The dataset to use for training.
The dataset to use for training.
public void setTrainingData(TrainingData trainingData)
The dataset to use for training.
trainingData
- The dataset to use for training.
public CreateProjectVersionRequest withTrainingData(TrainingData trainingData)
The dataset to use for training.
Returns a reference to this object so that method calls can be chained together.
trainingData
- The dataset to use for training.
public TestingData getTestingData()
The dataset to use for testing.
The dataset to use for testing.
public void setTestingData(TestingData testingData)
The dataset to use for testing.
testingData
- The dataset to use for testing.
public CreateProjectVersionRequest withTestingData(TestingData testingData)
The dataset to use for testing.
Returns a reference to this object so that method calls can be chained together.
testingData
- The dataset to use for testing.
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.