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

com.amazonaws.services.kinesisfirehose.model.DestinationDescription 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.778
Show newest version
/*
 * 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;

/**
 * 

* Describes the destination for a delivery stream. *

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

* The ID of the destination. *

*/ private String destinationId; /** *

* [Deprecated] The destination in Amazon S3. *

*/ private S3DestinationDescription s3DestinationDescription; /** *

* The destination in Amazon S3. *

*/ private ExtendedS3DestinationDescription extendedS3DestinationDescription; /** *

* The destination in Amazon Redshift. *

*/ private RedshiftDestinationDescription redshiftDestinationDescription; /** *

* The destination in Amazon ES. *

*/ private ElasticsearchDestinationDescription elasticsearchDestinationDescription; /** *

* The destination in Amazon OpenSearch Service. *

*/ private AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription; /** *

* The destination in Splunk. *

*/ private SplunkDestinationDescription splunkDestinationDescription; /** *

* Describes the specified HTTP endpoint destination. *

*/ private HttpEndpointDestinationDescription httpEndpointDestinationDescription; /** *

* Optional description for the destination *

*/ private SnowflakeDestinationDescription snowflakeDestinationDescription; /** *

* The destination in the Serverless offering for Amazon OpenSearch Service. *

*/ private AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription; /** *

* Describes a destination in Apache Iceberg Tables. *

*

* Amazon Data Firehose is in preview release and is subject to change. *

*/ private IcebergDestinationDescription icebergDestinationDescription; /** *

* The ID of the destination. *

* * @param destinationId * The ID of the destination. */ public void setDestinationId(String destinationId) { this.destinationId = destinationId; } /** *

* The ID of the destination. *

* * @return The ID of the destination. */ public String getDestinationId() { return this.destinationId; } /** *

* The ID of the destination. *

* * @param destinationId * The ID of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withDestinationId(String destinationId) { setDestinationId(destinationId); return this; } /** *

* [Deprecated] The destination in Amazon S3. *

* * @param s3DestinationDescription * [Deprecated] The destination in Amazon S3. */ public void setS3DestinationDescription(S3DestinationDescription s3DestinationDescription) { this.s3DestinationDescription = s3DestinationDescription; } /** *

* [Deprecated] The destination in Amazon S3. *

* * @return [Deprecated] The destination in Amazon S3. */ public S3DestinationDescription getS3DestinationDescription() { return this.s3DestinationDescription; } /** *

* [Deprecated] The destination in Amazon S3. *

* * @param s3DestinationDescription * [Deprecated] The destination in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withS3DestinationDescription(S3DestinationDescription s3DestinationDescription) { setS3DestinationDescription(s3DestinationDescription); return this; } /** *

* The destination in Amazon S3. *

* * @param extendedS3DestinationDescription * The destination in Amazon S3. */ public void setExtendedS3DestinationDescription(ExtendedS3DestinationDescription extendedS3DestinationDescription) { this.extendedS3DestinationDescription = extendedS3DestinationDescription; } /** *

* The destination in Amazon S3. *

* * @return The destination in Amazon S3. */ public ExtendedS3DestinationDescription getExtendedS3DestinationDescription() { return this.extendedS3DestinationDescription; } /** *

* The destination in Amazon S3. *

* * @param extendedS3DestinationDescription * The destination in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withExtendedS3DestinationDescription(ExtendedS3DestinationDescription extendedS3DestinationDescription) { setExtendedS3DestinationDescription(extendedS3DestinationDescription); return this; } /** *

* The destination in Amazon Redshift. *

* * @param redshiftDestinationDescription * The destination in Amazon Redshift. */ public void setRedshiftDestinationDescription(RedshiftDestinationDescription redshiftDestinationDescription) { this.redshiftDestinationDescription = redshiftDestinationDescription; } /** *

* The destination in Amazon Redshift. *

* * @return The destination in Amazon Redshift. */ public RedshiftDestinationDescription getRedshiftDestinationDescription() { return this.redshiftDestinationDescription; } /** *

* The destination in Amazon Redshift. *

* * @param redshiftDestinationDescription * The destination in Amazon Redshift. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withRedshiftDestinationDescription(RedshiftDestinationDescription redshiftDestinationDescription) { setRedshiftDestinationDescription(redshiftDestinationDescription); return this; } /** *

* The destination in Amazon ES. *

* * @param elasticsearchDestinationDescription * The destination in Amazon ES. */ public void setElasticsearchDestinationDescription(ElasticsearchDestinationDescription elasticsearchDestinationDescription) { this.elasticsearchDestinationDescription = elasticsearchDestinationDescription; } /** *

* The destination in Amazon ES. *

* * @return The destination in Amazon ES. */ public ElasticsearchDestinationDescription getElasticsearchDestinationDescription() { return this.elasticsearchDestinationDescription; } /** *

* The destination in Amazon ES. *

* * @param elasticsearchDestinationDescription * The destination in Amazon ES. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withElasticsearchDestinationDescription(ElasticsearchDestinationDescription elasticsearchDestinationDescription) { setElasticsearchDestinationDescription(elasticsearchDestinationDescription); return this; } /** *

* The destination in Amazon OpenSearch Service. *

* * @param amazonopensearchserviceDestinationDescription * The destination in Amazon OpenSearch Service. */ public void setAmazonopensearchserviceDestinationDescription(AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription) { this.amazonopensearchserviceDestinationDescription = amazonopensearchserviceDestinationDescription; } /** *

* The destination in Amazon OpenSearch Service. *

* * @return The destination in Amazon OpenSearch Service. */ public AmazonopensearchserviceDestinationDescription getAmazonopensearchserviceDestinationDescription() { return this.amazonopensearchserviceDestinationDescription; } /** *

* The destination in Amazon OpenSearch Service. *

* * @param amazonopensearchserviceDestinationDescription * The destination in Amazon OpenSearch Service. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withAmazonopensearchserviceDestinationDescription( AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription) { setAmazonopensearchserviceDestinationDescription(amazonopensearchserviceDestinationDescription); return this; } /** *

* The destination in Splunk. *

* * @param splunkDestinationDescription * The destination in Splunk. */ public void setSplunkDestinationDescription(SplunkDestinationDescription splunkDestinationDescription) { this.splunkDestinationDescription = splunkDestinationDescription; } /** *

* The destination in Splunk. *

* * @return The destination in Splunk. */ public SplunkDestinationDescription getSplunkDestinationDescription() { return this.splunkDestinationDescription; } /** *

* The destination in Splunk. *

* * @param splunkDestinationDescription * The destination in Splunk. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withSplunkDestinationDescription(SplunkDestinationDescription splunkDestinationDescription) { setSplunkDestinationDescription(splunkDestinationDescription); return this; } /** *

* Describes the specified HTTP endpoint destination. *

* * @param httpEndpointDestinationDescription * Describes the specified HTTP endpoint destination. */ public void setHttpEndpointDestinationDescription(HttpEndpointDestinationDescription httpEndpointDestinationDescription) { this.httpEndpointDestinationDescription = httpEndpointDestinationDescription; } /** *

* Describes the specified HTTP endpoint destination. *

* * @return Describes the specified HTTP endpoint destination. */ public HttpEndpointDestinationDescription getHttpEndpointDestinationDescription() { return this.httpEndpointDestinationDescription; } /** *

* Describes the specified HTTP endpoint destination. *

* * @param httpEndpointDestinationDescription * Describes the specified HTTP endpoint destination. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withHttpEndpointDestinationDescription(HttpEndpointDestinationDescription httpEndpointDestinationDescription) { setHttpEndpointDestinationDescription(httpEndpointDestinationDescription); return this; } /** *

* Optional description for the destination *

* * @param snowflakeDestinationDescription * Optional description for the destination */ public void setSnowflakeDestinationDescription(SnowflakeDestinationDescription snowflakeDestinationDescription) { this.snowflakeDestinationDescription = snowflakeDestinationDescription; } /** *

* Optional description for the destination *

* * @return Optional description for the destination */ public SnowflakeDestinationDescription getSnowflakeDestinationDescription() { return this.snowflakeDestinationDescription; } /** *

* Optional description for the destination *

* * @param snowflakeDestinationDescription * Optional description for the destination * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withSnowflakeDestinationDescription(SnowflakeDestinationDescription snowflakeDestinationDescription) { setSnowflakeDestinationDescription(snowflakeDestinationDescription); return this; } /** *

* The destination in the Serverless offering for Amazon OpenSearch Service. *

* * @param amazonOpenSearchServerlessDestinationDescription * The destination in the Serverless offering for Amazon OpenSearch Service. */ public void setAmazonOpenSearchServerlessDestinationDescription( AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription) { this.amazonOpenSearchServerlessDestinationDescription = amazonOpenSearchServerlessDestinationDescription; } /** *

* The destination in the Serverless offering for Amazon OpenSearch Service. *

* * @return The destination in the Serverless offering for Amazon OpenSearch Service. */ public AmazonOpenSearchServerlessDestinationDescription getAmazonOpenSearchServerlessDestinationDescription() { return this.amazonOpenSearchServerlessDestinationDescription; } /** *

* The destination in the Serverless offering for Amazon OpenSearch Service. *

* * @param amazonOpenSearchServerlessDestinationDescription * The destination in the Serverless offering for Amazon OpenSearch Service. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationDescription withAmazonOpenSearchServerlessDestinationDescription( AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription) { setAmazonOpenSearchServerlessDestinationDescription(amazonOpenSearchServerlessDestinationDescription); return this; } /** *

* Describes a destination in Apache Iceberg Tables. *

*

* Amazon Data Firehose is in preview release and is subject to change. *

* * @param icebergDestinationDescription * Describes a destination in Apache Iceberg Tables.

*

* Amazon Data Firehose is in preview release and is subject to change. */ public void setIcebergDestinationDescription(IcebergDestinationDescription icebergDestinationDescription) { this.icebergDestinationDescription = icebergDestinationDescription; } /** *

* Describes a destination in Apache Iceberg Tables. *

*

* Amazon Data Firehose is in preview release and is subject to change. *

* * @return Describes a destination in Apache Iceberg Tables.

*

* Amazon Data Firehose is in preview release and is subject to change. */ public IcebergDestinationDescription getIcebergDestinationDescription() { return this.icebergDestinationDescription; } /** *

* Describes a destination in Apache Iceberg Tables. *

*

* Amazon Data Firehose is in preview release and is subject to change. *

* * @param icebergDestinationDescription * Describes a destination in 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 DestinationDescription withIcebergDestinationDescription(IcebergDestinationDescription icebergDestinationDescription) { setIcebergDestinationDescription(icebergDestinationDescription); 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 (getDestinationId() != null) sb.append("DestinationId: ").append(getDestinationId()).append(","); if (getS3DestinationDescription() != null) sb.append("S3DestinationDescription: ").append(getS3DestinationDescription()).append(","); if (getExtendedS3DestinationDescription() != null) sb.append("ExtendedS3DestinationDescription: ").append(getExtendedS3DestinationDescription()).append(","); if (getRedshiftDestinationDescription() != null) sb.append("RedshiftDestinationDescription: ").append(getRedshiftDestinationDescription()).append(","); if (getElasticsearchDestinationDescription() != null) sb.append("ElasticsearchDestinationDescription: ").append(getElasticsearchDestinationDescription()).append(","); if (getAmazonopensearchserviceDestinationDescription() != null) sb.append("AmazonopensearchserviceDestinationDescription: ").append(getAmazonopensearchserviceDestinationDescription()).append(","); if (getSplunkDestinationDescription() != null) sb.append("SplunkDestinationDescription: ").append(getSplunkDestinationDescription()).append(","); if (getHttpEndpointDestinationDescription() != null) sb.append("HttpEndpointDestinationDescription: ").append(getHttpEndpointDestinationDescription()).append(","); if (getSnowflakeDestinationDescription() != null) sb.append("SnowflakeDestinationDescription: ").append(getSnowflakeDestinationDescription()).append(","); if (getAmazonOpenSearchServerlessDestinationDescription() != null) sb.append("AmazonOpenSearchServerlessDestinationDescription: ").append(getAmazonOpenSearchServerlessDestinationDescription()).append(","); if (getIcebergDestinationDescription() != null) sb.append("IcebergDestinationDescription: ").append(getIcebergDestinationDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DestinationDescription == false) return false; DestinationDescription other = (DestinationDescription) obj; if (other.getDestinationId() == null ^ this.getDestinationId() == null) return false; if (other.getDestinationId() != null && other.getDestinationId().equals(this.getDestinationId()) == false) return false; if (other.getS3DestinationDescription() == null ^ this.getS3DestinationDescription() == null) return false; if (other.getS3DestinationDescription() != null && other.getS3DestinationDescription().equals(this.getS3DestinationDescription()) == false) return false; if (other.getExtendedS3DestinationDescription() == null ^ this.getExtendedS3DestinationDescription() == null) return false; if (other.getExtendedS3DestinationDescription() != null && other.getExtendedS3DestinationDescription().equals(this.getExtendedS3DestinationDescription()) == false) return false; if (other.getRedshiftDestinationDescription() == null ^ this.getRedshiftDestinationDescription() == null) return false; if (other.getRedshiftDestinationDescription() != null && other.getRedshiftDestinationDescription().equals(this.getRedshiftDestinationDescription()) == false) return false; if (other.getElasticsearchDestinationDescription() == null ^ this.getElasticsearchDestinationDescription() == null) return false; if (other.getElasticsearchDestinationDescription() != null && other.getElasticsearchDestinationDescription().equals(this.getElasticsearchDestinationDescription()) == false) return false; if (other.getAmazonopensearchserviceDestinationDescription() == null ^ this.getAmazonopensearchserviceDestinationDescription() == null) return false; if (other.getAmazonopensearchserviceDestinationDescription() != null && other.getAmazonopensearchserviceDestinationDescription().equals(this.getAmazonopensearchserviceDestinationDescription()) == false) return false; if (other.getSplunkDestinationDescription() == null ^ this.getSplunkDestinationDescription() == null) return false; if (other.getSplunkDestinationDescription() != null && other.getSplunkDestinationDescription().equals(this.getSplunkDestinationDescription()) == false) return false; if (other.getHttpEndpointDestinationDescription() == null ^ this.getHttpEndpointDestinationDescription() == null) return false; if (other.getHttpEndpointDestinationDescription() != null && other.getHttpEndpointDestinationDescription().equals(this.getHttpEndpointDestinationDescription()) == false) return false; if (other.getSnowflakeDestinationDescription() == null ^ this.getSnowflakeDestinationDescription() == null) return false; if (other.getSnowflakeDestinationDescription() != null && other.getSnowflakeDestinationDescription().equals(this.getSnowflakeDestinationDescription()) == false) return false; if (other.getAmazonOpenSearchServerlessDestinationDescription() == null ^ this.getAmazonOpenSearchServerlessDestinationDescription() == null) return false; if (other.getAmazonOpenSearchServerlessDestinationDescription() != null && other.getAmazonOpenSearchServerlessDestinationDescription().equals(this.getAmazonOpenSearchServerlessDestinationDescription()) == false) return false; if (other.getIcebergDestinationDescription() == null ^ this.getIcebergDestinationDescription() == null) return false; if (other.getIcebergDestinationDescription() != null && other.getIcebergDestinationDescription().equals(this.getIcebergDestinationDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestinationId() == null) ? 0 : getDestinationId().hashCode()); hashCode = prime * hashCode + ((getS3DestinationDescription() == null) ? 0 : getS3DestinationDescription().hashCode()); hashCode = prime * hashCode + ((getExtendedS3DestinationDescription() == null) ? 0 : getExtendedS3DestinationDescription().hashCode()); hashCode = prime * hashCode + ((getRedshiftDestinationDescription() == null) ? 0 : getRedshiftDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getElasticsearchDestinationDescription() == null) ? 0 : getElasticsearchDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getAmazonopensearchserviceDestinationDescription() == null) ? 0 : getAmazonopensearchserviceDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getSplunkDestinationDescription() == null) ? 0 : getSplunkDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getHttpEndpointDestinationDescription() == null) ? 0 : getHttpEndpointDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getSnowflakeDestinationDescription() == null) ? 0 : getSnowflakeDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getAmazonOpenSearchServerlessDestinationDescription() == null) ? 0 : getAmazonOpenSearchServerlessDestinationDescription().hashCode()); hashCode = prime * hashCode + ((getIcebergDestinationDescription() == null) ? 0 : getIcebergDestinationDescription().hashCode()); return hashCode; } @Override public DestinationDescription clone() { try { return (DestinationDescription) 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.DestinationDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy