All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.appflow.model.UpsolverS3OutputFormatConfig Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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 formats the flow output data when Upsolver is used as the * destination. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpsolverS3OutputFormatConfig implements Serializable, Cloneable, StructuredPojo { /** *

* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. *

*/ private String fileType; private PrefixConfig prefixConfig; private AggregationConfig aggregationConfig; /** *

* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. *

* * @param fileType * Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. * @see FileType */ public void setFileType(String fileType) { this.fileType = fileType; } /** *

* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. *

* * @return Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. * @see FileType */ public String getFileType() { return this.fileType; } /** *

* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. *

* * @param fileType * Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see FileType */ public UpsolverS3OutputFormatConfig withFileType(String fileType) { setFileType(fileType); return this; } /** *

* Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. *

* * @param fileType * Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see FileType */ public UpsolverS3OutputFormatConfig withFileType(FileType fileType) { this.fileType = fileType.toString(); return this; } /** * @param prefixConfig */ public void setPrefixConfig(PrefixConfig prefixConfig) { this.prefixConfig = prefixConfig; } /** * @return */ public PrefixConfig getPrefixConfig() { return this.prefixConfig; } /** * @param prefixConfig * @return Returns a reference to this object so that method calls can be chained together. */ public UpsolverS3OutputFormatConfig 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 UpsolverS3OutputFormatConfig withAggregationConfig(AggregationConfig aggregationConfig) { setAggregationConfig(aggregationConfig); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFileType() != null) sb.append("FileType: ").append(getFileType()).append(","); if (getPrefixConfig() != null) sb.append("PrefixConfig: ").append(getPrefixConfig()).append(","); if (getAggregationConfig() != null) sb.append("AggregationConfig: ").append(getAggregationConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpsolverS3OutputFormatConfig == false) return false; UpsolverS3OutputFormatConfig other = (UpsolverS3OutputFormatConfig) obj; if (other.getFileType() == null ^ this.getFileType() == null) return false; if (other.getFileType() != null && other.getFileType().equals(this.getFileType()) == false) return false; if (other.getPrefixConfig() == null ^ this.getPrefixConfig() == null) return false; if (other.getPrefixConfig() != null && other.getPrefixConfig().equals(this.getPrefixConfig()) == false) return false; if (other.getAggregationConfig() == null ^ this.getAggregationConfig() == null) return false; if (other.getAggregationConfig() != null && other.getAggregationConfig().equals(this.getAggregationConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileType() == null) ? 0 : getFileType().hashCode()); hashCode = prime * hashCode + ((getPrefixConfig() == null) ? 0 : getPrefixConfig().hashCode()); hashCode = prime * hashCode + ((getAggregationConfig() == null) ? 0 : getAggregationConfig().hashCode()); return hashCode; } @Override public UpsolverS3OutputFormatConfig clone() { try { return (UpsolverS3OutputFormatConfig) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.appflow.model.transform.UpsolverS3OutputFormatConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy