public class StartProjectVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts the running of the version of a model. Starting a model takes a while to complete. To check the current state of the model, use DescribeProjectVersions.
Once the model is running, you can detect custom labels in new images by calling DetectCustomLabels.
You are charged for the amount of time that the model is running. To stop a running model, call StopProjectVersion.
This operation requires permissions to perform the
rekognition:StartProjectVersion
action.
Constructor and Description |
---|
StartProjectVersionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getMinInferenceUnits()
The minimum number of inference units to use.
|
java.lang.String |
getProjectVersionArn()
The Amazon Resource Name(ARN) of the model version that you want to
start.
|
int |
hashCode() |
void |
setMinInferenceUnits(java.lang.Integer minInferenceUnits)
The minimum number of inference units to use.
|
void |
setProjectVersionArn(java.lang.String projectVersionArn)
The Amazon Resource Name(ARN) of the model version that you want to
start.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartProjectVersionRequest |
withMinInferenceUnits(java.lang.Integer minInferenceUnits)
The minimum number of inference units to use.
|
StartProjectVersionRequest |
withProjectVersionArn(java.lang.String projectVersionArn)
The Amazon Resource Name(ARN) of the model version that you want to
start.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getProjectVersionArn()
The Amazon Resource Name(ARN) of the model version that you want to start.
Constraints:
Length: 20 - 2048
Pattern:
(^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
-Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
The Amazon Resource Name(ARN) of the model version that you want to start.
public void setProjectVersionArn(java.lang.String projectVersionArn)
The Amazon Resource Name(ARN) of the model version that you want to start.
Constraints:
Length: 20 - 2048
Pattern:
(^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
-Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
projectVersionArn
- The Amazon Resource Name(ARN) of the model version that you want to start.
public StartProjectVersionRequest withProjectVersionArn(java.lang.String projectVersionArn)
The Amazon Resource Name(ARN) of the model version that you want to start.
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}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
projectVersionArn
- The Amazon Resource Name(ARN) of the model version that you want to start.
public java.lang.Integer getMinInferenceUnits()
The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
Constraints:
Range: 1 -
The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
public void setMinInferenceUnits(java.lang.Integer minInferenceUnits)
The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
Constraints:
Range: 1 -
minInferenceUnits
- The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
public StartProjectVersionRequest withMinInferenceUnits(java.lang.Integer minInferenceUnits)
The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
minInferenceUnits
- The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
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.