public class CreateEndpointRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a model-specific endpoint for synchronous inference for a previously trained custom model
Constructor and Description |
---|
CreateEndpointRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
An idempotency token provided by the customer.
|
java.lang.Integer |
getDesiredInferenceUnits()
The desired number of inference units to be used by the model using this
endpoint.
|
java.lang.String |
getEndpointName()
This is the descriptive suffix that becomes part of the
EndpointArn used for all subsequent requests to this
resource. |
java.lang.String |
getModelArn()
The Amazon Resource Number (ARN) of the model to which the endpoint will
be attached.
|
java.util.List<Tag> |
getTags()
Tags associated with the endpoint being created.
|
int |
hashCode() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
An idempotency token provided by the customer.
|
void |
setDesiredInferenceUnits(java.lang.Integer desiredInferenceUnits)
The desired number of inference units to be used by the model using this
endpoint.
|
void |
setEndpointName(java.lang.String endpointName)
This is the descriptive suffix that becomes part of the
EndpointArn used for all subsequent requests to this
resource. |
void |
setModelArn(java.lang.String modelArn)
The Amazon Resource Number (ARN) of the model to which the endpoint will
be attached.
|
void |
setTags(java.util.Collection<Tag> tags)
Tags associated with the endpoint being created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateEndpointRequest |
withClientRequestToken(java.lang.String clientRequestToken)
An idempotency token provided by the customer.
|
CreateEndpointRequest |
withDesiredInferenceUnits(java.lang.Integer desiredInferenceUnits)
The desired number of inference units to be used by the model using this
endpoint.
|
CreateEndpointRequest |
withEndpointName(java.lang.String endpointName)
This is the descriptive suffix that becomes part of the
EndpointArn used for all subsequent requests to this
resource. |
CreateEndpointRequest |
withModelArn(java.lang.String modelArn)
The Amazon Resource Number (ARN) of the model to which the endpoint will
be attached.
|
CreateEndpointRequest |
withTags(java.util.Collection<Tag> tags)
Tags associated with the endpoint being created.
|
CreateEndpointRequest |
withTags(Tag... tags)
Tags associated with the endpoint being created.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getEndpointName()
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to this
resource.
Constraints:
Length: - 40
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to this
resource.
public void setEndpointName(java.lang.String endpointName)
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to this
resource.
Constraints:
Length: - 40
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
endpointName
-
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to
this resource.
public CreateEndpointRequest withEndpointName(java.lang.String endpointName)
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to this
resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 40
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
endpointName
-
This is the descriptive suffix that becomes part of the
EndpointArn
used for all subsequent requests to
this resource.
public java.lang.String getModelArn()
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
-classifier|entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
public void setModelArn(java.lang.String modelArn)
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
-classifier|entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
modelArn
- The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
public CreateEndpointRequest withModelArn(java.lang.String modelArn)
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
-classifier|entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
modelArn
- The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
public java.lang.Integer getDesiredInferenceUnits()
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
Constraints:
Range: 1 -
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
public void setDesiredInferenceUnits(java.lang.Integer desiredInferenceUnits)
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
Constraints:
Range: 1 -
desiredInferenceUnits
- The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
public CreateEndpointRequest withDesiredInferenceUnits(java.lang.Integer desiredInferenceUnits)
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
desiredInferenceUnits
- The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
public java.lang.String getClientRequestToken()
An idempotency token provided by the customer. If this token matches a
previous endpoint creation request, Amazon Comprehend will not return a
ResourceInUseException
.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
An idempotency token provided by the customer. If this token
matches a previous endpoint creation request, Amazon Comprehend
will not return a ResourceInUseException
.
public void setClientRequestToken(java.lang.String clientRequestToken)
An idempotency token provided by the customer. If this token matches a
previous endpoint creation request, Amazon Comprehend will not return a
ResourceInUseException
.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
-
An idempotency token provided by the customer. If this token
matches a previous endpoint creation request, Amazon
Comprehend will not return a
ResourceInUseException
.
public CreateEndpointRequest withClientRequestToken(java.lang.String clientRequestToken)
An idempotency token provided by the customer. If this token matches a
previous endpoint creation request, Amazon Comprehend will not return a
ResourceInUseException
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
-
An idempotency token provided by the customer. If this token
matches a previous endpoint creation request, Amazon
Comprehend will not return a
ResourceInUseException
.
public java.util.List<Tag> getTags()
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
public void setTags(java.util.Collection<Tag> tags)
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
tags
- Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
public CreateEndpointRequest withTags(Tag... tags)
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
Returns a reference to this object so that method calls can be chained together.
tags
- Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
public CreateEndpointRequest withTags(java.util.Collection<Tag> tags)
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
Returns a reference to this object so that method calls can be chained together.
tags
- Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
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.