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

commonMain.aws.sdk.kotlin.services.iotanalytics.model.PipelineSummary.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

/**
 * A summary of information about a pipeline.
 */
public class PipelineSummary private constructor(builder: Builder) {
    /**
     * When the pipeline was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * When the pipeline was last updated.
     */
    public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
    /**
     * The name of the pipeline.
     */
    public val pipelineName: kotlin.String? = builder.pipelineName
    /**
     * 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.PipelineSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("PipelineSummary(")
        append("creationTime=$creationTime,")
        append("lastUpdateTime=$lastUpdateTime,")
        append("pipelineName=$pipelineName,")
        append("reprocessingSummaries=$reprocessingSummaries")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (lastUpdateTime?.hashCode() ?: 0)
        result = 31 * result + (pipelineName?.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 PipelineSummary

        if (creationTime != other.creationTime) return false
        if (lastUpdateTime != other.lastUpdateTime) return false
        if (pipelineName != other.pipelineName) return false
        if (reprocessingSummaries != other.reprocessingSummaries) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * When the pipeline was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * When the pipeline was last updated.
         */
        public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the pipeline.
         */
        public var pipelineName: 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.PipelineSummary) : this() {
            this.creationTime = x.creationTime
            this.lastUpdateTime = x.lastUpdateTime
            this.pipelineName = x.pipelineName
            this.reprocessingSummaries = x.reprocessingSummaries
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy