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

com.amazonaws.services.kinesisfirehose.model.S3DestinationUpdate Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis module holds the client classes that are used for communicating with Amazon Kinesis Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2010-2016 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.kinesisfirehose.model;

import java.io.Serializable;

/**
 * 

* Describes an update for a destination in Amazon S3. *

*/ public class S3DestinationUpdate implements Serializable, Cloneable { /** *

* The ARN of the AWS credentials. *

*/ private String roleARN; /** *

* The ARN of the S3 bucket. *

*/ private String bucketARN; /** *

* The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in front * of the time format prefix. Note that if the prefix ends with a slash, it * appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis * Firehose Developer Guide. *

*/ private String prefix; /** *

* The buffering option. If no value is specified, BufferingHints * object default values are used. *

*/ private BufferingHints bufferingHints; /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

*/ private String compressionFormat; /** *

* The encryption configuration. If no value is specified, the default is no * encryption. *

*/ private EncryptionConfiguration encryptionConfiguration; /** *

* Describes CloudWatch logging options for your delivery stream. *

*/ private CloudWatchLoggingOptions cloudWatchLoggingOptions; /** *

* The ARN of the AWS credentials. *

* * @param roleARN * The ARN of the AWS credentials. */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* The ARN of the AWS credentials. *

* * @return The ARN of the AWS credentials. */ public String getRoleARN() { return this.roleARN; } /** *

* The ARN of the AWS credentials. *

* * @param roleARN * The ARN of the AWS credentials. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* The ARN of the S3 bucket. *

* * @param bucketARN * The ARN of the S3 bucket. */ public void setBucketARN(String bucketARN) { this.bucketARN = bucketARN; } /** *

* The ARN of the S3 bucket. *

* * @return The ARN of the S3 bucket. */ public String getBucketARN() { return this.bucketARN; } /** *

* The ARN of the S3 bucket. *

* * @param bucketARN * The ARN of the S3 bucket. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withBucketARN(String bucketARN) { setBucketARN(bucketARN); return this; } /** *

* The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in front * of the time format prefix. Note that if the prefix ends with a slash, it * appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis * Firehose Developer Guide. *

* * @param prefix * The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in * front of the time format prefix. Note that if the prefix ends with * a slash, it appears as a folder in the S3 bucket. For more * information, see Amazon S3 Object Name Format in the Amazon * Kinesis Firehose Developer Guide. */ public void setPrefix(String prefix) { this.prefix = prefix; } /** *

* The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in front * of the time format prefix. Note that if the prefix ends with a slash, it * appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis * Firehose Developer Guide. *

* * @return The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added * in front of the time format prefix. Note that if the prefix ends * with a slash, it appears as a folder in the S3 bucket. For more * information, see Amazon S3 Object Name Format in the Amazon * Kinesis Firehose Developer Guide. */ public String getPrefix() { return this.prefix; } /** *

* The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in front * of the time format prefix. Note that if the prefix ends with a slash, it * appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis * Firehose Developer Guide. *

* * @param prefix * The "YYYY/MM/DD/HH" time format prefix is automatically used for * delivered S3 files. You can specify an extra prefix to be added in * front of the time format prefix. Note that if the prefix ends with * a slash, it appears as a folder in the S3 bucket. For more * information, see Amazon S3 Object Name Format in the Amazon * Kinesis Firehose Developer Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withPrefix(String prefix) { setPrefix(prefix); return this; } /** *

* The buffering option. If no value is specified, BufferingHints * object default values are used. *

* * @param bufferingHints * The buffering option. If no value is specified, * BufferingHints object default values are used. */ public void setBufferingHints(BufferingHints bufferingHints) { this.bufferingHints = bufferingHints; } /** *

* The buffering option. If no value is specified, BufferingHints * object default values are used. *

* * @return The buffering option. If no value is specified, * BufferingHints object default values are used. */ public BufferingHints getBufferingHints() { return this.bufferingHints; } /** *

* The buffering option. If no value is specified, BufferingHints * object default values are used. *

* * @param bufferingHints * The buffering option. If no value is specified, * BufferingHints object default values are used. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withBufferingHints(BufferingHints bufferingHints) { setBufferingHints(bufferingHints); return this; } /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

* * @param compressionFormat * The compression format. If no value is specified, the default is * NOCOMPRESSION.

*

* The compression formats SNAPPY or ZIP * cannot be specified for Amazon Redshift destinations because they * are not supported by the Amazon Redshift COPY * operation that reads from the S3 bucket. * @see CompressionFormat */ public void setCompressionFormat(String compressionFormat) { this.compressionFormat = compressionFormat; } /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

* * @return The compression format. If no value is specified, the default is * NOCOMPRESSION.

*

* The compression formats SNAPPY or ZIP * cannot be specified for Amazon Redshift destinations because they * are not supported by the Amazon Redshift COPY * operation that reads from the S3 bucket. * @see CompressionFormat */ public String getCompressionFormat() { return this.compressionFormat; } /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

* * @param compressionFormat * The compression format. If no value is specified, the default is * NOCOMPRESSION.

*

* The compression formats SNAPPY or ZIP * cannot be specified for Amazon Redshift destinations because they * are not supported by the Amazon Redshift COPY * operation that reads from the S3 bucket. * @return Returns a reference to this object so that method calls can be * chained together. * @see CompressionFormat */ public S3DestinationUpdate withCompressionFormat(String compressionFormat) { setCompressionFormat(compressionFormat); return this; } /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

* * @param compressionFormat * The compression format. If no value is specified, the default is * NOCOMPRESSION.

*

* The compression formats SNAPPY or ZIP * cannot be specified for Amazon Redshift destinations because they * are not supported by the Amazon Redshift COPY * operation that reads from the S3 bucket. * @see CompressionFormat */ public void setCompressionFormat(CompressionFormat compressionFormat) { this.compressionFormat = compressionFormat.toString(); } /** *

* The compression format. If no value is specified, the default is * NOCOMPRESSION. *

*

* The compression formats SNAPPY or ZIP cannot be * specified for Amazon Redshift destinations because they are not supported * by the Amazon Redshift COPY operation that reads from the S3 * bucket. *

* * @param compressionFormat * The compression format. If no value is specified, the default is * NOCOMPRESSION.

*

* The compression formats SNAPPY or ZIP * cannot be specified for Amazon Redshift destinations because they * are not supported by the Amazon Redshift COPY * operation that reads from the S3 bucket. * @return Returns a reference to this object so that method calls can be * chained together. * @see CompressionFormat */ public S3DestinationUpdate withCompressionFormat( CompressionFormat compressionFormat) { setCompressionFormat(compressionFormat); return this; } /** *

* The encryption configuration. If no value is specified, the default is no * encryption. *

* * @param encryptionConfiguration * The encryption configuration. If no value is specified, the * default is no encryption. */ public void setEncryptionConfiguration( EncryptionConfiguration encryptionConfiguration) { this.encryptionConfiguration = encryptionConfiguration; } /** *

* The encryption configuration. If no value is specified, the default is no * encryption. *

* * @return The encryption configuration. If no value is specified, the * default is no encryption. */ public EncryptionConfiguration getEncryptionConfiguration() { return this.encryptionConfiguration; } /** *

* The encryption configuration. If no value is specified, the default is no * encryption. *

* * @param encryptionConfiguration * The encryption configuration. If no value is specified, the * default is no encryption. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withEncryptionConfiguration( EncryptionConfiguration encryptionConfiguration) { setEncryptionConfiguration(encryptionConfiguration); return this; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * Describes CloudWatch logging options for your delivery stream. */ public void setCloudWatchLoggingOptions( CloudWatchLoggingOptions cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions = cloudWatchLoggingOptions; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @return Describes CloudWatch logging options for your delivery stream. */ public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return this.cloudWatchLoggingOptions; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * Describes CloudWatch logging options for your delivery stream. * @return Returns a reference to this object so that method calls can be * chained together. */ public S3DestinationUpdate withCloudWatchLoggingOptions( CloudWatchLoggingOptions cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRoleARN() != null) sb.append("RoleARN: " + getRoleARN() + ","); if (getBucketARN() != null) sb.append("BucketARN: " + getBucketARN() + ","); if (getPrefix() != null) sb.append("Prefix: " + getPrefix() + ","); if (getBufferingHints() != null) sb.append("BufferingHints: " + getBufferingHints() + ","); if (getCompressionFormat() != null) sb.append("CompressionFormat: " + getCompressionFormat() + ","); if (getEncryptionConfiguration() != null) sb.append("EncryptionConfiguration: " + getEncryptionConfiguration() + ","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: " + getCloudWatchLoggingOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof S3DestinationUpdate == false) return false; S3DestinationUpdate other = (S3DestinationUpdate) obj; if (other.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; if (other.getBucketARN() == null ^ this.getBucketARN() == null) return false; if (other.getBucketARN() != null && other.getBucketARN().equals(this.getBucketARN()) == false) return false; if (other.getPrefix() == null ^ this.getPrefix() == null) return false; if (other.getPrefix() != null && other.getPrefix().equals(this.getPrefix()) == false) return false; if (other.getBufferingHints() == null ^ this.getBufferingHints() == null) return false; if (other.getBufferingHints() != null && other.getBufferingHints().equals(this.getBufferingHints()) == false) return false; if (other.getCompressionFormat() == null ^ this.getCompressionFormat() == null) return false; if (other.getCompressionFormat() != null && other.getCompressionFormat().equals( this.getCompressionFormat()) == false) return false; if (other.getEncryptionConfiguration() == null ^ this.getEncryptionConfiguration() == null) return false; if (other.getEncryptionConfiguration() != null && other.getEncryptionConfiguration().equals( this.getEncryptionConfiguration()) == false) return false; if (other.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null) return false; if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals( this.getCloudWatchLoggingOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getBucketARN() == null) ? 0 : getBucketARN().hashCode()); hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode()); hashCode = prime * hashCode + ((getBufferingHints() == null) ? 0 : getBufferingHints() .hashCode()); hashCode = prime * hashCode + ((getCompressionFormat() == null) ? 0 : getCompressionFormat().hashCode()); hashCode = prime * hashCode + ((getEncryptionConfiguration() == null) ? 0 : getEncryptionConfiguration().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); return hashCode; } @Override public S3DestinationUpdate clone() { try { return (S3DestinationUpdate) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy