@Generated(value="software.amazon.awssdk:codegen") public final class CreateTransformJobRequest extends SageMakerRequest implements ToCopyableBuilder<CreateTransformJobRequest.Builder,CreateTransformJobRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateTransformJobRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
BatchStrategy |
batchStrategy()
Specifies the number of records to include in a mini-batch for an HTTP inference request.
|
String |
batchStrategyAsString()
Specifies the number of records to include in a mini-batch for an HTTP inference request.
|
static CreateTransformJobRequest.Builder |
builder() |
DataProcessing |
dataProcessing()
The data structure used to specify the data to be used for inference in a batch transform job and to associate
the data that is relevant to the prediction results in the output.
|
Map<String,String> |
environment()
The environment variables to set in the Docker container.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExperimentConfig |
experimentConfig()
Returns the value of the ExperimentConfig property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEnvironment()
Returns true if the Environment property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Integer |
maxConcurrentTransforms()
The maximum number of parallel requests that can be sent to each instance in a transform job.
|
Integer |
maxPayloadInMB()
The maximum allowed size of the payload, in MB.
|
ModelClientConfig |
modelClientConfig()
Configures the timeout and maximum number of retries for processing a transform job invocation.
|
String |
modelName()
The name of the model that you want to use for the transform job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateTransformJobRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
(Optional) An array of key-value pairs.
|
CreateTransformJobRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TransformInput |
transformInput()
Describes the input source and the way the transform job consumes it.
|
String |
transformJobName()
The name of the transform job.
|
TransformOutput |
transformOutput()
Describes the results of the transform job.
|
TransformResources |
transformResources()
Describes the resources, including ML instance types and ML instance count, to use for the transform job.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String transformJobName()
The name of the transform job. The name must be unique within an AWS Region in an AWS account.
public String modelName()
The name of the model that you want to use for the transform job. ModelName must be the name of an
existing Amazon SageMaker model within an AWS Region in an AWS account.
ModelName must be the name
of an existing Amazon SageMaker model within an AWS Region in an AWS account.public Integer maxConcurrentTransforms()
The maximum number of parallel requests that can be sent to each instance in a transform job. If
MaxConcurrentTransforms is set to 0 or left unset, Amazon SageMaker checks the optional
execution-parameters to determine the settings for your chosen algorithm. If the execution-parameters endpoint is
not enabled, the default value is 1. For more information on execution-parameters, see How Containers Serve Requests. For built-in algorithms, you don't need to set a value for
MaxConcurrentTransforms.
MaxConcurrentTransforms is set to 0 or left unset, Amazon SageMaker checks the
optional execution-parameters to determine the settings for your chosen algorithm. If the
execution-parameters endpoint is not enabled, the default value is 1. For more information
on execution-parameters, see How Containers Serve Requests. For built-in algorithms, you don't need to set a value for
MaxConcurrentTransforms.public ModelClientConfig modelClientConfig()
Configures the timeout and maximum number of retries for processing a transform job invocation.
public Integer maxPayloadInMB()
The maximum allowed size of the payload, in MB. A payload is the data portion of a record (without
metadata). The value in MaxPayloadInMB must be greater than, or equal to, the size of a single
record. To estimate the size of a record in MB, divide the size of your dataset by the number of records. To
ensure that the records fit within the maximum payload size, we recommend using a slightly larger value. The
default value is 6 MB.
For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, set the
value to 0. This feature works only in supported algorithms. Currently, Amazon SageMaker built-in
algorithms do not support HTTP chunked encoding.
MaxPayloadInMB must be greater than, or equal to, the size of a
single record. To estimate the size of a record in MB, divide the size of your dataset by the number of
records. To ensure that the records fit within the maximum payload size, we recommend using a slightly
larger value. The default value is 6 MB.
For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding,
set the value to 0. This feature works only in supported algorithms. Currently, Amazon
SageMaker built-in algorithms do not support HTTP chunked encoding.
public BatchStrategy batchStrategy()
Specifies the number of records to include in a mini-batch for an HTTP inference request. A record is a single unit of input data that inference can be made on. For example, a single line in a CSV file is a record.
To enable the batch strategy, you must set the SplitType property to Line,
RecordIO, or TFRecord.
To use only one record when making an HTTP invocation request to a container, set BatchStrategy to
SingleRecord and SplitType to Line.
To fit as many records in a mini-batch as can fit within the MaxPayloadInMB limit, set
BatchStrategy to MultiRecord and SplitType to Line.
If the service returns an enum value that is not available in the current SDK version, batchStrategy
will return BatchStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
batchStrategyAsString().
To enable the batch strategy, you must set the SplitType property to Line,
RecordIO, or TFRecord.
To use only one record when making an HTTP invocation request to a container, set
BatchStrategy to SingleRecord and SplitType to Line.
To fit as many records in a mini-batch as can fit within the MaxPayloadInMB limit, set
BatchStrategy to MultiRecord and SplitType to Line.
BatchStrategypublic String batchStrategyAsString()
Specifies the number of records to include in a mini-batch for an HTTP inference request. A record is a single unit of input data that inference can be made on. For example, a single line in a CSV file is a record.
To enable the batch strategy, you must set the SplitType property to Line,
RecordIO, or TFRecord.
To use only one record when making an HTTP invocation request to a container, set BatchStrategy to
SingleRecord and SplitType to Line.
To fit as many records in a mini-batch as can fit within the MaxPayloadInMB limit, set
BatchStrategy to MultiRecord and SplitType to Line.
If the service returns an enum value that is not available in the current SDK version, batchStrategy
will return BatchStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
batchStrategyAsString().
To enable the batch strategy, you must set the SplitType property to Line,
RecordIO, or TFRecord.
To use only one record when making an HTTP invocation request to a container, set
BatchStrategy to SingleRecord and SplitType to Line.
To fit as many records in a mini-batch as can fit within the MaxPayloadInMB limit, set
BatchStrategy to MultiRecord and SplitType to Line.
BatchStrategypublic boolean hasEnvironment()
public Map<String,String> environment()
The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEnvironment() to see if a value was sent in this field.
public TransformInput transformInput()
Describes the input source and the way the transform job consumes it.
public TransformOutput transformOutput()
Describes the results of the transform job.
public TransformResources transformResources()
Describes the resources, including ML instance types and ML instance count, to use for the transform job.
public DataProcessing dataProcessing()
The data structure used to specify the data to be used for inference in a batch transform job and to associate the data that is relevant to the prediction results in the output. The input filter provided allows you to exclude input data that is not needed for inference in a batch transform job. The output filter provided allows you to include input data relevant to interpreting the predictions in the output from the job. For more information, see Associate Prediction Results with their Corresponding Input Records.
public boolean hasTags()
public List<Tag> tags()
(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public ExperimentConfig experimentConfig()
public CreateTransformJobRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateTransformJobRequest.Builder,CreateTransformJobRequest>toBuilder in class SageMakerRequestpublic static CreateTransformJobRequest.Builder builder()
public static Class<? extends CreateTransformJobRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.