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

commonMain.aws.sdk.kotlin.services.codestar.model.DeleteProjectResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codestar.model



public class DeleteProjectResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the deleted project.
     */
    public val projectArn: kotlin.String? = builder.projectArn
    /**
     * The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.
     */
    public val stackId: kotlin.String? = builder.stackId

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteProjectResponse(")
        append("projectArn=$projectArn,")
        append("stackId=$stackId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = projectArn?.hashCode() ?: 0
        result = 31 * result + (stackId?.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 DeleteProjectResponse

        if (projectArn != other.projectArn) return false
        if (stackId != other.stackId) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the deleted project.
         */
        public var projectArn: kotlin.String? = null
        /**
         * The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.
         */
        public var stackId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.DeleteProjectResponse) : this() {
            this.projectArn = x.projectArn
            this.stackId = x.stackId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.codestar.model.DeleteProjectResponse = DeleteProjectResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy