commonMain.aws.sdk.kotlin.services.datazone.model.GetEnvironmentCredentialsResponse.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
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetEnvironmentCredentialsResponse private constructor(builder: Builder) {
/**
* The access key ID of the environment.
*/
public val accessKeyId: kotlin.String? = builder.accessKeyId
/**
* The expiration timestamp of the environment credentials.
*/
public val expiration: aws.smithy.kotlin.runtime.time.Instant? = builder.expiration
/**
* The secret access key of the environment credentials.
*/
public val secretAccessKey: kotlin.String? = builder.secretAccessKey
/**
* The session token of the environment credentials.
*/
public val sessionToken: kotlin.String? = builder.sessionToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.GetEnvironmentCredentialsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEnvironmentCredentialsResponse(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessKeyId?.hashCode() ?: 0
result = 31 * result + (expiration?.hashCode() ?: 0)
result = 31 * result + (secretAccessKey?.hashCode() ?: 0)
result = 31 * result + (sessionToken?.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 GetEnvironmentCredentialsResponse
if (accessKeyId != other.accessKeyId) return false
if (expiration != other.expiration) return false
if (secretAccessKey != other.secretAccessKey) return false
if (sessionToken != other.sessionToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.GetEnvironmentCredentialsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The access key ID of the environment.
*/
public var accessKeyId: kotlin.String? = null
/**
* The expiration timestamp of the environment credentials.
*/
public var expiration: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The secret access key of the environment credentials.
*/
public var secretAccessKey: kotlin.String? = null
/**
* The session token of the environment credentials.
*/
public var sessionToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetEnvironmentCredentialsResponse) : this() {
this.accessKeyId = x.accessKeyId
this.expiration = x.expiration
this.secretAccessKey = x.secretAccessKey
this.sessionToken = x.sessionToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.GetEnvironmentCredentialsResponse = GetEnvironmentCredentialsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy