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

commonMain.aws.sdk.kotlin.services.osis.model.Pipeline.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.osis.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Information about an existing OpenSearch Ingestion pipeline.
 */
public class Pipeline private constructor(builder: Builder) {
    /**
     * Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the `EncryptionAtRestOptions`. For more information, see [Persistent buffering](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/osis-features-overview.html#persistent-buffering).
     */
    public val bufferOptions: aws.sdk.kotlin.services.osis.model.BufferOptions? = builder.bufferOptions
    /**
     * The date and time when the pipeline was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * Destinations to which the pipeline writes data.
     */
    public val destinations: List? = builder.destinations
    /**
     * Options to control how OpenSearch encrypts buffer data.
     */
    public val encryptionAtRestOptions: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions? = builder.encryptionAtRestOptions
    /**
     * The ingestion endpoints for the pipeline, which you can send data to.
     */
    public val ingestEndpointUrls: List? = builder.ingestEndpointUrls
    /**
     * The date and time when the pipeline was last updated.
     */
    public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
    /**
     * Key-value pairs that represent log publishing settings.
     */
    public val logPublishingOptions: aws.sdk.kotlin.services.osis.model.LogPublishingOptions? = builder.logPublishingOptions
    /**
     * The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    public val maxUnits: kotlin.Int = builder.maxUnits
    /**
     * The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
     */
    public val minUnits: kotlin.Int = builder.minUnits
    /**
     * The Amazon Resource Name (ARN) of the pipeline.
     */
    public val pipelineArn: kotlin.String? = builder.pipelineArn
    /**
     * The Data Prepper pipeline configuration in YAML format.
     */
    public val pipelineConfigurationBody: kotlin.String? = builder.pipelineConfigurationBody
    /**
     * The name of the pipeline.
     */
    public val pipelineName: kotlin.String? = builder.pipelineName
    /**
     * A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.
     */
    public val serviceVpcEndpoints: List? = builder.serviceVpcEndpoints
    /**
     * The current status of the pipeline.
     */
    public val status: aws.sdk.kotlin.services.osis.model.PipelineStatus? = builder.status
    /**
     * The reason for the current status of the pipeline.
     */
    public val statusReason: aws.sdk.kotlin.services.osis.model.PipelineStatusReason? = builder.statusReason
    /**
     * A list of tags associated with the given pipeline.
     */
    public val tags: List? = builder.tags
    /**
     * The VPC endpoint service name for the pipeline.
     */
    public val vpcEndpointService: kotlin.String? = builder.vpcEndpointService
    /**
     * The VPC interface endpoints that have access to the pipeline.
     */
    public val vpcEndpoints: List? = builder.vpcEndpoints

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.osis.model.Pipeline = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Pipeline(")
        append("bufferOptions=$bufferOptions,")
        append("createdAt=$createdAt,")
        append("destinations=$destinations,")
        append("encryptionAtRestOptions=$encryptionAtRestOptions,")
        append("ingestEndpointUrls=$ingestEndpointUrls,")
        append("lastUpdatedAt=$lastUpdatedAt,")
        append("logPublishingOptions=$logPublishingOptions,")
        append("maxUnits=$maxUnits,")
        append("minUnits=$minUnits,")
        append("pipelineArn=$pipelineArn,")
        append("pipelineConfigurationBody=$pipelineConfigurationBody,")
        append("pipelineName=$pipelineName,")
        append("serviceVpcEndpoints=$serviceVpcEndpoints,")
        append("status=$status,")
        append("statusReason=$statusReason,")
        append("tags=$tags,")
        append("vpcEndpointService=$vpcEndpointService,")
        append("vpcEndpoints=$vpcEndpoints")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bufferOptions?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (destinations?.hashCode() ?: 0)
        result = 31 * result + (encryptionAtRestOptions?.hashCode() ?: 0)
        result = 31 * result + (ingestEndpointUrls?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
        result = 31 * result + (logPublishingOptions?.hashCode() ?: 0)
        result = 31 * result + (maxUnits)
        result = 31 * result + (minUnits)
        result = 31 * result + (pipelineArn?.hashCode() ?: 0)
        result = 31 * result + (pipelineConfigurationBody?.hashCode() ?: 0)
        result = 31 * result + (pipelineName?.hashCode() ?: 0)
        result = 31 * result + (serviceVpcEndpoints?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusReason?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (vpcEndpointService?.hashCode() ?: 0)
        result = 31 * result + (vpcEndpoints?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as Pipeline

        if (bufferOptions != other.bufferOptions) return false
        if (createdAt != other.createdAt) return false
        if (destinations != other.destinations) return false
        if (encryptionAtRestOptions != other.encryptionAtRestOptions) return false
        if (ingestEndpointUrls != other.ingestEndpointUrls) return false
        if (lastUpdatedAt != other.lastUpdatedAt) return false
        if (logPublishingOptions != other.logPublishingOptions) return false
        if (maxUnits != other.maxUnits) return false
        if (minUnits != other.minUnits) return false
        if (pipelineArn != other.pipelineArn) return false
        if (pipelineConfigurationBody != other.pipelineConfigurationBody) return false
        if (pipelineName != other.pipelineName) return false
        if (serviceVpcEndpoints != other.serviceVpcEndpoints) return false
        if (status != other.status) return false
        if (statusReason != other.statusReason) return false
        if (tags != other.tags) return false
        if (vpcEndpointService != other.vpcEndpointService) return false
        if (vpcEndpoints != other.vpcEndpoints) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.osis.model.Pipeline = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the `EncryptionAtRestOptions`. For more information, see [Persistent buffering](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/osis-features-overview.html#persistent-buffering).
         */
        public var bufferOptions: aws.sdk.kotlin.services.osis.model.BufferOptions? = null
        /**
         * The date and time when the pipeline was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Destinations to which the pipeline writes data.
         */
        public var destinations: List? = null
        /**
         * Options to control how OpenSearch encrypts buffer data.
         */
        public var encryptionAtRestOptions: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions? = null
        /**
         * The ingestion endpoints for the pipeline, which you can send data to.
         */
        public var ingestEndpointUrls: List? = null
        /**
         * The date and time when the pipeline was last updated.
         */
        public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Key-value pairs that represent log publishing settings.
         */
        public var logPublishingOptions: aws.sdk.kotlin.services.osis.model.LogPublishingOptions? = null
        /**
         * The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
         */
        public var maxUnits: kotlin.Int = 0
        /**
         * The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
         */
        public var minUnits: kotlin.Int = 0
        /**
         * The Amazon Resource Name (ARN) of the pipeline.
         */
        public var pipelineArn: kotlin.String? = null
        /**
         * The Data Prepper pipeline configuration in YAML format.
         */
        public var pipelineConfigurationBody: kotlin.String? = null
        /**
         * The name of the pipeline.
         */
        public var pipelineName: kotlin.String? = null
        /**
         * A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.
         */
        public var serviceVpcEndpoints: List? = null
        /**
         * The current status of the pipeline.
         */
        public var status: aws.sdk.kotlin.services.osis.model.PipelineStatus? = null
        /**
         * The reason for the current status of the pipeline.
         */
        public var statusReason: aws.sdk.kotlin.services.osis.model.PipelineStatusReason? = null
        /**
         * A list of tags associated with the given pipeline.
         */
        public var tags: List? = null
        /**
         * The VPC endpoint service name for the pipeline.
         */
        public var vpcEndpointService: kotlin.String? = null
        /**
         * The VPC interface endpoints that have access to the pipeline.
         */
        public var vpcEndpoints: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.osis.model.Pipeline) : this() {
            this.bufferOptions = x.bufferOptions
            this.createdAt = x.createdAt
            this.destinations = x.destinations
            this.encryptionAtRestOptions = x.encryptionAtRestOptions
            this.ingestEndpointUrls = x.ingestEndpointUrls
            this.lastUpdatedAt = x.lastUpdatedAt
            this.logPublishingOptions = x.logPublishingOptions
            this.maxUnits = x.maxUnits
            this.minUnits = x.minUnits
            this.pipelineArn = x.pipelineArn
            this.pipelineConfigurationBody = x.pipelineConfigurationBody
            this.pipelineName = x.pipelineName
            this.serviceVpcEndpoints = x.serviceVpcEndpoints
            this.status = x.status
            this.statusReason = x.statusReason
            this.tags = x.tags
            this.vpcEndpointService = x.vpcEndpointService
            this.vpcEndpoints = x.vpcEndpoints
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.osis.model.Pipeline = Pipeline(this)

        /**
         * construct an [aws.sdk.kotlin.services.osis.model.BufferOptions] inside the given [block]
         */
        public fun bufferOptions(block: aws.sdk.kotlin.services.osis.model.BufferOptions.Builder.() -> kotlin.Unit) {
            this.bufferOptions = aws.sdk.kotlin.services.osis.model.BufferOptions.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions] inside the given [block]
         */
        public fun encryptionAtRestOptions(block: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions.Builder.() -> kotlin.Unit) {
            this.encryptionAtRestOptions = aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.osis.model.LogPublishingOptions] inside the given [block]
         */
        public fun logPublishingOptions(block: aws.sdk.kotlin.services.osis.model.LogPublishingOptions.Builder.() -> kotlin.Unit) {
            this.logPublishingOptions = aws.sdk.kotlin.services.osis.model.LogPublishingOptions.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.osis.model.PipelineStatusReason] inside the given [block]
         */
        public fun statusReason(block: aws.sdk.kotlin.services.osis.model.PipelineStatusReason.Builder.() -> kotlin.Unit) {
            this.statusReason = aws.sdk.kotlin.services.osis.model.PipelineStatusReason.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy