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

commonMain.aws.sdk.kotlin.services.codedeploy.model.BatchGetApplicationRevisionsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codedeploy.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Represents the output of a `BatchGetApplicationRevisions` operation.
 */
public class BatchGetApplicationRevisionsResponse private constructor(builder: Builder) {
    /**
     * The name of the application that corresponds to the revisions.
     */
    public val applicationName: kotlin.String? = builder.applicationName
    /**
     * Information about errors that might have occurred during the API call.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * Additional information about the revisions, including the type and location.
     */
    public val revisions: List? = builder.revisions

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

    override fun toString(): kotlin.String = buildString {
        append("BatchGetApplicationRevisionsResponse(")
        append("applicationName=$applicationName,")
        append("errorMessage=$errorMessage,")
        append("revisions=$revisions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationName?.hashCode() ?: 0
        result = 31 * result + (errorMessage?.hashCode() ?: 0)
        result = 31 * result + (revisions?.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 BatchGetApplicationRevisionsResponse

        if (applicationName != other.applicationName) return false
        if (errorMessage != other.errorMessage) return false
        if (revisions != other.revisions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the application that corresponds to the revisions.
         */
        public var applicationName: kotlin.String? = null
        /**
         * Information about errors that might have occurred during the API call.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * Additional information about the revisions, including the type and location.
         */
        public var revisions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.BatchGetApplicationRevisionsResponse) : this() {
            this.applicationName = x.applicationName
            this.errorMessage = x.errorMessage
            this.revisions = x.revisions
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy