com.amazonaws.services.kinesisfirehose.model.IcebergDestinationConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kinesis Show documentation
/*
* 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.kinesisfirehose.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Specifies the destination configure settings for Apache Iceberg Table.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class IcebergDestinationConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to Apache
* Iceberg tables.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*/
private java.util.List destinationTableConfigurationList;
private BufferingHints bufferingHints;
private CloudWatchLoggingOptions cloudWatchLoggingOptions;
private ProcessingConfiguration processingConfiguration;
/**
*
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
for
* preview.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*/
private String s3BackupMode;
private RetryOptions retryOptions;
/**
*
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*/
private String roleARN;
/**
*
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*/
private CatalogConfiguration catalogConfiguration;
private S3DestinationConfiguration s3Configuration;
/**
*
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to Apache
* Iceberg tables.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @return Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to
* Apache Iceberg tables.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public java.util.List getDestinationTableConfigurationList() {
return destinationTableConfigurationList;
}
/**
*
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to Apache
* Iceberg tables.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param destinationTableConfigurationList
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to
* Apache Iceberg tables.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public void setDestinationTableConfigurationList(java.util.Collection destinationTableConfigurationList) {
if (destinationTableConfigurationList == null) {
this.destinationTableConfigurationList = null;
return;
}
this.destinationTableConfigurationList = new java.util.ArrayList(destinationTableConfigurationList);
}
/**
*
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to Apache
* Iceberg tables.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDestinationTableConfigurationList(java.util.Collection)} or
* {@link #withDestinationTableConfigurationList(java.util.Collection)} if you want to override the existing values.
*
*
* @param destinationTableConfigurationList
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to
* Apache Iceberg tables.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withDestinationTableConfigurationList(DestinationTableConfiguration... destinationTableConfigurationList) {
if (this.destinationTableConfigurationList == null) {
setDestinationTableConfigurationList(new java.util.ArrayList(destinationTableConfigurationList.length));
}
for (DestinationTableConfiguration ele : destinationTableConfigurationList) {
this.destinationTableConfigurationList.add(ele);
}
return this;
}
/**
*
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to Apache
* Iceberg tables.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param destinationTableConfigurationList
* Provides a list of DestinationTableConfigurations
which Firehose uses to deliver data to
* Apache Iceberg tables.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withDestinationTableConfigurationList(
java.util.Collection destinationTableConfigurationList) {
setDestinationTableConfigurationList(destinationTableConfigurationList);
return this;
}
/**
* @param bufferingHints
*/
public void setBufferingHints(BufferingHints bufferingHints) {
this.bufferingHints = bufferingHints;
}
/**
* @return
*/
public BufferingHints getBufferingHints() {
return this.bufferingHints;
}
/**
* @param bufferingHints
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withBufferingHints(BufferingHints bufferingHints) {
setBufferingHints(bufferingHints);
return this;
}
/**
* @param cloudWatchLoggingOptions
*/
public void setCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) {
this.cloudWatchLoggingOptions = cloudWatchLoggingOptions;
}
/**
* @return
*/
public CloudWatchLoggingOptions getCloudWatchLoggingOptions() {
return this.cloudWatchLoggingOptions;
}
/**
* @param cloudWatchLoggingOptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) {
setCloudWatchLoggingOptions(cloudWatchLoggingOptions);
return this;
}
/**
* @param processingConfiguration
*/
public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) {
this.processingConfiguration = processingConfiguration;
}
/**
* @return
*/
public ProcessingConfiguration getProcessingConfiguration() {
return this.processingConfiguration;
}
/**
* @param processingConfiguration
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withProcessingConfiguration(ProcessingConfiguration processingConfiguration) {
setProcessingConfiguration(processingConfiguration);
return this;
}
/**
*
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
for
* preview.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param s3BackupMode
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
* for preview.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @see IcebergS3BackupMode
*/
public void setS3BackupMode(String s3BackupMode) {
this.s3BackupMode = s3BackupMode;
}
/**
*
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
for
* preview.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @return Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
* for preview.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @see IcebergS3BackupMode
*/
public String getS3BackupMode() {
return this.s3BackupMode;
}
/**
*
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
for
* preview.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param s3BackupMode
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
* for preview.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IcebergS3BackupMode
*/
public IcebergDestinationConfiguration withS3BackupMode(String s3BackupMode) {
setS3BackupMode(s3BackupMode);
return this;
}
/**
*
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
for
* preview.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param s3BackupMode
* Describes how Firehose will backup records. Currently,Firehose only supports FailedDataOnly
* for preview.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IcebergS3BackupMode
*/
public IcebergDestinationConfiguration withS3BackupMode(IcebergS3BackupMode s3BackupMode) {
this.s3BackupMode = s3BackupMode.toString();
return this;
}
/**
* @param retryOptions
*/
public void setRetryOptions(RetryOptions retryOptions) {
this.retryOptions = retryOptions;
}
/**
* @return
*/
public RetryOptions getRetryOptions() {
return this.retryOptions;
}
/**
* @param retryOptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withRetryOptions(RetryOptions retryOptions) {
setRetryOptions(retryOptions);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param roleARN
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public void setRoleARN(String roleARN) {
this.roleARN = roleARN;
}
/**
*
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @return The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public String getRoleARN() {
return this.roleARN;
}
/**
*
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param roleARN
* The Amazon Resource Name (ARN) of the Apache Iceberg tables role.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withRoleARN(String roleARN) {
setRoleARN(roleARN);
return this;
}
/**
*
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param catalogConfiguration
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public void setCatalogConfiguration(CatalogConfiguration catalogConfiguration) {
this.catalogConfiguration = catalogConfiguration;
}
/**
*
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @return Configuration describing where the destination Apache Iceberg Tables are persisted.
*
* Amazon Data Firehose is in preview release and is subject to change.
*/
public CatalogConfiguration getCatalogConfiguration() {
return this.catalogConfiguration;
}
/**
*
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
*
* Amazon Data Firehose is in preview release and is subject to change.
*
*
* @param catalogConfiguration
* Configuration describing where the destination Apache Iceberg Tables are persisted.
*
* Amazon Data Firehose is in preview release and is subject to change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withCatalogConfiguration(CatalogConfiguration catalogConfiguration) {
setCatalogConfiguration(catalogConfiguration);
return this;
}
/**
* @param s3Configuration
*/
public void setS3Configuration(S3DestinationConfiguration s3Configuration) {
this.s3Configuration = s3Configuration;
}
/**
* @return
*/
public S3DestinationConfiguration getS3Configuration() {
return this.s3Configuration;
}
/**
* @param s3Configuration
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IcebergDestinationConfiguration withS3Configuration(S3DestinationConfiguration s3Configuration) {
setS3Configuration(s3Configuration);
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 (getDestinationTableConfigurationList() != null)
sb.append("DestinationTableConfigurationList: ").append(getDestinationTableConfigurationList()).append(",");
if (getBufferingHints() != null)
sb.append("BufferingHints: ").append(getBufferingHints()).append(",");
if (getCloudWatchLoggingOptions() != null)
sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(",");
if (getProcessingConfiguration() != null)
sb.append("ProcessingConfiguration: ").append(getProcessingConfiguration()).append(",");
if (getS3BackupMode() != null)
sb.append("S3BackupMode: ").append(getS3BackupMode()).append(",");
if (getRetryOptions() != null)
sb.append("RetryOptions: ").append(getRetryOptions()).append(",");
if (getRoleARN() != null)
sb.append("RoleARN: ").append(getRoleARN()).append(",");
if (getCatalogConfiguration() != null)
sb.append("CatalogConfiguration: ").append(getCatalogConfiguration()).append(",");
if (getS3Configuration() != null)
sb.append("S3Configuration: ").append(getS3Configuration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof IcebergDestinationConfiguration == false)
return false;
IcebergDestinationConfiguration other = (IcebergDestinationConfiguration) obj;
if (other.getDestinationTableConfigurationList() == null ^ this.getDestinationTableConfigurationList() == null)
return false;
if (other.getDestinationTableConfigurationList() != null
&& other.getDestinationTableConfigurationList().equals(this.getDestinationTableConfigurationList()) == 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.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null)
return false;
if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals(this.getCloudWatchLoggingOptions()) == false)
return false;
if (other.getProcessingConfiguration() == null ^ this.getProcessingConfiguration() == null)
return false;
if (other.getProcessingConfiguration() != null && other.getProcessingConfiguration().equals(this.getProcessingConfiguration()) == false)
return false;
if (other.getS3BackupMode() == null ^ this.getS3BackupMode() == null)
return false;
if (other.getS3BackupMode() != null && other.getS3BackupMode().equals(this.getS3BackupMode()) == false)
return false;
if (other.getRetryOptions() == null ^ this.getRetryOptions() == null)
return false;
if (other.getRetryOptions() != null && other.getRetryOptions().equals(this.getRetryOptions()) == false)
return false;
if (other.getRoleARN() == null ^ this.getRoleARN() == null)
return false;
if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false)
return false;
if (other.getCatalogConfiguration() == null ^ this.getCatalogConfiguration() == null)
return false;
if (other.getCatalogConfiguration() != null && other.getCatalogConfiguration().equals(this.getCatalogConfiguration()) == false)
return false;
if (other.getS3Configuration() == null ^ this.getS3Configuration() == null)
return false;
if (other.getS3Configuration() != null && other.getS3Configuration().equals(this.getS3Configuration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDestinationTableConfigurationList() == null) ? 0 : getDestinationTableConfigurationList().hashCode());
hashCode = prime * hashCode + ((getBufferingHints() == null) ? 0 : getBufferingHints().hashCode());
hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode());
hashCode = prime * hashCode + ((getProcessingConfiguration() == null) ? 0 : getProcessingConfiguration().hashCode());
hashCode = prime * hashCode + ((getS3BackupMode() == null) ? 0 : getS3BackupMode().hashCode());
hashCode = prime * hashCode + ((getRetryOptions() == null) ? 0 : getRetryOptions().hashCode());
hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode());
hashCode = prime * hashCode + ((getCatalogConfiguration() == null) ? 0 : getCatalogConfiguration().hashCode());
hashCode = prime * hashCode + ((getS3Configuration() == null) ? 0 : getS3Configuration().hashCode());
return hashCode;
}
@Override
public IcebergDestinationConfiguration clone() {
try {
return (IcebergDestinationConfiguration) 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.kinesisfirehose.model.transform.IcebergDestinationConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}