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

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

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotanalytics.model

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

/**
 * Contains information about a pipeline.
 */
public class Pipeline private constructor(builder: Builder) {
    /**
     * The activities that perform transformations on the messages.
     */
    public val activities: List? = builder.activities
    /**
     * The ARN of the pipeline.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * When the pipeline was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The last time the pipeline was updated.
     */
    public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
    /**
     * The name of the pipeline.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A summary of information about the pipeline reprocessing.
     */
    public val reprocessingSummaries: List? = builder.reprocessingSummaries

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

    override fun toString(): kotlin.String = buildString {
        append("Pipeline(")
        append("activities=$activities,")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("lastUpdateTime=$lastUpdateTime,")
        append("name=$name,")
        append("reprocessingSummaries=$reprocessingSummaries")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activities?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (lastUpdateTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (reprocessingSummaries?.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 (activities != other.activities) return false
        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (lastUpdateTime != other.lastUpdateTime) return false
        if (name != other.name) return false
        if (reprocessingSummaries != other.reprocessingSummaries) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The activities that perform transformations on the messages.
         */
        public var activities: List? = null
        /**
         * The ARN of the pipeline.
         */
        public var arn: kotlin.String? = null
        /**
         * When the pipeline was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The last time the pipeline was updated.
         */
        public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the pipeline.
         */
        public var name: kotlin.String? = null
        /**
         * A summary of information about the pipeline reprocessing.
         */
        public var reprocessingSummaries: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotanalytics.model.Pipeline) : this() {
            this.activities = x.activities
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.lastUpdateTime = x.lastUpdateTime
            this.name = x.name
            this.reprocessingSummaries = x.reprocessingSummaries
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy