Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.sagemaker.model.TransformJob Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating
with Amazon SageMaker Service
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.sagemaker.model;
import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* A batch transform job. For information about SageMaker batch transform, see Use Batch Transform .
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class TransformJob implements SdkPojo, Serializable, ToCopyableBuilder {
private static final SdkField TRANSFORM_JOB_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("TransformJobName").getter(getter(TransformJob::transformJobName))
.setter(setter(Builder::transformJobName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformJobName").build()).build();
private static final SdkField TRANSFORM_JOB_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("TransformJobArn").getter(getter(TransformJob::transformJobArn)).setter(setter(Builder::transformJobArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformJobArn").build()).build();
private static final SdkField TRANSFORM_JOB_STATUS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("TransformJobStatus").getter(getter(TransformJob::transformJobStatusAsString))
.setter(setter(Builder::transformJobStatus))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformJobStatus").build())
.build();
private static final SdkField FAILURE_REASON_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("FailureReason").getter(getter(TransformJob::failureReason)).setter(setter(Builder::failureReason))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FailureReason").build()).build();
private static final SdkField MODEL_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ModelName").getter(getter(TransformJob::modelName)).setter(setter(Builder::modelName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ModelName").build()).build();
private static final SdkField MAX_CONCURRENT_TRANSFORMS_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MaxConcurrentTransforms").getter(getter(TransformJob::maxConcurrentTransforms))
.setter(setter(Builder::maxConcurrentTransforms))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxConcurrentTransforms").build())
.build();
private static final SdkField MODEL_CLIENT_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("ModelClientConfig")
.getter(getter(TransformJob::modelClientConfig)).setter(setter(Builder::modelClientConfig))
.constructor(ModelClientConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ModelClientConfig").build()).build();
private static final SdkField MAX_PAYLOAD_IN_MB_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("MaxPayloadInMB").getter(getter(TransformJob::maxPayloadInMB)).setter(setter(Builder::maxPayloadInMB))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MaxPayloadInMB").build()).build();
private static final SdkField BATCH_STRATEGY_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("BatchStrategy").getter(getter(TransformJob::batchStrategyAsString))
.setter(setter(Builder::batchStrategy))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("BatchStrategy").build()).build();
private static final SdkField> ENVIRONMENT_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("Environment")
.getter(getter(TransformJob::environment))
.setter(setter(Builder::environment))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Environment").build(),
MapTrait.builder()
.keyLocationName("key")
.valueLocationName("value")
.valueFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("value").build()).build()).build()).build();
private static final SdkField TRANSFORM_INPUT_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("TransformInput")
.getter(getter(TransformJob::transformInput)).setter(setter(Builder::transformInput))
.constructor(TransformInput::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformInput").build()).build();
private static final SdkField TRANSFORM_OUTPUT_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("TransformOutput")
.getter(getter(TransformJob::transformOutput)).setter(setter(Builder::transformOutput))
.constructor(TransformOutput::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformOutput").build()).build();
private static final SdkField DATA_CAPTURE_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("DataCaptureConfig")
.getter(getter(TransformJob::dataCaptureConfig)).setter(setter(Builder::dataCaptureConfig))
.constructor(BatchDataCaptureConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataCaptureConfig").build()).build();
private static final SdkField TRANSFORM_RESOURCES_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("TransformResources")
.getter(getter(TransformJob::transformResources)).setter(setter(Builder::transformResources))
.constructor(TransformResources::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformResources").build())
.build();
private static final SdkField CREATION_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("CreationTime").getter(getter(TransformJob::creationTime)).setter(setter(Builder::creationTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationTime").build()).build();
private static final SdkField TRANSFORM_START_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("TransformStartTime").getter(getter(TransformJob::transformStartTime))
.setter(setter(Builder::transformStartTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformStartTime").build())
.build();
private static final SdkField TRANSFORM_END_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("TransformEndTime").getter(getter(TransformJob::transformEndTime))
.setter(setter(Builder::transformEndTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TransformEndTime").build()).build();
private static final SdkField LABELING_JOB_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LabelingJobArn").getter(getter(TransformJob::labelingJobArn)).setter(setter(Builder::labelingJobArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LabelingJobArn").build()).build();
private static final SdkField AUTO_ML_JOB_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("AutoMLJobArn").getter(getter(TransformJob::autoMLJobArn)).setter(setter(Builder::autoMLJobArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AutoMLJobArn").build()).build();
private static final SdkField DATA_PROCESSING_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("DataProcessing")
.getter(getter(TransformJob::dataProcessing)).setter(setter(Builder::dataProcessing))
.constructor(DataProcessing::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataProcessing").build()).build();
private static final SdkField EXPERIMENT_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("ExperimentConfig")
.getter(getter(TransformJob::experimentConfig)).setter(setter(Builder::experimentConfig))
.constructor(ExperimentConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExperimentConfig").build()).build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("Tags")
.getter(getter(TransformJob::tags))
.setter(setter(Builder::tags))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(Tag::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(TRANSFORM_JOB_NAME_FIELD,
TRANSFORM_JOB_ARN_FIELD, TRANSFORM_JOB_STATUS_FIELD, FAILURE_REASON_FIELD, MODEL_NAME_FIELD,
MAX_CONCURRENT_TRANSFORMS_FIELD, MODEL_CLIENT_CONFIG_FIELD, MAX_PAYLOAD_IN_MB_FIELD, BATCH_STRATEGY_FIELD,
ENVIRONMENT_FIELD, TRANSFORM_INPUT_FIELD, TRANSFORM_OUTPUT_FIELD, DATA_CAPTURE_CONFIG_FIELD,
TRANSFORM_RESOURCES_FIELD, CREATION_TIME_FIELD, TRANSFORM_START_TIME_FIELD, TRANSFORM_END_TIME_FIELD,
LABELING_JOB_ARN_FIELD, AUTO_ML_JOB_ARN_FIELD, DATA_PROCESSING_FIELD, EXPERIMENT_CONFIG_FIELD, TAGS_FIELD));
private static final long serialVersionUID = 1L;
private final String transformJobName;
private final String transformJobArn;
private final String transformJobStatus;
private final String failureReason;
private final String modelName;
private final Integer maxConcurrentTransforms;
private final ModelClientConfig modelClientConfig;
private final Integer maxPayloadInMB;
private final String batchStrategy;
private final Map environment;
private final TransformInput transformInput;
private final TransformOutput transformOutput;
private final BatchDataCaptureConfig dataCaptureConfig;
private final TransformResources transformResources;
private final Instant creationTime;
private final Instant transformStartTime;
private final Instant transformEndTime;
private final String labelingJobArn;
private final String autoMLJobArn;
private final DataProcessing dataProcessing;
private final ExperimentConfig experimentConfig;
private final List tags;
private TransformJob(BuilderImpl builder) {
this.transformJobName = builder.transformJobName;
this.transformJobArn = builder.transformJobArn;
this.transformJobStatus = builder.transformJobStatus;
this.failureReason = builder.failureReason;
this.modelName = builder.modelName;
this.maxConcurrentTransforms = builder.maxConcurrentTransforms;
this.modelClientConfig = builder.modelClientConfig;
this.maxPayloadInMB = builder.maxPayloadInMB;
this.batchStrategy = builder.batchStrategy;
this.environment = builder.environment;
this.transformInput = builder.transformInput;
this.transformOutput = builder.transformOutput;
this.dataCaptureConfig = builder.dataCaptureConfig;
this.transformResources = builder.transformResources;
this.creationTime = builder.creationTime;
this.transformStartTime = builder.transformStartTime;
this.transformEndTime = builder.transformEndTime;
this.labelingJobArn = builder.labelingJobArn;
this.autoMLJobArn = builder.autoMLJobArn;
this.dataProcessing = builder.dataProcessing;
this.experimentConfig = builder.experimentConfig;
this.tags = builder.tags;
}
/**
*
* The name of the transform job.
*
*
* @return The name of the transform job.
*/
public final String transformJobName() {
return transformJobName;
}
/**
*
* The Amazon Resource Name (ARN) of the transform job.
*
*
* @return The Amazon Resource Name (ARN) of the transform job.
*/
public final String transformJobArn() {
return transformJobArn;
}
/**
*
* The status of the transform job.
*
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #transformJobStatus} will return {@link TransformJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned
* by the service is available from {@link #transformJobStatusAsString}.
*
*
* @return The status of the transform job.
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
* @see TransformJobStatus
*/
public final TransformJobStatus transformJobStatus() {
return TransformJobStatus.fromValue(transformJobStatus);
}
/**
*
* The status of the transform job.
*
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #transformJobStatus} will return {@link TransformJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned
* by the service is available from {@link #transformJobStatusAsString}.
*
*
* @return The status of the transform job.
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
* @see TransformJobStatus
*/
public final String transformJobStatusAsString() {
return transformJobStatus;
}
/**
*
* If the transform job failed, the reason it failed.
*
*
* @return If the transform job failed, the reason it failed.
*/
public final String failureReason() {
return failureReason;
}
/**
*
* The name of the model associated with the transform job.
*
*
* @return The name of the model associated with the transform job.
*/
public final String modelName() {
return modelName;
}
/**
*
* 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, 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 built-in algorithms, you don't need to set a value for
* MaxConcurrentTransforms
.
*
*
* @return 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, 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 built-in algorithms, you don't need to set a value
* for MaxConcurrentTransforms
.
*/
public final Integer maxConcurrentTransforms() {
return maxConcurrentTransforms;
}
/**
* Returns the value of the ModelClientConfig property for this object.
*
* @return The value of the ModelClientConfig property for this object.
*/
public final ModelClientConfig modelClientConfig() {
return modelClientConfig;
}
/**
*
* 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, SageMaker built-in algorithms do not support
* HTTP chunked encoding.
*
*
* @return 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, SageMaker built-in algorithms do not support HTTP chunked encoding.
*/
public final Integer maxPayloadInMB() {
return maxPayloadInMB;
}
/**
*
* 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.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #batchStrategy}
* will return {@link BatchStrategy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #batchStrategyAsString}.
*
*
* @return 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.
* @see BatchStrategy
*/
public final BatchStrategy batchStrategy() {
return BatchStrategy.fromValue(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.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #batchStrategy}
* will return {@link BatchStrategy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #batchStrategyAsString}.
*
*
* @return 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.
* @see BatchStrategy
*/
public final String batchStrategyAsString() {
return batchStrategy;
}
/**
* For responses, this returns true if the service returned a value for the Environment property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasEnvironment() {
return environment != null && !(environment instanceof SdkAutoConstructMap);
}
/**
*
* 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.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasEnvironment} method.
*
*
* @return The environment variables to set in the Docker container. We support up to 16 key and values entries in
* the map.
*/
public final Map environment() {
return environment;
}
/**
* Returns the value of the TransformInput property for this object.
*
* @return The value of the TransformInput property for this object.
*/
public final TransformInput transformInput() {
return transformInput;
}
/**
* Returns the value of the TransformOutput property for this object.
*
* @return The value of the TransformOutput property for this object.
*/
public final TransformOutput transformOutput() {
return transformOutput;
}
/**
* Returns the value of the DataCaptureConfig property for this object.
*
* @return The value of the DataCaptureConfig property for this object.
*/
public final BatchDataCaptureConfig dataCaptureConfig() {
return dataCaptureConfig;
}
/**
* Returns the value of the TransformResources property for this object.
*
* @return The value of the TransformResources property for this object.
*/
public final TransformResources transformResources() {
return transformResources;
}
/**
*
* A timestamp that shows when the transform Job was created.
*
*
* @return A timestamp that shows when the transform Job was created.
*/
public final Instant creationTime() {
return creationTime;
}
/**
*
* Indicates when the transform job starts on ML instances. You are billed for the time interval between this time
* and the value of TransformEndTime
.
*
*
* @return Indicates when the transform job starts on ML instances. You are billed for the time interval between
* this time and the value of TransformEndTime
.
*/
public final Instant transformStartTime() {
return transformStartTime;
}
/**
*
* Indicates when the transform job has been completed, or has stopped or failed. You are billed for the time
* interval between this time and the value of TransformStartTime
.
*
*
* @return Indicates when the transform job has been completed, or has stopped or failed. You are billed for the
* time interval between this time and the value of TransformStartTime
.
*/
public final Instant transformEndTime() {
return transformEndTime;
}
/**
*
* The Amazon Resource Name (ARN) of the labeling job that created the transform job.
*
*
* @return The Amazon Resource Name (ARN) of the labeling job that created the transform job.
*/
public final String labelingJobArn() {
return labelingJobArn;
}
/**
*
* The Amazon Resource Name (ARN) of the AutoML job that created the transform job.
*
*
* @return The Amazon Resource Name (ARN) of the AutoML job that created the transform job.
*/
public final String autoMLJobArn() {
return autoMLJobArn;
}
/**
* Returns the value of the DataProcessing property for this object.
*
* @return The value of the DataProcessing property for this object.
*/
public final DataProcessing dataProcessing() {
return dataProcessing;
}
/**
* Returns the value of the ExperimentConfig property for this object.
*
* @return The value of the ExperimentConfig property for this object.
*/
public final ExperimentConfig experimentConfig() {
return experimentConfig;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructList);
}
/**
*
* A list of tags associated with the transform job.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return A list of tags associated with the transform job.
*/
public final List tags() {
return tags;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(transformJobName());
hashCode = 31 * hashCode + Objects.hashCode(transformJobArn());
hashCode = 31 * hashCode + Objects.hashCode(transformJobStatusAsString());
hashCode = 31 * hashCode + Objects.hashCode(failureReason());
hashCode = 31 * hashCode + Objects.hashCode(modelName());
hashCode = 31 * hashCode + Objects.hashCode(maxConcurrentTransforms());
hashCode = 31 * hashCode + Objects.hashCode(modelClientConfig());
hashCode = 31 * hashCode + Objects.hashCode(maxPayloadInMB());
hashCode = 31 * hashCode + Objects.hashCode(batchStrategyAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasEnvironment() ? environment() : null);
hashCode = 31 * hashCode + Objects.hashCode(transformInput());
hashCode = 31 * hashCode + Objects.hashCode(transformOutput());
hashCode = 31 * hashCode + Objects.hashCode(dataCaptureConfig());
hashCode = 31 * hashCode + Objects.hashCode(transformResources());
hashCode = 31 * hashCode + Objects.hashCode(creationTime());
hashCode = 31 * hashCode + Objects.hashCode(transformStartTime());
hashCode = 31 * hashCode + Objects.hashCode(transformEndTime());
hashCode = 31 * hashCode + Objects.hashCode(labelingJobArn());
hashCode = 31 * hashCode + Objects.hashCode(autoMLJobArn());
hashCode = 31 * hashCode + Objects.hashCode(dataProcessing());
hashCode = 31 * hashCode + Objects.hashCode(experimentConfig());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof TransformJob)) {
return false;
}
TransformJob other = (TransformJob) obj;
return Objects.equals(transformJobName(), other.transformJobName())
&& Objects.equals(transformJobArn(), other.transformJobArn())
&& Objects.equals(transformJobStatusAsString(), other.transformJobStatusAsString())
&& Objects.equals(failureReason(), other.failureReason()) && Objects.equals(modelName(), other.modelName())
&& Objects.equals(maxConcurrentTransforms(), other.maxConcurrentTransforms())
&& Objects.equals(modelClientConfig(), other.modelClientConfig())
&& Objects.equals(maxPayloadInMB(), other.maxPayloadInMB())
&& Objects.equals(batchStrategyAsString(), other.batchStrategyAsString())
&& hasEnvironment() == other.hasEnvironment() && Objects.equals(environment(), other.environment())
&& Objects.equals(transformInput(), other.transformInput())
&& Objects.equals(transformOutput(), other.transformOutput())
&& Objects.equals(dataCaptureConfig(), other.dataCaptureConfig())
&& Objects.equals(transformResources(), other.transformResources())
&& Objects.equals(creationTime(), other.creationTime())
&& Objects.equals(transformStartTime(), other.transformStartTime())
&& Objects.equals(transformEndTime(), other.transformEndTime())
&& Objects.equals(labelingJobArn(), other.labelingJobArn())
&& Objects.equals(autoMLJobArn(), other.autoMLJobArn())
&& Objects.equals(dataProcessing(), other.dataProcessing())
&& Objects.equals(experimentConfig(), other.experimentConfig()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("TransformJob").add("TransformJobName", transformJobName())
.add("TransformJobArn", transformJobArn()).add("TransformJobStatus", transformJobStatusAsString())
.add("FailureReason", failureReason()).add("ModelName", modelName())
.add("MaxConcurrentTransforms", maxConcurrentTransforms()).add("ModelClientConfig", modelClientConfig())
.add("MaxPayloadInMB", maxPayloadInMB()).add("BatchStrategy", batchStrategyAsString())
.add("Environment", hasEnvironment() ? environment() : null).add("TransformInput", transformInput())
.add("TransformOutput", transformOutput()).add("DataCaptureConfig", dataCaptureConfig())
.add("TransformResources", transformResources()).add("CreationTime", creationTime())
.add("TransformStartTime", transformStartTime()).add("TransformEndTime", transformEndTime())
.add("LabelingJobArn", labelingJobArn()).add("AutoMLJobArn", autoMLJobArn())
.add("DataProcessing", dataProcessing()).add("ExperimentConfig", experimentConfig())
.add("Tags", hasTags() ? tags() : null).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "TransformJobName":
return Optional.ofNullable(clazz.cast(transformJobName()));
case "TransformJobArn":
return Optional.ofNullable(clazz.cast(transformJobArn()));
case "TransformJobStatus":
return Optional.ofNullable(clazz.cast(transformJobStatusAsString()));
case "FailureReason":
return Optional.ofNullable(clazz.cast(failureReason()));
case "ModelName":
return Optional.ofNullable(clazz.cast(modelName()));
case "MaxConcurrentTransforms":
return Optional.ofNullable(clazz.cast(maxConcurrentTransforms()));
case "ModelClientConfig":
return Optional.ofNullable(clazz.cast(modelClientConfig()));
case "MaxPayloadInMB":
return Optional.ofNullable(clazz.cast(maxPayloadInMB()));
case "BatchStrategy":
return Optional.ofNullable(clazz.cast(batchStrategyAsString()));
case "Environment":
return Optional.ofNullable(clazz.cast(environment()));
case "TransformInput":
return Optional.ofNullable(clazz.cast(transformInput()));
case "TransformOutput":
return Optional.ofNullable(clazz.cast(transformOutput()));
case "DataCaptureConfig":
return Optional.ofNullable(clazz.cast(dataCaptureConfig()));
case "TransformResources":
return Optional.ofNullable(clazz.cast(transformResources()));
case "CreationTime":
return Optional.ofNullable(clazz.cast(creationTime()));
case "TransformStartTime":
return Optional.ofNullable(clazz.cast(transformStartTime()));
case "TransformEndTime":
return Optional.ofNullable(clazz.cast(transformEndTime()));
case "LabelingJobArn":
return Optional.ofNullable(clazz.cast(labelingJobArn()));
case "AutoMLJobArn":
return Optional.ofNullable(clazz.cast(autoMLJobArn()));
case "DataProcessing":
return Optional.ofNullable(clazz.cast(dataProcessing()));
case "ExperimentConfig":
return Optional.ofNullable(clazz.cast(experimentConfig()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((TransformJob) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends SdkPojo, CopyableBuilder {
/**
*
* The name of the transform job.
*
*
* @param transformJobName
* The name of the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformJobName(String transformJobName);
/**
*
* The Amazon Resource Name (ARN) of the transform job.
*
*
* @param transformJobArn
* The Amazon Resource Name (ARN) of the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformJobArn(String transformJobArn);
/**
*
* The status of the transform job.
*
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
*
*
* @param transformJobStatus
* The status of the transform job.
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
* @see TransformJobStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see TransformJobStatus
*/
Builder transformJobStatus(String transformJobStatus);
/**
*
* The status of the transform job.
*
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
*
*
* @param transformJobStatus
* The status of the transform job.
*
* Transform job statuses are:
*
*
*
*
* InProgress
- The job is in progress.
*
*
*
*
* Completed
- The job has completed.
*
*
*
*
* Failed
- The transform job has failed. To see the reason for the failure, see the
* FailureReason
field in the response to a DescribeTransformJob
call.
*
*
*
*
* Stopping
- The transform job is stopping.
*
*
*
*
* Stopped
- The transform job has stopped.
*
*
* @see TransformJobStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see TransformJobStatus
*/
Builder transformJobStatus(TransformJobStatus transformJobStatus);
/**
*
* If the transform job failed, the reason it failed.
*
*
* @param failureReason
* If the transform job failed, the reason it failed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder failureReason(String failureReason);
/**
*
* The name of the model associated with the transform job.
*
*
* @param modelName
* The name of the model associated with the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder modelName(String modelName);
/**
*
* 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, 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 built-in algorithms, you don't need to set a value for
* MaxConcurrentTransforms
.
*
*
* @param 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, 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 built-in algorithms, you don't need to set a
* value for MaxConcurrentTransforms
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder maxConcurrentTransforms(Integer maxConcurrentTransforms);
/**
* Sets the value of the ModelClientConfig property for this object.
*
* @param modelClientConfig
* The new value for the ModelClientConfig property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder modelClientConfig(ModelClientConfig modelClientConfig);
/**
* Sets the value of the ModelClientConfig property for this object.
*
* This is a convenience method that creates an instance of the {@link ModelClientConfig.Builder} avoiding the
* need to create one manually via {@link ModelClientConfig#builder()}.
*
*
* When the {@link Consumer} completes, {@link ModelClientConfig.Builder#build()} is called immediately and its
* result is passed to {@link #modelClientConfig(ModelClientConfig)}.
*
* @param modelClientConfig
* a consumer that will call methods on {@link ModelClientConfig.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #modelClientConfig(ModelClientConfig)
*/
default Builder modelClientConfig(Consumer modelClientConfig) {
return modelClientConfig(ModelClientConfig.builder().applyMutation(modelClientConfig).build());
}
/**
*
* 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, SageMaker built-in
* algorithms do not support HTTP chunked encoding.
*
*
* @param 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, SageMaker built-in algorithms do not support HTTP chunked encoding.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder maxPayloadInMB(Integer maxPayloadInMB);
/**
*
* 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.
*
*
* @param 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.
* @see BatchStrategy
* @return Returns a reference to this object so that method calls can be chained together.
* @see BatchStrategy
*/
Builder batchStrategy(String 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.
*
*
* @param 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.
* @see BatchStrategy
* @return Returns a reference to this object so that method calls can be chained together.
* @see BatchStrategy
*/
Builder batchStrategy(BatchStrategy batchStrategy);
/**
*
* The environment variables to set in the Docker container. We support up to 16 key and values entries in the
* map.
*
*
* @param environment
* The environment variables to set in the Docker container. We support up to 16 key and values entries
* in the map.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder environment(Map environment);
/**
* Sets the value of the TransformInput property for this object.
*
* @param transformInput
* The new value for the TransformInput property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformInput(TransformInput transformInput);
/**
* Sets the value of the TransformInput property for this object.
*
* This is a convenience method that creates an instance of the {@link TransformInput.Builder} avoiding the need
* to create one manually via {@link TransformInput#builder()}.
*
*
* When the {@link Consumer} completes, {@link TransformInput.Builder#build()} is called immediately and its
* result is passed to {@link #transformInput(TransformInput)}.
*
* @param transformInput
* a consumer that will call methods on {@link TransformInput.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #transformInput(TransformInput)
*/
default Builder transformInput(Consumer transformInput) {
return transformInput(TransformInput.builder().applyMutation(transformInput).build());
}
/**
* Sets the value of the TransformOutput property for this object.
*
* @param transformOutput
* The new value for the TransformOutput property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformOutput(TransformOutput transformOutput);
/**
* Sets the value of the TransformOutput property for this object.
*
* This is a convenience method that creates an instance of the {@link TransformOutput.Builder} avoiding the
* need to create one manually via {@link TransformOutput#builder()}.
*
*
* When the {@link Consumer} completes, {@link TransformOutput.Builder#build()} is called immediately and its
* result is passed to {@link #transformOutput(TransformOutput)}.
*
* @param transformOutput
* a consumer that will call methods on {@link TransformOutput.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #transformOutput(TransformOutput)
*/
default Builder transformOutput(Consumer transformOutput) {
return transformOutput(TransformOutput.builder().applyMutation(transformOutput).build());
}
/**
* Sets the value of the DataCaptureConfig property for this object.
*
* @param dataCaptureConfig
* The new value for the DataCaptureConfig property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dataCaptureConfig(BatchDataCaptureConfig dataCaptureConfig);
/**
* Sets the value of the DataCaptureConfig property for this object.
*
* This is a convenience method that creates an instance of the {@link BatchDataCaptureConfig.Builder} avoiding
* the need to create one manually via {@link BatchDataCaptureConfig#builder()}.
*
*
* When the {@link Consumer} completes, {@link BatchDataCaptureConfig.Builder#build()} is called immediately and
* its result is passed to {@link #dataCaptureConfig(BatchDataCaptureConfig)}.
*
* @param dataCaptureConfig
* a consumer that will call methods on {@link BatchDataCaptureConfig.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #dataCaptureConfig(BatchDataCaptureConfig)
*/
default Builder dataCaptureConfig(Consumer dataCaptureConfig) {
return dataCaptureConfig(BatchDataCaptureConfig.builder().applyMutation(dataCaptureConfig).build());
}
/**
* Sets the value of the TransformResources property for this object.
*
* @param transformResources
* The new value for the TransformResources property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformResources(TransformResources transformResources);
/**
* Sets the value of the TransformResources property for this object.
*
* This is a convenience method that creates an instance of the {@link TransformResources.Builder} avoiding the
* need to create one manually via {@link TransformResources#builder()}.
*
*
* When the {@link Consumer} completes, {@link TransformResources.Builder#build()} is called immediately and its
* result is passed to {@link #transformResources(TransformResources)}.
*
* @param transformResources
* a consumer that will call methods on {@link TransformResources.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #transformResources(TransformResources)
*/
default Builder transformResources(Consumer transformResources) {
return transformResources(TransformResources.builder().applyMutation(transformResources).build());
}
/**
*
* A timestamp that shows when the transform Job was created.
*
*
* @param creationTime
* A timestamp that shows when the transform Job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder creationTime(Instant creationTime);
/**
*
* Indicates when the transform job starts on ML instances. You are billed for the time interval between this
* time and the value of TransformEndTime
.
*
*
* @param transformStartTime
* Indicates when the transform job starts on ML instances. You are billed for the time interval between
* this time and the value of TransformEndTime
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformStartTime(Instant transformStartTime);
/**
*
* Indicates when the transform job has been completed, or has stopped or failed. You are billed for the time
* interval between this time and the value of TransformStartTime
.
*
*
* @param transformEndTime
* Indicates when the transform job has been completed, or has stopped or failed. You are billed for the
* time interval between this time and the value of TransformStartTime
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder transformEndTime(Instant transformEndTime);
/**
*
* The Amazon Resource Name (ARN) of the labeling job that created the transform job.
*
*
* @param labelingJobArn
* The Amazon Resource Name (ARN) of the labeling job that created the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder labelingJobArn(String labelingJobArn);
/**
*
* The Amazon Resource Name (ARN) of the AutoML job that created the transform job.
*
*
* @param autoMLJobArn
* The Amazon Resource Name (ARN) of the AutoML job that created the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder autoMLJobArn(String autoMLJobArn);
/**
* Sets the value of the DataProcessing property for this object.
*
* @param dataProcessing
* The new value for the DataProcessing property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dataProcessing(DataProcessing dataProcessing);
/**
* Sets the value of the DataProcessing property for this object.
*
* This is a convenience method that creates an instance of the {@link DataProcessing.Builder} avoiding the need
* to create one manually via {@link DataProcessing#builder()}.
*
*
* When the {@link Consumer} completes, {@link DataProcessing.Builder#build()} is called immediately and its
* result is passed to {@link #dataProcessing(DataProcessing)}.
*
* @param dataProcessing
* a consumer that will call methods on {@link DataProcessing.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #dataProcessing(DataProcessing)
*/
default Builder dataProcessing(Consumer dataProcessing) {
return dataProcessing(DataProcessing.builder().applyMutation(dataProcessing).build());
}
/**
* Sets the value of the ExperimentConfig property for this object.
*
* @param experimentConfig
* The new value for the ExperimentConfig property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder experimentConfig(ExperimentConfig experimentConfig);
/**
* Sets the value of the ExperimentConfig property for this object.
*
* This is a convenience method that creates an instance of the {@link ExperimentConfig.Builder} avoiding the
* need to create one manually via {@link ExperimentConfig#builder()}.
*
*
* When the {@link Consumer} completes, {@link ExperimentConfig.Builder#build()} is called immediately and its
* result is passed to {@link #experimentConfig(ExperimentConfig)}.
*
* @param experimentConfig
* a consumer that will call methods on {@link ExperimentConfig.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #experimentConfig(ExperimentConfig)
*/
default Builder experimentConfig(Consumer experimentConfig) {
return experimentConfig(ExperimentConfig.builder().applyMutation(experimentConfig).build());
}
/**
*
* A list of tags associated with the transform job.
*
*
* @param tags
* A list of tags associated with the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Collection tags);
/**
*
* A list of tags associated with the transform job.
*
*
* @param tags
* A list of tags associated with the transform job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Tag... tags);
/**
*
* A list of tags associated with the transform job.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.sagemaker.model.Tag.Builder} avoiding the need to create one manually
* via {@link software.amazon.awssdk.services.sagemaker.model.Tag#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.sagemaker.model.Tag.Builder#build()} is called immediately and its
* result is passed to {@link #tags(List)}.
*
* @param tags
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.sagemaker.model.Tag.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #tags(java.util.Collection)
*/
Builder tags(Consumer... tags);
}
static final class BuilderImpl implements Builder {
private String transformJobName;
private String transformJobArn;
private String transformJobStatus;
private String failureReason;
private String modelName;
private Integer maxConcurrentTransforms;
private ModelClientConfig modelClientConfig;
private Integer maxPayloadInMB;
private String batchStrategy;
private Map environment = DefaultSdkAutoConstructMap.getInstance();
private TransformInput transformInput;
private TransformOutput transformOutput;
private BatchDataCaptureConfig dataCaptureConfig;
private TransformResources transformResources;
private Instant creationTime;
private Instant transformStartTime;
private Instant transformEndTime;
private String labelingJobArn;
private String autoMLJobArn;
private DataProcessing dataProcessing;
private ExperimentConfig experimentConfig;
private List tags = DefaultSdkAutoConstructList.getInstance();
private BuilderImpl() {
}
private BuilderImpl(TransformJob model) {
transformJobName(model.transformJobName);
transformJobArn(model.transformJobArn);
transformJobStatus(model.transformJobStatus);
failureReason(model.failureReason);
modelName(model.modelName);
maxConcurrentTransforms(model.maxConcurrentTransforms);
modelClientConfig(model.modelClientConfig);
maxPayloadInMB(model.maxPayloadInMB);
batchStrategy(model.batchStrategy);
environment(model.environment);
transformInput(model.transformInput);
transformOutput(model.transformOutput);
dataCaptureConfig(model.dataCaptureConfig);
transformResources(model.transformResources);
creationTime(model.creationTime);
transformStartTime(model.transformStartTime);
transformEndTime(model.transformEndTime);
labelingJobArn(model.labelingJobArn);
autoMLJobArn(model.autoMLJobArn);
dataProcessing(model.dataProcessing);
experimentConfig(model.experimentConfig);
tags(model.tags);
}
public final String getTransformJobName() {
return transformJobName;
}
public final void setTransformJobName(String transformJobName) {
this.transformJobName = transformJobName;
}
@Override
public final Builder transformJobName(String transformJobName) {
this.transformJobName = transformJobName;
return this;
}
public final String getTransformJobArn() {
return transformJobArn;
}
public final void setTransformJobArn(String transformJobArn) {
this.transformJobArn = transformJobArn;
}
@Override
public final Builder transformJobArn(String transformJobArn) {
this.transformJobArn = transformJobArn;
return this;
}
public final String getTransformJobStatus() {
return transformJobStatus;
}
public final void setTransformJobStatus(String transformJobStatus) {
this.transformJobStatus = transformJobStatus;
}
@Override
public final Builder transformJobStatus(String transformJobStatus) {
this.transformJobStatus = transformJobStatus;
return this;
}
@Override
public final Builder transformJobStatus(TransformJobStatus transformJobStatus) {
this.transformJobStatus(transformJobStatus == null ? null : transformJobStatus.toString());
return this;
}
public final String getFailureReason() {
return failureReason;
}
public final void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
@Override
public final Builder failureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
public final String getModelName() {
return modelName;
}
public final void setModelName(String modelName) {
this.modelName = modelName;
}
@Override
public final Builder modelName(String modelName) {
this.modelName = modelName;
return this;
}
public final Integer getMaxConcurrentTransforms() {
return maxConcurrentTransforms;
}
public final void setMaxConcurrentTransforms(Integer maxConcurrentTransforms) {
this.maxConcurrentTransforms = maxConcurrentTransforms;
}
@Override
public final Builder maxConcurrentTransforms(Integer maxConcurrentTransforms) {
this.maxConcurrentTransforms = maxConcurrentTransforms;
return this;
}
public final ModelClientConfig.Builder getModelClientConfig() {
return modelClientConfig != null ? modelClientConfig.toBuilder() : null;
}
public final void setModelClientConfig(ModelClientConfig.BuilderImpl modelClientConfig) {
this.modelClientConfig = modelClientConfig != null ? modelClientConfig.build() : null;
}
@Override
public final Builder modelClientConfig(ModelClientConfig modelClientConfig) {
this.modelClientConfig = modelClientConfig;
return this;
}
public final Integer getMaxPayloadInMB() {
return maxPayloadInMB;
}
public final void setMaxPayloadInMB(Integer maxPayloadInMB) {
this.maxPayloadInMB = maxPayloadInMB;
}
@Override
public final Builder maxPayloadInMB(Integer maxPayloadInMB) {
this.maxPayloadInMB = maxPayloadInMB;
return this;
}
public final String getBatchStrategy() {
return batchStrategy;
}
public final void setBatchStrategy(String batchStrategy) {
this.batchStrategy = batchStrategy;
}
@Override
public final Builder batchStrategy(String batchStrategy) {
this.batchStrategy = batchStrategy;
return this;
}
@Override
public final Builder batchStrategy(BatchStrategy batchStrategy) {
this.batchStrategy(batchStrategy == null ? null : batchStrategy.toString());
return this;
}
public final Map getEnvironment() {
if (environment instanceof SdkAutoConstructMap) {
return null;
}
return environment;
}
public final void setEnvironment(Map environment) {
this.environment = TransformEnvironmentMapCopier.copy(environment);
}
@Override
public final Builder environment(Map environment) {
this.environment = TransformEnvironmentMapCopier.copy(environment);
return this;
}
public final TransformInput.Builder getTransformInput() {
return transformInput != null ? transformInput.toBuilder() : null;
}
public final void setTransformInput(TransformInput.BuilderImpl transformInput) {
this.transformInput = transformInput != null ? transformInput.build() : null;
}
@Override
public final Builder transformInput(TransformInput transformInput) {
this.transformInput = transformInput;
return this;
}
public final TransformOutput.Builder getTransformOutput() {
return transformOutput != null ? transformOutput.toBuilder() : null;
}
public final void setTransformOutput(TransformOutput.BuilderImpl transformOutput) {
this.transformOutput = transformOutput != null ? transformOutput.build() : null;
}
@Override
public final Builder transformOutput(TransformOutput transformOutput) {
this.transformOutput = transformOutput;
return this;
}
public final BatchDataCaptureConfig.Builder getDataCaptureConfig() {
return dataCaptureConfig != null ? dataCaptureConfig.toBuilder() : null;
}
public final void setDataCaptureConfig(BatchDataCaptureConfig.BuilderImpl dataCaptureConfig) {
this.dataCaptureConfig = dataCaptureConfig != null ? dataCaptureConfig.build() : null;
}
@Override
public final Builder dataCaptureConfig(BatchDataCaptureConfig dataCaptureConfig) {
this.dataCaptureConfig = dataCaptureConfig;
return this;
}
public final TransformResources.Builder getTransformResources() {
return transformResources != null ? transformResources.toBuilder() : null;
}
public final void setTransformResources(TransformResources.BuilderImpl transformResources) {
this.transformResources = transformResources != null ? transformResources.build() : null;
}
@Override
public final Builder transformResources(TransformResources transformResources) {
this.transformResources = transformResources;
return this;
}
public final Instant getCreationTime() {
return creationTime;
}
public final void setCreationTime(Instant creationTime) {
this.creationTime = creationTime;
}
@Override
public final Builder creationTime(Instant creationTime) {
this.creationTime = creationTime;
return this;
}
public final Instant getTransformStartTime() {
return transformStartTime;
}
public final void setTransformStartTime(Instant transformStartTime) {
this.transformStartTime = transformStartTime;
}
@Override
public final Builder transformStartTime(Instant transformStartTime) {
this.transformStartTime = transformStartTime;
return this;
}
public final Instant getTransformEndTime() {
return transformEndTime;
}
public final void setTransformEndTime(Instant transformEndTime) {
this.transformEndTime = transformEndTime;
}
@Override
public final Builder transformEndTime(Instant transformEndTime) {
this.transformEndTime = transformEndTime;
return this;
}
public final String getLabelingJobArn() {
return labelingJobArn;
}
public final void setLabelingJobArn(String labelingJobArn) {
this.labelingJobArn = labelingJobArn;
}
@Override
public final Builder labelingJobArn(String labelingJobArn) {
this.labelingJobArn = labelingJobArn;
return this;
}
public final String getAutoMLJobArn() {
return autoMLJobArn;
}
public final void setAutoMLJobArn(String autoMLJobArn) {
this.autoMLJobArn = autoMLJobArn;
}
@Override
public final Builder autoMLJobArn(String autoMLJobArn) {
this.autoMLJobArn = autoMLJobArn;
return this;
}
public final DataProcessing.Builder getDataProcessing() {
return dataProcessing != null ? dataProcessing.toBuilder() : null;
}
public final void setDataProcessing(DataProcessing.BuilderImpl dataProcessing) {
this.dataProcessing = dataProcessing != null ? dataProcessing.build() : null;
}
@Override
public final Builder dataProcessing(DataProcessing dataProcessing) {
this.dataProcessing = dataProcessing;
return this;
}
public final ExperimentConfig.Builder getExperimentConfig() {
return experimentConfig != null ? experimentConfig.toBuilder() : null;
}
public final void setExperimentConfig(ExperimentConfig.BuilderImpl experimentConfig) {
this.experimentConfig = experimentConfig != null ? experimentConfig.build() : null;
}
@Override
public final Builder experimentConfig(ExperimentConfig experimentConfig) {
this.experimentConfig = experimentConfig;
return this;
}
public final List getTags() {
List result = TagListCopier.copyToBuilder(this.tags);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setTags(Collection tags) {
this.tags = TagListCopier.copyFromBuilder(tags);
}
@Override
public final Builder tags(Collection tags) {
this.tags = TagListCopier.copy(tags);
return this;
}
@Override
@SafeVarargs
public final Builder tags(Tag... tags) {
tags(Arrays.asList(tags));
return this;
}
@Override
@SafeVarargs
public final Builder tags(Consumer... tags) {
tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList()));
return this;
}
@Override
public TransformJob build() {
return new TransformJob(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}