commonMain.aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Response for GetProgrammaticAccessCredentials operation
*/
public class GetProgrammaticAccessCredentialsResponse private constructor(builder: Builder) {
/**
* Returns the programmatic credentials.
*/
public val credentials: aws.sdk.kotlin.services.finspacedata.model.Credentials? = builder.credentials
/**
* Returns the duration in which the credentials will remain valid.
*/
public val durationInMinutes: kotlin.Long? = builder.durationInMinutes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetProgrammaticAccessCredentialsResponse(")
append("credentials=*** Sensitive Data Redacted ***,")
append("durationInMinutes=$durationInMinutes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentials?.hashCode() ?: 0
result = 31 * result + (durationInMinutes?.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 GetProgrammaticAccessCredentialsResponse
if (credentials != other.credentials) return false
if (durationInMinutes != other.durationInMinutes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Returns the programmatic credentials.
*/
public var credentials: aws.sdk.kotlin.services.finspacedata.model.Credentials? = null
/**
* Returns the duration in which the credentials will remain valid.
*/
public var durationInMinutes: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsResponse) : this() {
this.credentials = x.credentials
this.durationInMinutes = x.durationInMinutes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsResponse = GetProgrammaticAccessCredentialsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.finspacedata.model.Credentials] inside the given [block]
*/
public fun credentials(block: aws.sdk.kotlin.services.finspacedata.model.Credentials.Builder.() -> kotlin.Unit) {
this.credentials = aws.sdk.kotlin.services.finspacedata.model.Credentials.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy