commonMain.aws.sdk.kotlin.services.datazone.model.ProjectMember.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details of a project member.
*/
public class ProjectMember private constructor(builder: Builder) {
/**
* The designated role of a project member.
*/
public val designation: aws.sdk.kotlin.services.datazone.model.UserDesignation = requireNotNull(builder.designation) { "A non-null value must be provided for designation" }
/**
* The membership details of a project member.
*/
public val memberDetails: aws.sdk.kotlin.services.datazone.model.MemberDetails? = builder.memberDetails
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.ProjectMember = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectMember(")
append("designation=$designation,")
append("memberDetails=$memberDetails")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = designation.hashCode()
result = 31 * result + (memberDetails?.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 ProjectMember
if (designation != other.designation) return false
if (memberDetails != other.memberDetails) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.ProjectMember = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The designated role of a project member.
*/
public var designation: aws.sdk.kotlin.services.datazone.model.UserDesignation? = null
/**
* The membership details of a project member.
*/
public var memberDetails: aws.sdk.kotlin.services.datazone.model.MemberDetails? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.ProjectMember) : this() {
this.designation = x.designation
this.memberDetails = x.memberDetails
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.ProjectMember = ProjectMember(this)
internal fun correctErrors(): Builder {
if (designation == null) designation = UserDesignation.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy