/* * 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.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the * destination. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3OutputFormatConfig implements Serializable, Cloneable, StructuredPojo { /** ** Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. *
*/ private String fileType; /** ** Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. *
*/ private PrefixConfig prefixConfig; private AggregationConfig aggregationConfig; /** ** If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types * in your source data when it writes the output to Amazon S3. *
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer
* or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For
* example, an integer of 1
in your source data becomes the string "1"
in the output.
*
* Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. *
* * @param fileType * Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. * @see FileType */ public void setFileType(String fileType) { this.fileType = fileType; } /** ** Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. *
* * @return Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. * @see FileType */ public String getFileType() { return this.fileType; } /** ** Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. *
* * @param fileType * Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see FileType */ public S3OutputFormatConfig withFileType(String fileType) { setFileType(fileType); return this; } /** ** Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. *
* * @param fileType * Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see FileType */ public S3OutputFormatConfig withFileType(FileType fileType) { this.fileType = fileType.toString(); return this; } /** ** Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. *
* * @param prefixConfig * Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. */ public void setPrefixConfig(PrefixConfig prefixConfig) { this.prefixConfig = prefixConfig; } /** ** Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. *
* * @return Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can * name folders according to the flow frequency and date. */ public PrefixConfig getPrefixConfig() { return this.prefixConfig; } /** ** Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. *
* * @param prefixConfig * Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name * folders according to the flow frequency and date. * @return Returns a reference to this object so that method calls can be chained together. */ public S3OutputFormatConfig withPrefixConfig(PrefixConfig prefixConfig) { setPrefixConfig(prefixConfig); return this; } /** * @param aggregationConfig */ public void setAggregationConfig(AggregationConfig aggregationConfig) { this.aggregationConfig = aggregationConfig; } /** * @return */ public AggregationConfig getAggregationConfig() { return this.aggregationConfig; } /** * @param aggregationConfig * @return Returns a reference to this object so that method calls can be chained together. */ public S3OutputFormatConfig withAggregationConfig(AggregationConfig aggregationConfig) { setAggregationConfig(aggregationConfig); return this; } /** ** If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types * in your source data when it writes the output to Amazon S3. *
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer
* or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For
* example, an integer of 1
in your source data becomes the string "1"
in the output.
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an
* integer or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon
* S3. For example, an integer of 1
in your source data becomes the string "1"
in
* the output.
*
* If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types * in your source data when it writes the output to Amazon S3. *
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer
* or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For
* example, an integer of 1
in your source data becomes the string "1"
in the output.
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an
* integer or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon
* S3. For example, an integer of 1
in your source data becomes the string "1"
in
* the output.
*
* If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types * in your source data when it writes the output to Amazon S3. *
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer
* or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For
* example, an integer of 1
in your source data becomes the string "1"
in the output.
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an
* integer or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon
* S3. For example, an integer of 1
in your source data becomes the string "1"
in
* the output.
*
* If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types * in your source data when it writes the output to Amazon S3. *
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer
* or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For
* example, an integer of 1
in your source data becomes the string "1"
in the output.
*
* true
: Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an
* integer or 1
in your source data is still an integer in your output.
*
* false
: Amazon AppFlow converts all of the source data into strings when it writes to Amazon
* S3. For example, an integer of 1
in your source data becomes the string "1"
in
* the output.
*