
commonMain.aws.sdk.kotlin.services.emr.model.GetStudioSessionMappingRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
public class GetStudioSessionMappingRequest private constructor(builder: Builder) {
/**
* The globally unique identifier (GUID) of the user or group. For more information, see [UserId](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) and [GroupId](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) in the *Amazon Web Services SSO Identity Store API Reference*. Either `IdentityName` or `IdentityId` must be specified.
*/
public val identityId: kotlin.String? = builder.identityId
/**
* The name of the user or group to fetch. For more information, see [UserName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) and [DisplayName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) in the *Amazon Web Services SSO Identity Store API Reference*. Either `IdentityName` or `IdentityId` must be specified.
*/
public val identityName: kotlin.String? = builder.identityName
/**
* Specifies whether the identity to fetch is a user or a group.
*/
public val identityType: aws.sdk.kotlin.services.emr.model.IdentityType? = builder.identityType
/**
* The ID of the Amazon EMR Studio.
*/
public val studioId: kotlin.String? = builder.studioId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.GetStudioSessionMappingRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStudioSessionMappingRequest(")
append("identityId=$identityId,")
append("identityName=$identityName,")
append("identityType=$identityType,")
append("studioId=$studioId)")
}
override fun hashCode(): kotlin.Int {
var result = identityId?.hashCode() ?: 0
result = 31 * result + (identityName?.hashCode() ?: 0)
result = 31 * result + (identityType?.hashCode() ?: 0)
result = 31 * result + (studioId?.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 GetStudioSessionMappingRequest
if (identityId != other.identityId) return false
if (identityName != other.identityName) return false
if (identityType != other.identityType) return false
if (studioId != other.studioId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.GetStudioSessionMappingRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The globally unique identifier (GUID) of the user or group. For more information, see [UserId](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) and [GroupId](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) in the *Amazon Web Services SSO Identity Store API Reference*. Either `IdentityName` or `IdentityId` must be specified.
*/
public var identityId: kotlin.String? = null
/**
* The name of the user or group to fetch. For more information, see [UserName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) and [DisplayName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) in the *Amazon Web Services SSO Identity Store API Reference*. Either `IdentityName` or `IdentityId` must be specified.
*/
public var identityName: kotlin.String? = null
/**
* Specifies whether the identity to fetch is a user or a group.
*/
public var identityType: aws.sdk.kotlin.services.emr.model.IdentityType? = null
/**
* The ID of the Amazon EMR Studio.
*/
public var studioId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.GetStudioSessionMappingRequest) : this() {
this.identityId = x.identityId
this.identityName = x.identityName
this.identityType = x.identityType
this.studioId = x.studioId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.GetStudioSessionMappingRequest = GetStudioSessionMappingRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy