
commonMain.aws.sdk.kotlin.services.qbusiness.model.MemberGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* The sub groups that belong to a group.
*/
public class MemberGroup private constructor(builder: Builder) {
/**
* The name of the sub group.
*/
public val groupName: kotlin.String = requireNotNull(builder.groupName) { "A non-null value must be provided for groupName" }
/**
* The type of the sub group.
*/
public val type: aws.sdk.kotlin.services.qbusiness.model.MembershipType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.MemberGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MemberGroup(")
append("groupName=$groupName,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupName.hashCode()
result = 31 * result + (type?.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 MemberGroup
if (groupName != other.groupName) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.MemberGroup = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the sub group.
*/
public var groupName: kotlin.String? = null
/**
* The type of the sub group.
*/
public var type: aws.sdk.kotlin.services.qbusiness.model.MembershipType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.MemberGroup) : this() {
this.groupName = x.groupName
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.MemberGroup = MemberGroup(this)
internal fun correctErrors(): Builder {
if (groupName == null) groupName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy