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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeProjectResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) for the project.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * A user- or system-generated token that identifies the entity that requested project creation.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The date and time the project was created, in timestamp format.
     */
    public val createdTimeStamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimeStamp
    /**
     * The description of the project, if any.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the project.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The display name for the project.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ID for the AWS CodeStar project template used to create the project.
     */
    public val projectTemplateId: kotlin.String? = builder.projectTemplateId
    /**
     * The ID of the primary stack in AWS CloudFormation used to generate resources for the project.
     */
    public val stackId: kotlin.String? = builder.stackId
    /**
     * The project creation or deletion status.
     */
    public val status: aws.sdk.kotlin.services.codestar.model.ProjectStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeProjectResponse(")
        append("arn=$arn,")
        append("clientRequestToken=$clientRequestToken,")
        append("createdTimeStamp=$createdTimeStamp,")
        append("description=*** Sensitive Data Redacted ***,")
        append("id=$id,")
        append("name=*** Sensitive Data Redacted ***,")
        append("projectTemplateId=$projectTemplateId,")
        append("stackId=$stackId,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
        result = 31 * result + (createdTimeStamp?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (projectTemplateId?.hashCode() ?: 0)
        result = 31 * result + (stackId?.hashCode() ?: 0)
        result = 31 * result + (status?.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 DescribeProjectResponse

        if (arn != other.arn) return false
        if (clientRequestToken != other.clientRequestToken) return false
        if (createdTimeStamp != other.createdTimeStamp) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (projectTemplateId != other.projectTemplateId) return false
        if (stackId != other.stackId) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) for the project.
         */
        public var arn: kotlin.String? = null
        /**
         * A user- or system-generated token that identifies the entity that requested project creation.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The date and time the project was created, in timestamp format.
         */
        public var createdTimeStamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the project, if any.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the project.
         */
        public var id: kotlin.String? = null
        /**
         * The display name for the project.
         */
        public var name: kotlin.String? = null
        /**
         * The ID for the AWS CodeStar project template used to create the project.
         */
        public var projectTemplateId: kotlin.String? = null
        /**
         * The ID of the primary stack in AWS CloudFormation used to generate resources for the project.
         */
        public var stackId: kotlin.String? = null
        /**
         * The project creation or deletion status.
         */
        public var status: aws.sdk.kotlin.services.codestar.model.ProjectStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.DescribeProjectResponse) : this() {
            this.arn = x.arn
            this.clientRequestToken = x.clientRequestToken
            this.createdTimeStamp = x.createdTimeStamp
            this.description = x.description
            this.id = x.id
            this.name = x.name
            this.projectTemplateId = x.projectTemplateId
            this.stackId = x.stackId
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy