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

software.amazon.awssdk.services.firehose.model.DestinationDescription Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 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 software.amazon.awssdk.services.firehose.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Describes the destination for a delivery stream. *

*/ @Generated("software.amazon.awssdk:codegen") public final class DestinationDescription implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField DESTINATION_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("DestinationId").getter(getter(DestinationDescription::destinationId)) .setter(setter(Builder::destinationId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DestinationId").build()).build(); private static final SdkField S3_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("S3DestinationDescription") .getter(getter(DestinationDescription::s3DestinationDescription)).setter(setter(Builder::s3DestinationDescription)) .constructor(S3DestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3DestinationDescription").build()) .build(); private static final SdkField EXTENDED_S3_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("ExtendedS3DestinationDescription") .getter(getter(DestinationDescription::extendedS3DestinationDescription)) .setter(setter(Builder::extendedS3DestinationDescription)) .constructor(ExtendedS3DestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExtendedS3DestinationDescription") .build()).build(); private static final SdkField REDSHIFT_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("RedshiftDestinationDescription") .getter(getter(DestinationDescription::redshiftDestinationDescription)) .setter(setter(Builder::redshiftDestinationDescription)) .constructor(RedshiftDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RedshiftDestinationDescription") .build()).build(); private static final SdkField ELASTICSEARCH_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("ElasticsearchDestinationDescription") .getter(getter(DestinationDescription::elasticsearchDestinationDescription)) .setter(setter(Builder::elasticsearchDestinationDescription)) .constructor(ElasticsearchDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("ElasticsearchDestinationDescription").build()).build(); private static final SdkField AMAZONOPENSEARCHSERVICE_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("AmazonopensearchserviceDestinationDescription") .getter(getter(DestinationDescription::amazonopensearchserviceDestinationDescription)) .setter(setter(Builder::amazonopensearchserviceDestinationDescription)) .constructor(AmazonopensearchserviceDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("AmazonopensearchserviceDestinationDescription").build()).build(); private static final SdkField SPLUNK_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("SplunkDestinationDescription") .getter(getter(DestinationDescription::splunkDestinationDescription)) .setter(setter(Builder::splunkDestinationDescription)) .constructor(SplunkDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SplunkDestinationDescription") .build()).build(); private static final SdkField HTTP_ENDPOINT_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("HttpEndpointDestinationDescription") .getter(getter(DestinationDescription::httpEndpointDestinationDescription)) .setter(setter(Builder::httpEndpointDestinationDescription)) .constructor(HttpEndpointDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HttpEndpointDestinationDescription") .build()).build(); private static final SdkField SNOWFLAKE_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("SnowflakeDestinationDescription") .getter(getter(DestinationDescription::snowflakeDestinationDescription)) .setter(setter(Builder::snowflakeDestinationDescription)) .constructor(SnowflakeDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SnowflakeDestinationDescription") .build()).build(); private static final SdkField AMAZON_OPEN_SEARCH_SERVERLESS_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("AmazonOpenSearchServerlessDestinationDescription") .getter(getter(DestinationDescription::amazonOpenSearchServerlessDestinationDescription)) .setter(setter(Builder::amazonOpenSearchServerlessDestinationDescription)) .constructor(AmazonOpenSearchServerlessDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("AmazonOpenSearchServerlessDestinationDescription").build()).build(); private static final SdkField ICEBERG_DESTINATION_DESCRIPTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("IcebergDestinationDescription") .getter(getter(DestinationDescription::icebergDestinationDescription)) .setter(setter(Builder::icebergDestinationDescription)) .constructor(IcebergDestinationDescription::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IcebergDestinationDescription") .build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(DESTINATION_ID_FIELD, S3_DESTINATION_DESCRIPTION_FIELD, EXTENDED_S3_DESTINATION_DESCRIPTION_FIELD, REDSHIFT_DESTINATION_DESCRIPTION_FIELD, ELASTICSEARCH_DESTINATION_DESCRIPTION_FIELD, AMAZONOPENSEARCHSERVICE_DESTINATION_DESCRIPTION_FIELD, SPLUNK_DESTINATION_DESCRIPTION_FIELD, HTTP_ENDPOINT_DESTINATION_DESCRIPTION_FIELD, SNOWFLAKE_DESTINATION_DESCRIPTION_FIELD, AMAZON_OPEN_SEARCH_SERVERLESS_DESTINATION_DESCRIPTION_FIELD, ICEBERG_DESTINATION_DESCRIPTION_FIELD)); private static final long serialVersionUID = 1L; private final String destinationId; private final S3DestinationDescription s3DestinationDescription; private final ExtendedS3DestinationDescription extendedS3DestinationDescription; private final RedshiftDestinationDescription redshiftDestinationDescription; private final ElasticsearchDestinationDescription elasticsearchDestinationDescription; private final AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription; private final SplunkDestinationDescription splunkDestinationDescription; private final HttpEndpointDestinationDescription httpEndpointDestinationDescription; private final SnowflakeDestinationDescription snowflakeDestinationDescription; private final AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription; private final IcebergDestinationDescription icebergDestinationDescription; private DestinationDescription(BuilderImpl builder) { this.destinationId = builder.destinationId; this.s3DestinationDescription = builder.s3DestinationDescription; this.extendedS3DestinationDescription = builder.extendedS3DestinationDescription; this.redshiftDestinationDescription = builder.redshiftDestinationDescription; this.elasticsearchDestinationDescription = builder.elasticsearchDestinationDescription; this.amazonopensearchserviceDestinationDescription = builder.amazonopensearchserviceDestinationDescription; this.splunkDestinationDescription = builder.splunkDestinationDescription; this.httpEndpointDestinationDescription = builder.httpEndpointDestinationDescription; this.snowflakeDestinationDescription = builder.snowflakeDestinationDescription; this.amazonOpenSearchServerlessDestinationDescription = builder.amazonOpenSearchServerlessDestinationDescription; this.icebergDestinationDescription = builder.icebergDestinationDescription; } /** *

* The ID of the destination. *

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

* [Deprecated] The destination in Amazon S3. *

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

* The destination in Amazon S3. *

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

* The destination in Amazon Redshift. *

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

* The destination in Amazon ES. *

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

* The destination in Amazon OpenSearch Service. *

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

* The destination in Splunk. *

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

* Describes the specified HTTP endpoint destination. *

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

* Optional description for the destination *

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

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

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

* 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 final IcebergDestinationDescription icebergDestinationDescription() { return icebergDestinationDescription; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(destinationId()); hashCode = 31 * hashCode + Objects.hashCode(s3DestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(extendedS3DestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(redshiftDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(elasticsearchDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(amazonopensearchserviceDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(splunkDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(httpEndpointDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(snowflakeDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(amazonOpenSearchServerlessDestinationDescription()); hashCode = 31 * hashCode + Objects.hashCode(icebergDestinationDescription()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DestinationDescription)) { return false; } DestinationDescription other = (DestinationDescription) obj; return Objects.equals(destinationId(), other.destinationId()) && Objects.equals(s3DestinationDescription(), other.s3DestinationDescription()) && Objects.equals(extendedS3DestinationDescription(), other.extendedS3DestinationDescription()) && Objects.equals(redshiftDestinationDescription(), other.redshiftDestinationDescription()) && Objects.equals(elasticsearchDestinationDescription(), other.elasticsearchDestinationDescription()) && Objects.equals(amazonopensearchserviceDestinationDescription(), other.amazonopensearchserviceDestinationDescription()) && Objects.equals(splunkDestinationDescription(), other.splunkDestinationDescription()) && Objects.equals(httpEndpointDestinationDescription(), other.httpEndpointDestinationDescription()) && Objects.equals(snowflakeDestinationDescription(), other.snowflakeDestinationDescription()) && Objects.equals(amazonOpenSearchServerlessDestinationDescription(), other.amazonOpenSearchServerlessDestinationDescription()) && Objects.equals(icebergDestinationDescription(), other.icebergDestinationDescription()); } /** * 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. */ @Override public final String toString() { return ToString.builder("DestinationDescription").add("DestinationId", destinationId()) .add("S3DestinationDescription", s3DestinationDescription()) .add("ExtendedS3DestinationDescription", extendedS3DestinationDescription()) .add("RedshiftDestinationDescription", redshiftDestinationDescription()) .add("ElasticsearchDestinationDescription", elasticsearchDestinationDescription()) .add("AmazonopensearchserviceDestinationDescription", amazonopensearchserviceDestinationDescription()) .add("SplunkDestinationDescription", splunkDestinationDescription()) .add("HttpEndpointDestinationDescription", httpEndpointDestinationDescription()) .add("SnowflakeDestinationDescription", snowflakeDestinationDescription()) .add("AmazonOpenSearchServerlessDestinationDescription", amazonOpenSearchServerlessDestinationDescription()) .add("IcebergDestinationDescription", icebergDestinationDescription()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "DestinationId": return Optional.ofNullable(clazz.cast(destinationId())); case "S3DestinationDescription": return Optional.ofNullable(clazz.cast(s3DestinationDescription())); case "ExtendedS3DestinationDescription": return Optional.ofNullable(clazz.cast(extendedS3DestinationDescription())); case "RedshiftDestinationDescription": return Optional.ofNullable(clazz.cast(redshiftDestinationDescription())); case "ElasticsearchDestinationDescription": return Optional.ofNullable(clazz.cast(elasticsearchDestinationDescription())); case "AmazonopensearchserviceDestinationDescription": return Optional.ofNullable(clazz.cast(amazonopensearchserviceDestinationDescription())); case "SplunkDestinationDescription": return Optional.ofNullable(clazz.cast(splunkDestinationDescription())); case "HttpEndpointDestinationDescription": return Optional.ofNullable(clazz.cast(httpEndpointDestinationDescription())); case "SnowflakeDestinationDescription": return Optional.ofNullable(clazz.cast(snowflakeDestinationDescription())); case "AmazonOpenSearchServerlessDestinationDescription": return Optional.ofNullable(clazz.cast(amazonOpenSearchServerlessDestinationDescription())); case "IcebergDestinationDescription": return Optional.ofNullable(clazz.cast(icebergDestinationDescription())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((DestinationDescription) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* 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. */ Builder destinationId(String destinationId); /** *

* [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. */ Builder s3DestinationDescription(S3DestinationDescription s3DestinationDescription); /** *

* [Deprecated] The destination in Amazon S3. *

* This is a convenience method that creates an instance of the {@link S3DestinationDescription.Builder} * avoiding the need to create one manually via {@link S3DestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link S3DestinationDescription.Builder#build()} is called immediately * and its result is passed to {@link #s3DestinationDescription(S3DestinationDescription)}. * * @param s3DestinationDescription * a consumer that will call methods on {@link S3DestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3DestinationDescription(S3DestinationDescription) */ default Builder s3DestinationDescription(Consumer s3DestinationDescription) { return s3DestinationDescription(S3DestinationDescription.builder().applyMutation(s3DestinationDescription).build()); } /** *

* 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. */ Builder extendedS3DestinationDescription(ExtendedS3DestinationDescription extendedS3DestinationDescription); /** *

* The destination in Amazon S3. *

* This is a convenience method that creates an instance of the {@link ExtendedS3DestinationDescription.Builder} * avoiding the need to create one manually via {@link ExtendedS3DestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link ExtendedS3DestinationDescription.Builder#build()} is called * immediately and its result is passed to * {@link #extendedS3DestinationDescription(ExtendedS3DestinationDescription)}. * * @param extendedS3DestinationDescription * a consumer that will call methods on {@link ExtendedS3DestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #extendedS3DestinationDescription(ExtendedS3DestinationDescription) */ default Builder extendedS3DestinationDescription( Consumer extendedS3DestinationDescription) { return extendedS3DestinationDescription(ExtendedS3DestinationDescription.builder() .applyMutation(extendedS3DestinationDescription).build()); } /** *

* 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. */ Builder redshiftDestinationDescription(RedshiftDestinationDescription redshiftDestinationDescription); /** *

* The destination in Amazon Redshift. *

* This is a convenience method that creates an instance of the {@link RedshiftDestinationDescription.Builder} * avoiding the need to create one manually via {@link RedshiftDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link RedshiftDestinationDescription.Builder#build()} is called * immediately and its result is passed to * {@link #redshiftDestinationDescription(RedshiftDestinationDescription)}. * * @param redshiftDestinationDescription * a consumer that will call methods on {@link RedshiftDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #redshiftDestinationDescription(RedshiftDestinationDescription) */ default Builder redshiftDestinationDescription( Consumer redshiftDestinationDescription) { return redshiftDestinationDescription(RedshiftDestinationDescription.builder() .applyMutation(redshiftDestinationDescription).build()); } /** *

* 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. */ Builder elasticsearchDestinationDescription(ElasticsearchDestinationDescription elasticsearchDestinationDescription); /** *

* The destination in Amazon ES. *

* This is a convenience method that creates an instance of the * {@link ElasticsearchDestinationDescription.Builder} avoiding the need to create one manually via * {@link ElasticsearchDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link ElasticsearchDestinationDescription.Builder#build()} is called * immediately and its result is passed to * {@link #elasticsearchDestinationDescription(ElasticsearchDestinationDescription)}. * * @param elasticsearchDestinationDescription * a consumer that will call methods on {@link ElasticsearchDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #elasticsearchDestinationDescription(ElasticsearchDestinationDescription) */ default Builder elasticsearchDestinationDescription( Consumer elasticsearchDestinationDescription) { return elasticsearchDestinationDescription(ElasticsearchDestinationDescription.builder() .applyMutation(elasticsearchDestinationDescription).build()); } /** *

* 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. */ Builder amazonopensearchserviceDestinationDescription( AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription); /** *

* The destination in Amazon OpenSearch Service. *

* This is a convenience method that creates an instance of the * {@link AmazonopensearchserviceDestinationDescription.Builder} avoiding the need to create one manually via * {@link AmazonopensearchserviceDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link AmazonopensearchserviceDestinationDescription.Builder#build()} is * called immediately and its result is passed to * {@link #amazonopensearchserviceDestinationDescription(AmazonopensearchserviceDestinationDescription)}. * * @param amazonopensearchserviceDestinationDescription * a consumer that will call methods on {@link AmazonopensearchserviceDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #amazonopensearchserviceDestinationDescription(AmazonopensearchserviceDestinationDescription) */ default Builder amazonopensearchserviceDestinationDescription( Consumer amazonopensearchserviceDestinationDescription) { return amazonopensearchserviceDestinationDescription(AmazonopensearchserviceDestinationDescription.builder() .applyMutation(amazonopensearchserviceDestinationDescription).build()); } /** *

* 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. */ Builder splunkDestinationDescription(SplunkDestinationDescription splunkDestinationDescription); /** *

* The destination in Splunk. *

* This is a convenience method that creates an instance of the {@link SplunkDestinationDescription.Builder} * avoiding the need to create one manually via {@link SplunkDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link SplunkDestinationDescription.Builder#build()} is called * immediately and its result is passed to {@link #splunkDestinationDescription(SplunkDestinationDescription)}. * * @param splunkDestinationDescription * a consumer that will call methods on {@link SplunkDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #splunkDestinationDescription(SplunkDestinationDescription) */ default Builder splunkDestinationDescription(Consumer splunkDestinationDescription) { return splunkDestinationDescription(SplunkDestinationDescription.builder() .applyMutation(splunkDestinationDescription).build()); } /** *

* 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. */ Builder httpEndpointDestinationDescription(HttpEndpointDestinationDescription httpEndpointDestinationDescription); /** *

* Describes the specified HTTP endpoint destination. *

* This is a convenience method that creates an instance of the * {@link HttpEndpointDestinationDescription.Builder} avoiding the need to create one manually via * {@link HttpEndpointDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link HttpEndpointDestinationDescription.Builder#build()} is called * immediately and its result is passed to * {@link #httpEndpointDestinationDescription(HttpEndpointDestinationDescription)}. * * @param httpEndpointDestinationDescription * a consumer that will call methods on {@link HttpEndpointDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #httpEndpointDestinationDescription(HttpEndpointDestinationDescription) */ default Builder httpEndpointDestinationDescription( Consumer httpEndpointDestinationDescription) { return httpEndpointDestinationDescription(HttpEndpointDestinationDescription.builder() .applyMutation(httpEndpointDestinationDescription).build()); } /** *

* 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. */ Builder snowflakeDestinationDescription(SnowflakeDestinationDescription snowflakeDestinationDescription); /** *

* Optional description for the destination *

* This is a convenience method that creates an instance of the {@link SnowflakeDestinationDescription.Builder} * avoiding the need to create one manually via {@link SnowflakeDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link SnowflakeDestinationDescription.Builder#build()} is called * immediately and its result is passed to * {@link #snowflakeDestinationDescription(SnowflakeDestinationDescription)}. * * @param snowflakeDestinationDescription * a consumer that will call methods on {@link SnowflakeDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #snowflakeDestinationDescription(SnowflakeDestinationDescription) */ default Builder snowflakeDestinationDescription( Consumer snowflakeDestinationDescription) { return snowflakeDestinationDescription(SnowflakeDestinationDescription.builder() .applyMutation(snowflakeDestinationDescription).build()); } /** *

* 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. */ Builder amazonOpenSearchServerlessDestinationDescription( AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription); /** *

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

* This is a convenience method that creates an instance of the * {@link AmazonOpenSearchServerlessDestinationDescription.Builder} avoiding the need to create one manually via * {@link AmazonOpenSearchServerlessDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link AmazonOpenSearchServerlessDestinationDescription.Builder#build()} * is called immediately and its result is passed to * {@link #amazonOpenSearchServerlessDestinationDescription(AmazonOpenSearchServerlessDestinationDescription)}. * * @param amazonOpenSearchServerlessDestinationDescription * a consumer that will call methods on {@link AmazonOpenSearchServerlessDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #amazonOpenSearchServerlessDestinationDescription(AmazonOpenSearchServerlessDestinationDescription) */ default Builder amazonOpenSearchServerlessDestinationDescription( Consumer amazonOpenSearchServerlessDestinationDescription) { return amazonOpenSearchServerlessDestinationDescription(AmazonOpenSearchServerlessDestinationDescription.builder() .applyMutation(amazonOpenSearchServerlessDestinationDescription).build()); } /** *

* 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. */ Builder icebergDestinationDescription(IcebergDestinationDescription icebergDestinationDescription); /** *

* Describes a destination in Apache Iceberg Tables. *

*

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

* This is a convenience method that creates an instance of the {@link IcebergDestinationDescription.Builder} * avoiding the need to create one manually via {@link IcebergDestinationDescription#builder()}. * *

* When the {@link Consumer} completes, {@link IcebergDestinationDescription.Builder#build()} is called * immediately and its result is passed to {@link #icebergDestinationDescription(IcebergDestinationDescription)}. * * @param icebergDestinationDescription * a consumer that will call methods on {@link IcebergDestinationDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #icebergDestinationDescription(IcebergDestinationDescription) */ default Builder icebergDestinationDescription( Consumer icebergDestinationDescription) { return icebergDestinationDescription(IcebergDestinationDescription.builder() .applyMutation(icebergDestinationDescription).build()); } } static final class BuilderImpl implements Builder { private String destinationId; private S3DestinationDescription s3DestinationDescription; private ExtendedS3DestinationDescription extendedS3DestinationDescription; private RedshiftDestinationDescription redshiftDestinationDescription; private ElasticsearchDestinationDescription elasticsearchDestinationDescription; private AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription; private SplunkDestinationDescription splunkDestinationDescription; private HttpEndpointDestinationDescription httpEndpointDestinationDescription; private SnowflakeDestinationDescription snowflakeDestinationDescription; private AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription; private IcebergDestinationDescription icebergDestinationDescription; private BuilderImpl() { } private BuilderImpl(DestinationDescription model) { destinationId(model.destinationId); s3DestinationDescription(model.s3DestinationDescription); extendedS3DestinationDescription(model.extendedS3DestinationDescription); redshiftDestinationDescription(model.redshiftDestinationDescription); elasticsearchDestinationDescription(model.elasticsearchDestinationDescription); amazonopensearchserviceDestinationDescription(model.amazonopensearchserviceDestinationDescription); splunkDestinationDescription(model.splunkDestinationDescription); httpEndpointDestinationDescription(model.httpEndpointDestinationDescription); snowflakeDestinationDescription(model.snowflakeDestinationDescription); amazonOpenSearchServerlessDestinationDescription(model.amazonOpenSearchServerlessDestinationDescription); icebergDestinationDescription(model.icebergDestinationDescription); } public final String getDestinationId() { return destinationId; } public final void setDestinationId(String destinationId) { this.destinationId = destinationId; } @Override public final Builder destinationId(String destinationId) { this.destinationId = destinationId; return this; } public final S3DestinationDescription.Builder getS3DestinationDescription() { return s3DestinationDescription != null ? s3DestinationDescription.toBuilder() : null; } public final void setS3DestinationDescription(S3DestinationDescription.BuilderImpl s3DestinationDescription) { this.s3DestinationDescription = s3DestinationDescription != null ? s3DestinationDescription.build() : null; } @Override public final Builder s3DestinationDescription(S3DestinationDescription s3DestinationDescription) { this.s3DestinationDescription = s3DestinationDescription; return this; } public final ExtendedS3DestinationDescription.Builder getExtendedS3DestinationDescription() { return extendedS3DestinationDescription != null ? extendedS3DestinationDescription.toBuilder() : null; } public final void setExtendedS3DestinationDescription( ExtendedS3DestinationDescription.BuilderImpl extendedS3DestinationDescription) { this.extendedS3DestinationDescription = extendedS3DestinationDescription != null ? extendedS3DestinationDescription .build() : null; } @Override public final Builder extendedS3DestinationDescription(ExtendedS3DestinationDescription extendedS3DestinationDescription) { this.extendedS3DestinationDescription = extendedS3DestinationDescription; return this; } public final RedshiftDestinationDescription.Builder getRedshiftDestinationDescription() { return redshiftDestinationDescription != null ? redshiftDestinationDescription.toBuilder() : null; } public final void setRedshiftDestinationDescription( RedshiftDestinationDescription.BuilderImpl redshiftDestinationDescription) { this.redshiftDestinationDescription = redshiftDestinationDescription != null ? redshiftDestinationDescription.build() : null; } @Override public final Builder redshiftDestinationDescription(RedshiftDestinationDescription redshiftDestinationDescription) { this.redshiftDestinationDescription = redshiftDestinationDescription; return this; } public final ElasticsearchDestinationDescription.Builder getElasticsearchDestinationDescription() { return elasticsearchDestinationDescription != null ? elasticsearchDestinationDescription.toBuilder() : null; } public final void setElasticsearchDestinationDescription( ElasticsearchDestinationDescription.BuilderImpl elasticsearchDestinationDescription) { this.elasticsearchDestinationDescription = elasticsearchDestinationDescription != null ? elasticsearchDestinationDescription .build() : null; } @Override public final Builder elasticsearchDestinationDescription( ElasticsearchDestinationDescription elasticsearchDestinationDescription) { this.elasticsearchDestinationDescription = elasticsearchDestinationDescription; return this; } public final AmazonopensearchserviceDestinationDescription.Builder getAmazonopensearchserviceDestinationDescription() { return amazonopensearchserviceDestinationDescription != null ? amazonopensearchserviceDestinationDescription .toBuilder() : null; } public final void setAmazonopensearchserviceDestinationDescription( AmazonopensearchserviceDestinationDescription.BuilderImpl amazonopensearchserviceDestinationDescription) { this.amazonopensearchserviceDestinationDescription = amazonopensearchserviceDestinationDescription != null ? amazonopensearchserviceDestinationDescription .build() : null; } @Override public final Builder amazonopensearchserviceDestinationDescription( AmazonopensearchserviceDestinationDescription amazonopensearchserviceDestinationDescription) { this.amazonopensearchserviceDestinationDescription = amazonopensearchserviceDestinationDescription; return this; } public final SplunkDestinationDescription.Builder getSplunkDestinationDescription() { return splunkDestinationDescription != null ? splunkDestinationDescription.toBuilder() : null; } public final void setSplunkDestinationDescription(SplunkDestinationDescription.BuilderImpl splunkDestinationDescription) { this.splunkDestinationDescription = splunkDestinationDescription != null ? splunkDestinationDescription.build() : null; } @Override public final Builder splunkDestinationDescription(SplunkDestinationDescription splunkDestinationDescription) { this.splunkDestinationDescription = splunkDestinationDescription; return this; } public final HttpEndpointDestinationDescription.Builder getHttpEndpointDestinationDescription() { return httpEndpointDestinationDescription != null ? httpEndpointDestinationDescription.toBuilder() : null; } public final void setHttpEndpointDestinationDescription( HttpEndpointDestinationDescription.BuilderImpl httpEndpointDestinationDescription) { this.httpEndpointDestinationDescription = httpEndpointDestinationDescription != null ? httpEndpointDestinationDescription .build() : null; } @Override public final Builder httpEndpointDestinationDescription( HttpEndpointDestinationDescription httpEndpointDestinationDescription) { this.httpEndpointDestinationDescription = httpEndpointDestinationDescription; return this; } public final SnowflakeDestinationDescription.Builder getSnowflakeDestinationDescription() { return snowflakeDestinationDescription != null ? snowflakeDestinationDescription.toBuilder() : null; } public final void setSnowflakeDestinationDescription( SnowflakeDestinationDescription.BuilderImpl snowflakeDestinationDescription) { this.snowflakeDestinationDescription = snowflakeDestinationDescription != null ? snowflakeDestinationDescription .build() : null; } @Override public final Builder snowflakeDestinationDescription(SnowflakeDestinationDescription snowflakeDestinationDescription) { this.snowflakeDestinationDescription = snowflakeDestinationDescription; return this; } public final AmazonOpenSearchServerlessDestinationDescription.Builder getAmazonOpenSearchServerlessDestinationDescription() { return amazonOpenSearchServerlessDestinationDescription != null ? amazonOpenSearchServerlessDestinationDescription .toBuilder() : null; } public final void setAmazonOpenSearchServerlessDestinationDescription( AmazonOpenSearchServerlessDestinationDescription.BuilderImpl amazonOpenSearchServerlessDestinationDescription) { this.amazonOpenSearchServerlessDestinationDescription = amazonOpenSearchServerlessDestinationDescription != null ? amazonOpenSearchServerlessDestinationDescription .build() : null; } @Override public final Builder amazonOpenSearchServerlessDestinationDescription( AmazonOpenSearchServerlessDestinationDescription amazonOpenSearchServerlessDestinationDescription) { this.amazonOpenSearchServerlessDestinationDescription = amazonOpenSearchServerlessDestinationDescription; return this; } public final IcebergDestinationDescription.Builder getIcebergDestinationDescription() { return icebergDestinationDescription != null ? icebergDestinationDescription.toBuilder() : null; } public final void setIcebergDestinationDescription(IcebergDestinationDescription.BuilderImpl icebergDestinationDescription) { this.icebergDestinationDescription = icebergDestinationDescription != null ? icebergDestinationDescription.build() : null; } @Override public final Builder icebergDestinationDescription(IcebergDestinationDescription icebergDestinationDescription) { this.icebergDestinationDescription = icebergDestinationDescription; return this; } @Override public DestinationDescription build() { return new DestinationDescription(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy