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

commonMain.aws.sdk.kotlin.services.greengrass.model.BulkDeployment.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.greengrass.model



/**
 * Information about a bulk deployment. You cannot start a new bulk deployment while another one is still running or in a non-terminal state.
 */
public class BulkDeployment private constructor(builder: Builder) {
    /**
     * The ARN of the bulk deployment.
     */
    public val bulkDeploymentArn: kotlin.String? = builder.bulkDeploymentArn
    /**
     * The ID of the bulk deployment.
     */
    public val bulkDeploymentId: kotlin.String? = builder.bulkDeploymentId
    /**
     * The time, in ISO format, when the deployment was created.
     */
    public val createdAt: kotlin.String? = builder.createdAt

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

    override fun toString(): kotlin.String = buildString {
        append("BulkDeployment(")
        append("bulkDeploymentArn=$bulkDeploymentArn,")
        append("bulkDeploymentId=$bulkDeploymentId,")
        append("createdAt=$createdAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bulkDeploymentArn?.hashCode() ?: 0
        result = 31 * result + (bulkDeploymentId?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.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 BulkDeployment

        if (bulkDeploymentArn != other.bulkDeploymentArn) return false
        if (bulkDeploymentId != other.bulkDeploymentId) return false
        if (createdAt != other.createdAt) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the bulk deployment.
         */
        public var bulkDeploymentArn: kotlin.String? = null
        /**
         * The ID of the bulk deployment.
         */
        public var bulkDeploymentId: kotlin.String? = null
        /**
         * The time, in ISO format, when the deployment was created.
         */
        public var createdAt: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.BulkDeployment) : this() {
            this.bulkDeploymentArn = x.bulkDeploymentArn
            this.bulkDeploymentId = x.bulkDeploymentId
            this.createdAt = x.createdAt
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy