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

commonMain.aws.sdk.kotlin.services.deadline.model.AssociateMemberToJobRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.deadline.model

import aws.smithy.kotlin.runtime.SdkDsl

public class AssociateMemberToJobRequest private constructor(builder: Builder) {
    /**
     * The farm ID of the job to associate with the member.
     */
    public val farmId: kotlin.String? = builder.farmId
    /**
     * The member's identity store ID to associate with the job.
     */
    public val identityStoreId: kotlin.String? = builder.identityStoreId
    /**
     * The job ID to associate with the member.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The principal's membership level for the associated job.
     */
    public val membershipLevel: aws.sdk.kotlin.services.deadline.model.MembershipLevel? = builder.membershipLevel
    /**
     * The member's principal ID to associate with the job.
     */
    public val principalId: kotlin.String? = builder.principalId
    /**
     * The member's principal type to associate with the job.
     */
    public val principalType: aws.sdk.kotlin.services.deadline.model.DeadlinePrincipalType? = builder.principalType
    /**
     * The queue ID to associate to the member.
     */
    public val queueId: kotlin.String? = builder.queueId

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

    override fun toString(): kotlin.String = buildString {
        append("AssociateMemberToJobRequest(")
        append("farmId=$farmId,")
        append("identityStoreId=$identityStoreId,")
        append("jobId=$jobId,")
        append("membershipLevel=$membershipLevel,")
        append("principalId=$principalId,")
        append("principalType=$principalType,")
        append("queueId=$queueId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = farmId?.hashCode() ?: 0
        result = 31 * result + (identityStoreId?.hashCode() ?: 0)
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (membershipLevel?.hashCode() ?: 0)
        result = 31 * result + (principalId?.hashCode() ?: 0)
        result = 31 * result + (principalType?.hashCode() ?: 0)
        result = 31 * result + (queueId?.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 AssociateMemberToJobRequest

        if (farmId != other.farmId) return false
        if (identityStoreId != other.identityStoreId) return false
        if (jobId != other.jobId) return false
        if (membershipLevel != other.membershipLevel) return false
        if (principalId != other.principalId) return false
        if (principalType != other.principalType) return false
        if (queueId != other.queueId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The farm ID of the job to associate with the member.
         */
        public var farmId: kotlin.String? = null
        /**
         * The member's identity store ID to associate with the job.
         */
        public var identityStoreId: kotlin.String? = null
        /**
         * The job ID to associate with the member.
         */
        public var jobId: kotlin.String? = null
        /**
         * The principal's membership level for the associated job.
         */
        public var membershipLevel: aws.sdk.kotlin.services.deadline.model.MembershipLevel? = null
        /**
         * The member's principal ID to associate with the job.
         */
        public var principalId: kotlin.String? = null
        /**
         * The member's principal type to associate with the job.
         */
        public var principalType: aws.sdk.kotlin.services.deadline.model.DeadlinePrincipalType? = null
        /**
         * The queue ID to associate to the member.
         */
        public var queueId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.AssociateMemberToJobRequest) : this() {
            this.farmId = x.farmId
            this.identityStoreId = x.identityStoreId
            this.jobId = x.jobId
            this.membershipLevel = x.membershipLevel
            this.principalId = x.principalId
            this.principalType = x.principalType
            this.queueId = x.queueId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy