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

commonMain.aws.sdk.kotlin.services.codebuild.model.UpdateProjectVisibilityResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codebuild.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateProjectVisibilityResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the build project.
     */
    public val projectArn: kotlin.String? = builder.projectArn
    /**
     * Specifies the visibility of the project's builds. Possible values are:
     *
     * ## PUBLIC_READ
     * The project builds are visible to the public.
     *
     * ## PRIVATE
     * The project builds are not visible to the public.
     */
    public val projectVisibility: aws.sdk.kotlin.services.codebuild.model.ProjectVisibilityType? = builder.projectVisibility
    /**
     * Contains the project identifier used with the public build APIs.
     */
    public val publicProjectAlias: kotlin.String? = builder.publicProjectAlias

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateProjectVisibilityResponse(")
        append("projectArn=$projectArn,")
        append("projectVisibility=$projectVisibility,")
        append("publicProjectAlias=$publicProjectAlias")
        append(")")
    }

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

        if (projectArn != other.projectArn) return false
        if (projectVisibility != other.projectVisibility) return false
        if (publicProjectAlias != other.publicProjectAlias) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the build project.
         */
        public var projectArn: kotlin.String? = null
        /**
         * Specifies the visibility of the project's builds. Possible values are:
         *
         * ## PUBLIC_READ
         * The project builds are visible to the public.
         *
         * ## PRIVATE
         * The project builds are not visible to the public.
         */
        public var projectVisibility: aws.sdk.kotlin.services.codebuild.model.ProjectVisibilityType? = null
        /**
         * Contains the project identifier used with the public build APIs.
         */
        public var publicProjectAlias: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.UpdateProjectVisibilityResponse) : this() {
            this.projectArn = x.projectArn
            this.projectVisibility = x.projectVisibility
            this.publicProjectAlias = x.publicProjectAlias
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy