/* * 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; /** *
* Specifies elements that Amazon AppFlow includes in the file and folder names in the flow destination. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PrefixConfig implements Serializable, Cloneable, StructuredPojo { /** ** Determines the format of the prefix, and whether it applies to the file name, file path, or both. *
*/ private String prefixType; /** ** Determines the level of granularity for the date and time that's included in the prefix. *
*/ private String prefixFormat; /** ** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** Determines the format of the prefix, and whether it applies to the file name, file path, or both. *
* * @param prefixType * Determines the format of the prefix, and whether it applies to the file name, file path, or both. * @see PrefixType */ public void setPrefixType(String prefixType) { this.prefixType = prefixType; } /** ** Determines the format of the prefix, and whether it applies to the file name, file path, or both. *
* * @return Determines the format of the prefix, and whether it applies to the file name, file path, or both. * @see PrefixType */ public String getPrefixType() { return this.prefixType; } /** ** Determines the format of the prefix, and whether it applies to the file name, file path, or both. *
* * @param prefixType * Determines the format of the prefix, and whether it applies to the file name, file path, or both. * @return Returns a reference to this object so that method calls can be chained together. * @see PrefixType */ public PrefixConfig withPrefixType(String prefixType) { setPrefixType(prefixType); return this; } /** ** Determines the format of the prefix, and whether it applies to the file name, file path, or both. *
* * @param prefixType * Determines the format of the prefix, and whether it applies to the file name, file path, or both. * @return Returns a reference to this object so that method calls can be chained together. * @see PrefixType */ public PrefixConfig withPrefixType(PrefixType prefixType) { this.prefixType = prefixType.toString(); return this; } /** ** Determines the level of granularity for the date and time that's included in the prefix. *
* * @param prefixFormat * Determines the level of granularity for the date and time that's included in the prefix. * @see PrefixFormat */ public void setPrefixFormat(String prefixFormat) { this.prefixFormat = prefixFormat; } /** ** Determines the level of granularity for the date and time that's included in the prefix. *
* * @return Determines the level of granularity for the date and time that's included in the prefix. * @see PrefixFormat */ public String getPrefixFormat() { return this.prefixFormat; } /** ** Determines the level of granularity for the date and time that's included in the prefix. *
* * @param prefixFormat * Determines the level of granularity for the date and time that's included in the prefix. * @return Returns a reference to this object so that method calls can be chained together. * @see PrefixFormat */ public PrefixConfig withPrefixFormat(String prefixFormat) { setPrefixFormat(prefixFormat); return this; } /** ** Determines the level of granularity for the date and time that's included in the prefix. *
* * @param prefixFormat * Determines the level of granularity for the date and time that's included in the prefix. * @return Returns a reference to this object so that method calls can be chained together. * @see PrefixFormat */ public PrefixConfig withPrefixFormat(PrefixFormat prefixFormat) { this.prefixFormat = prefixFormat.toString(); return this; } /** ** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number * increases by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number * increases by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPathPrefixHierarchy(java.util.Collection)} or {@link #withPathPrefixHierarchy(java.util.Collection)} * if you want to override the existing values. *
* * @param pathPrefixHierarchy * Specifies whether the destination file path includes either or both of the following elements: ** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number * increases by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number * increases by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** Specifies whether the destination file path includes either or both of the following elements: *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases * by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
** The ID that Amazon AppFlow assigns to the flow run. *
** The version number of your data schema. Amazon AppFlow assigns this version number. The version number * increases by one when you change any of the following settings in your flow configuration: *
** Source-to-destination field mappings *
** Field data types *
** Partition keys *
*