/* * Copyright 2018-2023 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 com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Defines a named input source, called a channel, to be used by an algorithm. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ChannelSpecification implements Serializable, Cloneable, StructuredPojo { /** ** The name of the channel. *
*/ private String name; /** ** A brief description of the channel. *
*/ private String description; /** ** Indicates whether the channel is required by the algorithm. *
*/ private Boolean isRequired; /** ** The supported MIME types for the data. *
*/ private java.util.List* The allowed compression types, if data compression is used. *
*/ private java.util.List* The allowed input mode, either FILE or PIPE. *
** In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store * (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode. *
** In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the * EBS volume. *
*/ private java.util.List* The name of the channel. *
* * @param name * The name of the channel. */ public void setName(String name) { this.name = name; } /** ** The name of the channel. *
* * @return The name of the channel. */ public String getName() { return this.name; } /** ** The name of the channel. *
* * @param name * The name of the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ChannelSpecification withName(String name) { setName(name); return this; } /** ** A brief description of the channel. *
* * @param description * A brief description of the channel. */ public void setDescription(String description) { this.description = description; } /** ** A brief description of the channel. *
* * @return A brief description of the channel. */ public String getDescription() { return this.description; } /** ** A brief description of the channel. *
* * @param description * A brief description of the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ChannelSpecification withDescription(String description) { setDescription(description); return this; } /** ** Indicates whether the channel is required by the algorithm. *
* * @param isRequired * Indicates whether the channel is required by the algorithm. */ public void setIsRequired(Boolean isRequired) { this.isRequired = isRequired; } /** ** Indicates whether the channel is required by the algorithm. *
* * @return Indicates whether the channel is required by the algorithm. */ public Boolean getIsRequired() { return this.isRequired; } /** ** Indicates whether the channel is required by the algorithm. *
* * @param isRequired * Indicates whether the channel is required by the algorithm. * @return Returns a reference to this object so that method calls can be chained together. */ public ChannelSpecification withIsRequired(Boolean isRequired) { setIsRequired(isRequired); return this; } /** ** Indicates whether the channel is required by the algorithm. *
* * @return Indicates whether the channel is required by the algorithm. */ public Boolean isRequired() { return this.isRequired; } /** ** The supported MIME types for the data. *
* * @return The supported MIME types for the data. */ public java.util.List* The supported MIME types for the data. *
* * @param supportedContentTypes * The supported MIME types for the data. */ public void setSupportedContentTypes(java.util.Collection* The supported MIME types for the data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedContentTypes(java.util.Collection)} or * {@link #withSupportedContentTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedContentTypes * The supported MIME types for the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ChannelSpecification withSupportedContentTypes(String... supportedContentTypes) { if (this.supportedContentTypes == null) { setSupportedContentTypes(new java.util.ArrayList* The supported MIME types for the data. *
* * @param supportedContentTypes * The supported MIME types for the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ChannelSpecification withSupportedContentTypes(java.util.Collection* The allowed compression types, if data compression is used. *
* * @return The allowed compression types, if data compression is used. * @see CompressionType */ public java.util.List* The allowed compression types, if data compression is used. *
* * @param supportedCompressionTypes * The allowed compression types, if data compression is used. * @see CompressionType */ public void setSupportedCompressionTypes(java.util.Collection* The allowed compression types, if data compression is used. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedCompressionTypes(java.util.Collection)} or * {@link #withSupportedCompressionTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedCompressionTypes * The allowed compression types, if data compression is used. * @return Returns a reference to this object so that method calls can be chained together. * @see CompressionType */ public ChannelSpecification withSupportedCompressionTypes(String... supportedCompressionTypes) { if (this.supportedCompressionTypes == null) { setSupportedCompressionTypes(new java.util.ArrayList* The allowed compression types, if data compression is used. *
* * @param supportedCompressionTypes * The allowed compression types, if data compression is used. * @return Returns a reference to this object so that method calls can be chained together. * @see CompressionType */ public ChannelSpecification withSupportedCompressionTypes(java.util.Collection* The allowed compression types, if data compression is used. *
* * @param supportedCompressionTypes * The allowed compression types, if data compression is used. * @return Returns a reference to this object so that method calls can be chained together. * @see CompressionType */ public ChannelSpecification withSupportedCompressionTypes(CompressionType... supportedCompressionTypes) { java.util.ArrayList* The allowed input mode, either FILE or PIPE. *
** In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store * (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode. *
** In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the * EBS volume. *
* * @return The allowed input mode, either FILE or PIPE. ** In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block * Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input * mode. *
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without
* using the EBS volume.
* @see TrainingInputMode
*/
public java.util.List
* The allowed input mode, either FILE or PIPE.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store
* (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the
* EBS volume.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block * Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input * mode. *
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using
* the EBS volume.
* @see TrainingInputMode
*/
public void setSupportedInputModes(java.util.Collection
* The allowed input mode, either FILE or PIPE.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store
* (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the
* EBS volume.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedInputModes(java.util.Collection)} or {@link #withSupportedInputModes(java.util.Collection)}
* if you want to override the existing values.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block * Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input * mode. *
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using
* the EBS volume.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrainingInputMode
*/
public ChannelSpecification withSupportedInputModes(String... supportedInputModes) {
if (this.supportedInputModes == null) {
setSupportedInputModes(new java.util.ArrayList
* The allowed input mode, either FILE or PIPE.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store
* (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the
* EBS volume.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block * Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input * mode. *
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using
* the EBS volume.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrainingInputMode
*/
public ChannelSpecification withSupportedInputModes(java.util.Collection
* The allowed input mode, either FILE or PIPE.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store
* (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the
* EBS volume.
*
* In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block * Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input * mode. *
*
* In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using
* the EBS volume.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrainingInputMode
*/
public ChannelSpecification withSupportedInputModes(TrainingInputMode... supportedInputModes) {
java.util.ArrayList