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

commonMain.aws.sdk.kotlin.services.pipes.model.DescribePipeResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pipes.model

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

public class DescribePipeResponse private constructor(builder: Builder) {
    /**
     * The ARN of the pipe.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time the pipe was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The state the pipe is in.
     */
    public val currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = builder.currentState
    /**
     * A description of the pipe.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The state the pipe should be in.
     */
    public val desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeStateDescribeResponse? = builder.desiredState
    /**
     * The ARN of the enrichment resource.
     */
    public val enrichment: kotlin.String? = builder.enrichment
    /**
     * The parameters required to set up enrichment on your pipe.
     */
    public val enrichmentParameters: aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters? = builder.enrichmentParameters
    /**
     * When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
     */
    public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The logging configuration settings for the pipe.
     */
    public val logConfiguration: aws.sdk.kotlin.services.pipes.model.PipeLogConfiguration? = builder.logConfiguration
    /**
     * The name of the pipe.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ARN of the role that allows the pipe to send data to the target.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The ARN of the source resource.
     */
    public val source: kotlin.String? = builder.source
    /**
     * The parameters required to set up a source for your pipe.
     */
    public val sourceParameters: aws.sdk.kotlin.services.pipes.model.PipeSourceParameters? = builder.sourceParameters
    /**
     * The reason the pipe is in its current state.
     */
    public val stateReason: kotlin.String? = builder.stateReason
    /**
     * The list of key-value pairs to associate with the pipe.
     */
    public val tags: Map? = builder.tags
    /**
     * The ARN of the target resource.
     */
    public val target: kotlin.String? = builder.target
    /**
     * The parameters required to set up a target for your pipe.
     *
     * For more information about pipe target parameters, including how to use dynamic path parameters, see [Target parameters](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html) in the *Amazon EventBridge User Guide*.
     */
    public val targetParameters: aws.sdk.kotlin.services.pipes.model.PipeTargetParameters? = builder.targetParameters

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

    override fun toString(): kotlin.String = buildString {
        append("DescribePipeResponse(")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("currentState=$currentState,")
        append("description=*** Sensitive Data Redacted ***,")
        append("desiredState=$desiredState,")
        append("enrichment=$enrichment,")
        append("enrichmentParameters=$enrichmentParameters,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("logConfiguration=$logConfiguration,")
        append("name=$name,")
        append("roleArn=$roleArn,")
        append("source=$source,")
        append("sourceParameters=$sourceParameters,")
        append("stateReason=$stateReason,")
        append("tags=$tags,")
        append("target=$target,")
        append("targetParameters=$targetParameters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (currentState?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (desiredState?.hashCode() ?: 0)
        result = 31 * result + (enrichment?.hashCode() ?: 0)
        result = 31 * result + (enrichmentParameters?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (logConfiguration?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (source?.hashCode() ?: 0)
        result = 31 * result + (sourceParameters?.hashCode() ?: 0)
        result = 31 * result + (stateReason?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (target?.hashCode() ?: 0)
        result = 31 * result + (targetParameters?.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 DescribePipeResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (currentState != other.currentState) return false
        if (description != other.description) return false
        if (desiredState != other.desiredState) return false
        if (enrichment != other.enrichment) return false
        if (enrichmentParameters != other.enrichmentParameters) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (logConfiguration != other.logConfiguration) return false
        if (name != other.name) return false
        if (roleArn != other.roleArn) return false
        if (source != other.source) return false
        if (sourceParameters != other.sourceParameters) return false
        if (stateReason != other.stateReason) return false
        if (tags != other.tags) return false
        if (target != other.target) return false
        if (targetParameters != other.targetParameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the pipe.
         */
        public var arn: kotlin.String? = null
        /**
         * The time the pipe was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The state the pipe is in.
         */
        public var currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = null
        /**
         * A description of the pipe.
         */
        public var description: kotlin.String? = null
        /**
         * The state the pipe should be in.
         */
        public var desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeStateDescribeResponse? = null
        /**
         * The ARN of the enrichment resource.
         */
        public var enrichment: kotlin.String? = null
        /**
         * The parameters required to set up enrichment on your pipe.
         */
        public var enrichmentParameters: aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters? = null
        /**
         * When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
         */
        public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The logging configuration settings for the pipe.
         */
        public var logConfiguration: aws.sdk.kotlin.services.pipes.model.PipeLogConfiguration? = null
        /**
         * The name of the pipe.
         */
        public var name: kotlin.String? = null
        /**
         * The ARN of the role that allows the pipe to send data to the target.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The ARN of the source resource.
         */
        public var source: kotlin.String? = null
        /**
         * The parameters required to set up a source for your pipe.
         */
        public var sourceParameters: aws.sdk.kotlin.services.pipes.model.PipeSourceParameters? = null
        /**
         * The reason the pipe is in its current state.
         */
        public var stateReason: kotlin.String? = null
        /**
         * The list of key-value pairs to associate with the pipe.
         */
        public var tags: Map? = null
        /**
         * The ARN of the target resource.
         */
        public var target: kotlin.String? = null
        /**
         * The parameters required to set up a target for your pipe.
         *
         * For more information about pipe target parameters, including how to use dynamic path parameters, see [Target parameters](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html) in the *Amazon EventBridge User Guide*.
         */
        public var targetParameters: aws.sdk.kotlin.services.pipes.model.PipeTargetParameters? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pipes.model.DescribePipeResponse) : this() {
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.currentState = x.currentState
            this.description = x.description
            this.desiredState = x.desiredState
            this.enrichment = x.enrichment
            this.enrichmentParameters = x.enrichmentParameters
            this.lastModifiedTime = x.lastModifiedTime
            this.logConfiguration = x.logConfiguration
            this.name = x.name
            this.roleArn = x.roleArn
            this.source = x.source
            this.sourceParameters = x.sourceParameters
            this.stateReason = x.stateReason
            this.tags = x.tags
            this.target = x.target
            this.targetParameters = x.targetParameters
        }

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy