@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()
Determines the number of records included in a single mini-batch.
|
String |
batchStrategyAsString()
Determines the number of records included in a single mini-batch.
|
static CreateTransformJobRequest.Builder |
builder() |
Map<String,String> |
environment()
The environment variables to set in the Docker container.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
maxConcurrentTransforms()
The maximum number of parallel requests that can be sent to each instance in a transform job.
|
Integer |
maxPayloadInMB()
The maximum payload size allowed, in MB.
|
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()
An array of key-value pairs.
|
CreateTransformJobRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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.
|
overrideConfiguration
copy
public 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. This is good for
algorithms that implement multiple workers on larger instances . The default value is 1
. To allow
Amazon SageMaker to determine the appropriate number for MaxConcurrentTransforms
, set the value to
0
.
1
. To allow Amazon SageMaker to determine the appropriate number for
MaxConcurrentTransforms
, set the value to 0
.public Integer maxPayloadInMB()
The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata). The value
in MaxPayloadInMB
must be greater or equal to the size of a single record. You can approximate the
size of a record by dividing the size of your dataset by the number of records. Then multiply this value by the
number of records you want in a mini-batch. We recommend to enter a slightly larger value than this to ensure the
records fit within the maximum payload size. 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 only works in supported algorithms. Currently, Amazon SageMaker built-in
algorithms do not support this feature.
MaxPayloadInMB
must be greater or equal to the size of a single record. You can
approximate the size of a record by dividing the size of your dataset by the number of records. Then
multiply this value by the number of records you want in a mini-batch. We recommend to enter a slightly
larger value than this to ensure the records fit within the maximum payload size. 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 only works in supported algorithms. Currently, Amazon
SageMaker built-in algorithms do not support this feature.
public BatchStrategy batchStrategy()
Determines the number of records included in a single mini-batch. SingleRecord
means only one record
is used per mini-batch. MultiRecord
means a mini-batch is set to contain as many records that can
fit within the MaxPayloadInMB
limit.
Batch transform will automatically split your input data into whatever payload size is specified if you set
SplitType
to Line
and BatchStrategy
to MultiRecord
. There's
no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset
are very large.
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()
.
SingleRecord
means only
one record is used per mini-batch. MultiRecord
means a mini-batch is set to contain as many
records that can fit within the MaxPayloadInMB
limit.
Batch transform will automatically split your input data into whatever payload size is specified if you
set SplitType
to Line
and BatchStrategy
to
MultiRecord
. There's no need to split the dataset into smaller files or to use larger
payload sizes unless the records in your dataset are very large.
BatchStrategy
public String batchStrategyAsString()
Determines the number of records included in a single mini-batch. SingleRecord
means only one record
is used per mini-batch. MultiRecord
means a mini-batch is set to contain as many records that can
fit within the MaxPayloadInMB
limit.
Batch transform will automatically split your input data into whatever payload size is specified if you set
SplitType
to Line
and BatchStrategy
to MultiRecord
. There's
no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset
are very large.
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()
.
SingleRecord
means only
one record is used per mini-batch. MultiRecord
means a mini-batch is set to contain as many
records that can fit within the MaxPayloadInMB
limit.
Batch transform will automatically split your input data into whatever payload size is specified if you
set SplitType
to Line
and BatchStrategy
to
MultiRecord
. There's no need to split the dataset into smaller files or to use larger
payload sizes unless the records in your dataset are very large.
BatchStrategy
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.
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 List<Tag> tags()
An array of key-value pairs. Adding tags is optional. 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.
public CreateTransformJobRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateTransformJobRequest.Builder,CreateTransformJobRequest>
toBuilder
in class SageMakerRequest
public static CreateTransformJobRequest.Builder builder()
public static Class<? extends CreateTransformJobRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.