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

commonMain.aws.sdk.kotlin.services.datazone.model.GetGroupProfileResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetGroupProfileResponse private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon DataZone domain in which the group profile exists.
     */
    public val domainId: kotlin.String? = builder.domainId
    /**
     * The name of the group for which the specified group profile exists.
     */
    public val groupName: kotlin.String? = builder.groupName
    /**
     * The identifier of the group profile.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The identifier of the group profile.
     */
    public val status: aws.sdk.kotlin.services.datazone.model.GroupProfileStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GetGroupProfileResponse(")
        append("domainId=$domainId,")
        append("groupName=*** Sensitive Data Redacted ***,")
        append("id=$id,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainId?.hashCode() ?: 0
        result = 31 * result + (groupName?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GetGroupProfileResponse

        if (domainId != other.domainId) return false
        if (groupName != other.groupName) return false
        if (id != other.id) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier of the Amazon DataZone domain in which the group profile exists.
         */
        public var domainId: kotlin.String? = null
        /**
         * The name of the group for which the specified group profile exists.
         */
        public var groupName: kotlin.String? = null
        /**
         * The identifier of the group profile.
         */
        public var id: kotlin.String? = null
        /**
         * The identifier of the group profile.
         */
        public var status: aws.sdk.kotlin.services.datazone.model.GroupProfileStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetGroupProfileResponse) : this() {
            this.domainId = x.domainId
            this.groupName = x.groupName
            this.id = x.id
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy