/* * 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.s3control.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes the format of a manifest. If the manifest is in CSV format, also describes the columns contained within the * manifest. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JobManifestSpec implements Serializable, Cloneable { /** ** Indicates which of the available formats the specified manifest uses. *
*/ private String format; /** *
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
* Indicates which of the available formats the specified manifest uses. *
* * @param format * Indicates which of the available formats the specified manifest uses. * @see JobManifestFormat */ public void setFormat(String format) { this.format = format; } /** ** Indicates which of the available formats the specified manifest uses. *
* * @return Indicates which of the available formats the specified manifest uses. * @see JobManifestFormat */ public String getFormat() { return this.format; } /** ** Indicates which of the available formats the specified manifest uses. *
* * @param format * Indicates which of the available formats the specified manifest uses. * @return Returns a reference to this object so that method calls can be chained together. * @see JobManifestFormat */ public JobManifestSpec withFormat(String format) { setFormat(format); return this; } /** ** Indicates which of the available formats the specified manifest uses. *
* * @param format * Indicates which of the available formats the specified manifest uses. * @return Returns a reference to this object so that method calls can be chained together. * @see JobManifestFormat */ public JobManifestSpec withFormat(JobManifestFormat format) { this.format = format.toString(); return this; } /** *
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
S3BatchOperations_CSV_20180820
format, this
* element describes which columns contain the required data.
* @see JobManifestFieldName
*/
public java.util.List
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
S3BatchOperations_CSV_20180820
format, this
* element describes which columns contain the required data.
* @see JobManifestFieldName
*/
public void setFields(java.util.Collection
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the * existing values. *
* * @param fields * If the specified manifest object is in theS3BatchOperations_CSV_20180820
format, this
* element describes which columns contain the required data.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobManifestFieldName
*/
public JobManifestSpec withFields(String... fields) {
if (this.fields == null) {
setFields(new java.util.ArrayList
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
S3BatchOperations_CSV_20180820
format, this
* element describes which columns contain the required data.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobManifestFieldName
*/
public JobManifestSpec withFields(java.util.Collection
* If the specified manifest object is in the S3BatchOperations_CSV_20180820
format, this element
* describes which columns contain the required data.
*
S3BatchOperations_CSV_20180820
format, this
* element describes which columns contain the required data.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobManifestFieldName
*/
public JobManifestSpec withFields(JobManifestFieldName... fields) {
java.util.ArrayList