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

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



public class GetBulkDeploymentStatusResponse private constructor(builder: Builder) {
    /**
     * Relevant metrics on input records processed during bulk deployment.
     */
    public val bulkDeploymentMetrics: aws.sdk.kotlin.services.greengrass.model.BulkDeploymentMetrics? = builder.bulkDeploymentMetrics
    /**
     * The status of the bulk deployment.
     */
    public val bulkDeploymentStatus: aws.sdk.kotlin.services.greengrass.model.BulkDeploymentStatus? = builder.bulkDeploymentStatus
    /**
     * The time, in ISO format, when the deployment was created.
     */
    public val createdAt: kotlin.String? = builder.createdAt
    /**
     * Error details
     */
    public val errorDetails: List? = builder.errorDetails
    /**
     * Error message
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * Tag(s) attached to the resource arn.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("GetBulkDeploymentStatusResponse(")
        append("bulkDeploymentMetrics=$bulkDeploymentMetrics,")
        append("bulkDeploymentStatus=$bulkDeploymentStatus,")
        append("createdAt=$createdAt,")
        append("errorDetails=$errorDetails,")
        append("errorMessage=$errorMessage,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bulkDeploymentMetrics?.hashCode() ?: 0
        result = 31 * result + (bulkDeploymentStatus?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (errorDetails?.hashCode() ?: 0)
        result = 31 * result + (errorMessage?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 GetBulkDeploymentStatusResponse

        if (bulkDeploymentMetrics != other.bulkDeploymentMetrics) return false
        if (bulkDeploymentStatus != other.bulkDeploymentStatus) return false
        if (createdAt != other.createdAt) return false
        if (errorDetails != other.errorDetails) return false
        if (errorMessage != other.errorMessage) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * Relevant metrics on input records processed during bulk deployment.
         */
        public var bulkDeploymentMetrics: aws.sdk.kotlin.services.greengrass.model.BulkDeploymentMetrics? = null
        /**
         * The status of the bulk deployment.
         */
        public var bulkDeploymentStatus: aws.sdk.kotlin.services.greengrass.model.BulkDeploymentStatus? = null
        /**
         * The time, in ISO format, when the deployment was created.
         */
        public var createdAt: kotlin.String? = null
        /**
         * Error details
         */
        public var errorDetails: List? = null
        /**
         * Error message
         */
        public var errorMessage: kotlin.String? = null
        /**
         * Tag(s) attached to the resource arn.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetBulkDeploymentStatusResponse) : this() {
            this.bulkDeploymentMetrics = x.bulkDeploymentMetrics
            this.bulkDeploymentStatus = x.bulkDeploymentStatus
            this.createdAt = x.createdAt
            this.errorDetails = x.errorDetails
            this.errorMessage = x.errorMessage
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy