/* * 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; /** *
* The configuration for the payload for a recommendation job. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecommendationJobPayloadConfig implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). *
*/ private String samplePayloadUrl; /** ** The supported MIME types for the input data. *
*/ private java.util.List* The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). *
* * @param samplePayloadUrl * The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). */ public void setSamplePayloadUrl(String samplePayloadUrl) { this.samplePayloadUrl = samplePayloadUrl; } /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). *
* * @return The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). */ public String getSamplePayloadUrl() { return this.samplePayloadUrl; } /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). *
* * @param samplePayloadUrl * The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendationJobPayloadConfig withSamplePayloadUrl(String samplePayloadUrl) { setSamplePayloadUrl(samplePayloadUrl); return this; } /** ** The supported MIME types for the input data. *
* * @return The supported MIME types for the input data. */ public java.util.List* The supported MIME types for the input data. *
* * @param supportedContentTypes * The supported MIME types for the input data. */ public void setSupportedContentTypes(java.util.Collection* The supported MIME types for the input 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 input data. * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendationJobPayloadConfig withSupportedContentTypes(String... supportedContentTypes) { if (this.supportedContentTypes == null) { setSupportedContentTypes(new java.util.ArrayList* The supported MIME types for the input data. *
* * @param supportedContentTypes * The supported MIME types for the input data. * @return Returns a reference to this object so that method calls can be chained together. */ public RecommendationJobPayloadConfig withSupportedContentTypes(java.util.Collection