commonMain.aws.sdk.kotlin.services.finspacedata.model.GetExternalDataViewAccessDetailsResponse.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
public class GetExternalDataViewAccessDetailsResponse private constructor(builder: Builder) {
/**
* The credentials required to access the external Dataview from the S3 location.
*/
public val credentials: aws.sdk.kotlin.services.finspacedata.model.AwsCredentials? = builder.credentials
/**
* The location where the external Dataview is stored.
*/
public val s3Location: aws.sdk.kotlin.services.finspacedata.model.S3Location? = builder.s3Location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.GetExternalDataViewAccessDetailsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExternalDataViewAccessDetailsResponse(")
append("credentials=*** Sensitive Data Redacted ***,")
append("s3Location=$s3Location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentials?.hashCode() ?: 0
result = 31 * result + (s3Location?.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 GetExternalDataViewAccessDetailsResponse
if (credentials != other.credentials) return false
if (s3Location != other.s3Location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.GetExternalDataViewAccessDetailsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The credentials required to access the external Dataview from the S3 location.
*/
public var credentials: aws.sdk.kotlin.services.finspacedata.model.AwsCredentials? = null
/**
* The location where the external Dataview is stored.
*/
public var s3Location: aws.sdk.kotlin.services.finspacedata.model.S3Location? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.GetExternalDataViewAccessDetailsResponse) : this() {
this.credentials = x.credentials
this.s3Location = x.s3Location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.GetExternalDataViewAccessDetailsResponse = GetExternalDataViewAccessDetailsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.finspacedata.model.AwsCredentials] inside the given [block]
*/
public fun credentials(block: aws.sdk.kotlin.services.finspacedata.model.AwsCredentials.Builder.() -> kotlin.Unit) {
this.credentials = aws.sdk.kotlin.services.finspacedata.model.AwsCredentials.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.finspacedata.model.S3Location] inside the given [block]
*/
public fun s3Location(block: aws.sdk.kotlin.services.finspacedata.model.S3Location.Builder.() -> kotlin.Unit) {
this.s3Location = aws.sdk.kotlin.services.finspacedata.model.S3Location.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy