
commonMain.aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetManagedEndpointSessionCredentialsResponse private constructor(builder: Builder) {
/**
* The structure containing the session credentials.
*/
public val credentials: aws.sdk.kotlin.services.emrcontainers.model.Credentials? = builder.credentials
/**
* The date and time when the session token will expire.
*/
public val expiresAt: aws.smithy.kotlin.runtime.time.Instant? = builder.expiresAt
/**
* The identifier of the session token returned.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetManagedEndpointSessionCredentialsResponse(")
append("credentials=$credentials,")
append("expiresAt=$expiresAt,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentials?.hashCode() ?: 0
result = 31 * result + (expiresAt?.hashCode() ?: 0)
result = 31 * result + (id?.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 GetManagedEndpointSessionCredentialsResponse
if (credentials != other.credentials) return false
if (expiresAt != other.expiresAt) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The structure containing the session credentials.
*/
public var credentials: aws.sdk.kotlin.services.emrcontainers.model.Credentials? = null
/**
* The date and time when the session token will expire.
*/
public var expiresAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier of the session token returned.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsResponse) : this() {
this.credentials = x.credentials
this.expiresAt = x.expiresAt
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsResponse = GetManagedEndpointSessionCredentialsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy