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

commonMain.aws.sdk.kotlin.services.datazone.model.CreateProjectMembershipRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateProjectMembershipRequest private constructor(builder: Builder) {
    /**
     * The designation of the project membership.
     */
    public val designation: aws.sdk.kotlin.services.datazone.model.UserDesignation? = builder.designation
    /**
     * The ID of the Amazon DataZone domain in which project membership is created.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The project member whose project membership was created.
     */
    public val member: aws.sdk.kotlin.services.datazone.model.Member? = builder.member
    /**
     * The ID of the project for which this project membership was created.
     */
    public val projectIdentifier: kotlin.String? = builder.projectIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("CreateProjectMembershipRequest(")
        append("designation=$designation,")
        append("domainIdentifier=$domainIdentifier,")
        append("member=$member,")
        append("projectIdentifier=$projectIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = designation?.hashCode() ?: 0
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (member?.hashCode() ?: 0)
        result = 31 * result + (projectIdentifier?.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 CreateProjectMembershipRequest

        if (designation != other.designation) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (member != other.member) return false
        if (projectIdentifier != other.projectIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The designation of the project membership.
         */
        public var designation: aws.sdk.kotlin.services.datazone.model.UserDesignation? = null
        /**
         * The ID of the Amazon DataZone domain in which project membership is created.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The project member whose project membership was created.
         */
        public var member: aws.sdk.kotlin.services.datazone.model.Member? = null
        /**
         * The ID of the project for which this project membership was created.
         */
        public var projectIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateProjectMembershipRequest) : this() {
            this.designation = x.designation
            this.domainIdentifier = x.domainIdentifier
            this.member = x.member
            this.projectIdentifier = x.projectIdentifier
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy