commonMain.aws.sdk.kotlin.services.deadline.model.AssociateMemberToFarmRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class AssociateMemberToFarmRequest private constructor(builder: Builder) {
/**
* The ID of the farm to associate with the member.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The identity store ID of the member to associate with the farm.
*/
public val identityStoreId: kotlin.String? = builder.identityStoreId
/**
* The principal's membership level for the associated farm.
*/
public val membershipLevel: aws.sdk.kotlin.services.deadline.model.MembershipLevel? = builder.membershipLevel
/**
* The member's principal ID to associate with the farm.
*/
public val principalId: kotlin.String? = builder.principalId
/**
* The principal type of the member to associate with the farm.
*/
public val principalType: aws.sdk.kotlin.services.deadline.model.DeadlinePrincipalType? = builder.principalType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.AssociateMemberToFarmRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateMemberToFarmRequest(")
append("farmId=$farmId,")
append("identityStoreId=$identityStoreId,")
append("membershipLevel=$membershipLevel,")
append("principalId=$principalId,")
append("principalType=$principalType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = farmId?.hashCode() ?: 0
result = 31 * result + (identityStoreId?.hashCode() ?: 0)
result = 31 * result + (membershipLevel?.hashCode() ?: 0)
result = 31 * result + (principalId?.hashCode() ?: 0)
result = 31 * result + (principalType?.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 AssociateMemberToFarmRequest
if (farmId != other.farmId) return false
if (identityStoreId != other.identityStoreId) return false
if (membershipLevel != other.membershipLevel) return false
if (principalId != other.principalId) return false
if (principalType != other.principalType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.AssociateMemberToFarmRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the farm to associate with the member.
*/
public var farmId: kotlin.String? = null
/**
* The identity store ID of the member to associate with the farm.
*/
public var identityStoreId: kotlin.String? = null
/**
* The principal's membership level for the associated farm.
*/
public var membershipLevel: aws.sdk.kotlin.services.deadline.model.MembershipLevel? = null
/**
* The member's principal ID to associate with the farm.
*/
public var principalId: kotlin.String? = null
/**
* The principal type of the member to associate with the farm.
*/
public var principalType: aws.sdk.kotlin.services.deadline.model.DeadlinePrincipalType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.AssociateMemberToFarmRequest) : this() {
this.farmId = x.farmId
this.identityStoreId = x.identityStoreId
this.membershipLevel = x.membershipLevel
this.principalId = x.principalId
this.principalType = x.principalType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.AssociateMemberToFarmRequest = AssociateMemberToFarmRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}