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

commonMain.aws.sdk.kotlin.services.databrew.model.Project.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

/**
 * Represents all of the attributes of a DataBrew project.
 */
public class Project private constructor(builder: Builder) {
    /**
     * The ID of the Amazon Web Services account that owns the project.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The date and time that the project was created.
     */
    public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
    /**
     * The Amazon Resource Name (ARN) of the user who crated the project.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The dataset that the project is to act upon.
     */
    public val datasetName: kotlin.String? = builder.datasetName
    /**
     * The Amazon Resource Name (ARN) of the user who last modified the project.
     */
    public val lastModifiedBy: kotlin.String? = builder.lastModifiedBy
    /**
     * The last modification date and time for the project.
     */
    public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
    /**
     * The unique name of a project.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The date and time when the project was opened.
     */
    public val openDate: aws.smithy.kotlin.runtime.time.Instant? = builder.openDate
    /**
     * The Amazon Resource Name (ARN) of the user that opened the project for use.
     */
    public val openedBy: kotlin.String? = builder.openedBy
    /**
     * The name of a recipe that will be developed during a project session.
     */
    public val recipeName: kotlin.String? = builder.recipeName
    /**
     * The Amazon Resource Name (ARN) for the project.
     */
    public val resourceArn: kotlin.String? = builder.resourceArn
    /**
     * The Amazon Resource Name (ARN) of the role that will be assumed for this project.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The sample size and sampling type to apply to the data. If this parameter isn't specified, then the sample consists of the first 500 rows from the dataset.
     */
    public val sample: aws.sdk.kotlin.services.databrew.model.Sample? = builder.sample
    /**
     * Metadata tags that have been applied to the project.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("Project(")
        append("accountId=$accountId,")
        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("tags=$tags")
        append(")")
    }

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

        if (accountId != other.accountId) return false
        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 (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the Amazon Web Services account that owns the project.
         */
        public var accountId: kotlin.String? = null
        /**
         * The date and time that the project was created.
         */
        public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the user who crated the project.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The dataset that the project is to act upon.
         */
        public var datasetName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the user who last modified the project.
         */
        public var lastModifiedBy: kotlin.String? = null
        /**
         * The last modification date and time for the project.
         */
        public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The unique name of a 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 Amazon Resource Name (ARN) of the user that opened the project for use.
         */
        public var openedBy: kotlin.String? = null
        /**
         * The name of a recipe that will be developed during a project session.
         */
        public var recipeName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) for the project.
         */
        public var resourceArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the role that will be assumed for this project.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The sample size and sampling type to apply to the data. If this parameter isn't specified, then the sample consists of the first 500 rows from the dataset.
         */
        public var sample: aws.sdk.kotlin.services.databrew.model.Sample? = null
        /**
         * Metadata tags that have been applied to the project.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.Project) : this() {
            this.accountId = x.accountId
            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.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.databrew.model.Project = Project(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)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy