commonMain.aws.sdk.kotlin.services.cognitoidentity.model.DescribeIdentityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitoidentity-jvm Show documentation
Show all versions of cognitoidentity-jvm Show documentation
The AWS SDK for Kotlin client for Cognito Identity
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cognitoidentity.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A description of the identity.
*/
public class DescribeIdentityResponse private constructor(builder: Builder) {
/**
* Date on which the identity was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* A unique identifier in the format REGION:GUID.
*/
public val identityId: kotlin.String? = builder.identityId
/**
* Date on which the identity was last modified.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The provider names.
*/
public val logins: List? = builder.logins
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cognitoidentity.model.DescribeIdentityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeIdentityResponse(")
append("creationDate=$creationDate,")
append("identityId=$identityId,")
append("lastModifiedDate=$lastModifiedDate,")
append("logins=$logins")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (identityId?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (logins?.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 DescribeIdentityResponse
if (creationDate != other.creationDate) return false
if (identityId != other.identityId) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (logins != other.logins) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cognitoidentity.model.DescribeIdentityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Date on which the identity was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A unique identifier in the format REGION:GUID.
*/
public var identityId: kotlin.String? = null
/**
* Date on which the identity was last modified.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The provider names.
*/
public var logins: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cognitoidentity.model.DescribeIdentityResponse) : this() {
this.creationDate = x.creationDate
this.identityId = x.identityId
this.lastModifiedDate = x.lastModifiedDate
this.logins = x.logins
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitoidentity.model.DescribeIdentityResponse = DescribeIdentityResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy