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

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

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

package aws.sdk.kotlin.services.databrew.model

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

public class DescribeProjectResponse private constructor(builder: Builder) {
    /**
     * The date and time that the project was created.
     */
    public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
    /**
     * The identifier (user name) of the user who created the project.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The dataset associated with the project.
     */
    public val datasetName: kotlin.String? = builder.datasetName
    /**
     * The identifier (user name) of the user who last modified the project.
     */
    public val lastModifiedBy: kotlin.String? = builder.lastModifiedBy
    /**
     * The date and time that the project was last modified.
     */
    public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
    /**
     * The name of the project.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The date and time when the project was opened.
     */
    public val openDate: aws.smithy.kotlin.runtime.time.Instant? = builder.openDate
    /**
     * The identifier (user name) of the user that opened the project for use.
     */
    public val openedBy: kotlin.String? = builder.openedBy
    /**
     * The recipe associated with this job.
     */
    public val recipeName: kotlin.String? = builder.recipeName
    /**
     * The Amazon Resource Name (ARN) of the project.
     */
    public val resourceArn: kotlin.String? = builder.resourceArn
    /**
     * The ARN of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
     */
    public val sample: aws.sdk.kotlin.services.databrew.model.Sample? = builder.sample
    /**
     * Describes the current state of the session:
     * + `PROVISIONING` - allocating resources for the session.
     * + `INITIALIZING` - getting the session ready for first use.
     * + `ASSIGNED` - the session is ready for use.
     */
    public val sessionStatus: aws.sdk.kotlin.services.databrew.model.SessionStatus? = builder.sessionStatus
    /**
     * Metadata tags associated with this project.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeProjectResponse(")
        append("createDate=$createDate,")
        append("createdBy=$createdBy,")
        append("datasetName=$datasetName,")
        append("lastModifiedBy=$lastModifiedBy,")
        append("lastModifiedDate=$lastModifiedDate,")
        append("name=$name,")
        append("openDate=$openDate,")
        append("openedBy=$openedBy,")
        append("recipeName=$recipeName,")
        append("resourceArn=$resourceArn,")
        append("roleArn=$roleArn,")
        append("sample=$sample,")
        append("sessionStatus=$sessionStatus,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createDate?.hashCode() ?: 0
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (datasetName?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedBy?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        result = 31 * result + (openDate?.hashCode() ?: 0)
        result = 31 * result + (openedBy?.hashCode() ?: 0)
        result = 31 * result + (recipeName?.hashCode() ?: 0)
        result = 31 * result + (resourceArn?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (sample?.hashCode() ?: 0)
        result = 31 * result + (sessionStatus?.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 DescribeProjectResponse

        if (createDate != other.createDate) return false
        if (createdBy != other.createdBy) return false
        if (datasetName != other.datasetName) return false
        if (lastModifiedBy != other.lastModifiedBy) return false
        if (lastModifiedDate != other.lastModifiedDate) return false
        if (name != other.name) return false
        if (openDate != other.openDate) return false
        if (openedBy != other.openedBy) return false
        if (recipeName != other.recipeName) return false
        if (resourceArn != other.resourceArn) return false
        if (roleArn != other.roleArn) return false
        if (sample != other.sample) return false
        if (sessionStatus != other.sessionStatus) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The date and time that the project was created.
         */
        public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier (user name) of the user who created the project.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The dataset associated with the project.
         */
        public var datasetName: kotlin.String? = null
        /**
         * The identifier (user name) of the user who last modified the project.
         */
        public var lastModifiedBy: kotlin.String? = null
        /**
         * The date and time that the project was last modified.
         */
        public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the project.
         */
        public var name: kotlin.String? = null
        /**
         * The date and time when the project was opened.
         */
        public var openDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier (user name) of the user that opened the project for use.
         */
        public var openedBy: kotlin.String? = null
        /**
         * The recipe associated with this job.
         */
        public var recipeName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the project.
         */
        public var resourceArn: kotlin.String? = null
        /**
         * The ARN of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
         */
        public var roleArn: kotlin.String? = null
        /**
         * Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
         */
        public var sample: aws.sdk.kotlin.services.databrew.model.Sample? = null
        /**
         * Describes the current state of the session:
         * + `PROVISIONING` - allocating resources for the session.
         * + `INITIALIZING` - getting the session ready for first use.
         * + `ASSIGNED` - the session is ready for use.
         */
        public var sessionStatus: aws.sdk.kotlin.services.databrew.model.SessionStatus? = null
        /**
         * Metadata tags associated with this project.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.DescribeProjectResponse) : this() {
            this.createDate = x.createDate
            this.createdBy = x.createdBy
            this.datasetName = x.datasetName
            this.lastModifiedBy = x.lastModifiedBy
            this.lastModifiedDate = x.lastModifiedDate
            this.name = x.name
            this.openDate = x.openDate
            this.openedBy = x.openedBy
            this.recipeName = x.recipeName
            this.resourceArn = x.resourceArn
            this.roleArn = x.roleArn
            this.sample = x.sample
            this.sessionStatus = x.sessionStatus
            this.tags = x.tags
        }

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

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

        internal fun correctErrors(): Builder {
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy