commonMain.aws.sdk.kotlin.services.nimble.model.GetStudioMemberResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetStudioMemberResponse private constructor(builder: Builder) {
/**
* The member.
*/
public val member: aws.sdk.kotlin.services.nimble.model.StudioMembership? = builder.member
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.GetStudioMemberResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStudioMemberResponse(")
append("member=$member")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = member?.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 GetStudioMemberResponse
if (member != other.member) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.GetStudioMemberResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The member.
*/
public var member: aws.sdk.kotlin.services.nimble.model.StudioMembership? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.GetStudioMemberResponse) : this() {
this.member = x.member
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.GetStudioMemberResponse = GetStudioMemberResponse(this)
/**
* construct an [aws.sdk.kotlin.services.nimble.model.StudioMembership] inside the given [block]
*/
public fun member(block: aws.sdk.kotlin.services.nimble.model.StudioMembership.Builder.() -> kotlin.Unit) {
this.member = aws.sdk.kotlin.services.nimble.model.StudioMembership.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}