
commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.model
/**
* Provides the bucket name and object key name that stores the reference data.
*/
public class S3ReferenceDataSourceDescription private constructor(builder: Builder) {
/**
* Amazon Resource Name (ARN) of the S3 bucket.
*/
public val bucketArn: kotlin.String = requireNotNull(builder.bucketArn) { "A non-null value must be provided for bucketArn" }
/**
* Amazon S3 object key name.
*/
public val fileKey: kotlin.String = requireNotNull(builder.fileKey) { "A non-null value must be provided for fileKey" }
/**
* ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf to populate the in-application reference table.
*/
public val referenceRoleArn: kotlin.String = requireNotNull(builder.referenceRoleArn) { "A non-null value must be provided for referenceRoleArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3ReferenceDataSourceDescription(")
append("bucketArn=$bucketArn,")
append("fileKey=$fileKey,")
append("referenceRoleArn=$referenceRoleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketArn.hashCode()
result = 31 * result + (fileKey.hashCode())
result = 31 * result + (referenceRoleArn.hashCode())
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 S3ReferenceDataSourceDescription
if (bucketArn != other.bucketArn) return false
if (fileKey != other.fileKey) return false
if (referenceRoleArn != other.referenceRoleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceDescription = Builder(this).apply(block).build()
public class Builder {
/**
* Amazon Resource Name (ARN) of the S3 bucket.
*/
public var bucketArn: kotlin.String? = null
/**
* Amazon S3 object key name.
*/
public var fileKey: kotlin.String? = null
/**
* ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf to populate the in-application reference table.
*/
public var referenceRoleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceDescription) : this() {
this.bucketArn = x.bucketArn
this.fileKey = x.fileKey
this.referenceRoleArn = x.referenceRoleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceDescription = S3ReferenceDataSourceDescription(this)
internal fun correctErrors(): Builder {
if (bucketArn == null) bucketArn = ""
if (fileKey == null) fileKey = ""
if (referenceRoleArn == null) referenceRoleArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy