commonMain.aws.sdk.kotlin.services.datazone.model.GetUserProfileRequest.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
public class GetUserProfileRequest private constructor(builder: Builder) {
/**
* the ID of the Amazon DataZone domain the data portal of which you want to get.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The type of the user profile.
*/
public val type: aws.sdk.kotlin.services.datazone.model.UserProfileType? = builder.type
/**
* The identifier of the user for which you want to get the user profile.
*/
public val userIdentifier: kotlin.String? = builder.userIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.GetUserProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetUserProfileRequest(")
append("domainIdentifier=$domainIdentifier,")
append("type=$type,")
append("userIdentifier=$userIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainIdentifier?.hashCode() ?: 0
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (userIdentifier?.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 GetUserProfileRequest
if (domainIdentifier != other.domainIdentifier) return false
if (type != other.type) return false
if (userIdentifier != other.userIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.GetUserProfileRequest = Builder(this).apply(block).build()
public class Builder {
/**
* the ID of the Amazon DataZone domain the data portal of which you want to get.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The type of the user profile.
*/
public var type: aws.sdk.kotlin.services.datazone.model.UserProfileType? = null
/**
* The identifier of the user for which you want to get the user profile.
*/
public var userIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetUserProfileRequest) : this() {
this.domainIdentifier = x.domainIdentifier
this.type = x.type
this.userIdentifier = x.userIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.GetUserProfileRequest = GetUserProfileRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy