All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceUpdate.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kinesisanalytics.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf and populate the in-application reference table.
 */
public class S3ReferenceDataSourceUpdate private constructor(builder: Builder) {
    /**
     * Amazon Resource Name (ARN) of the S3 bucket.
     */
    public val bucketArnUpdate: kotlin.String? = builder.bucketArnUpdate
    /**
     * Object key name.
     */
    public val fileKeyUpdate: kotlin.String? = builder.fileKeyUpdate
    /**
     * ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate the in-application.
     */
    public val referenceRoleArnUpdate: kotlin.String? = builder.referenceRoleArnUpdate

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceUpdate = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("S3ReferenceDataSourceUpdate(")
        append("bucketArnUpdate=$bucketArnUpdate,")
        append("fileKeyUpdate=$fileKeyUpdate,")
        append("referenceRoleArnUpdate=$referenceRoleArnUpdate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bucketArnUpdate?.hashCode() ?: 0
        result = 31 * result + (fileKeyUpdate?.hashCode() ?: 0)
        result = 31 * result + (referenceRoleArnUpdate?.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 S3ReferenceDataSourceUpdate

        if (bucketArnUpdate != other.bucketArnUpdate) return false
        if (fileKeyUpdate != other.fileKeyUpdate) return false
        if (referenceRoleArnUpdate != other.referenceRoleArnUpdate) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceUpdate = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Amazon Resource Name (ARN) of the S3 bucket.
         */
        public var bucketArnUpdate: kotlin.String? = null
        /**
         * Object key name.
         */
        public var fileKeyUpdate: kotlin.String? = null
        /**
         * ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate the in-application.
         */
        public var referenceRoleArnUpdate: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceUpdate) : this() {
            this.bucketArnUpdate = x.bucketArnUpdate
            this.fileKeyUpdate = x.fileKeyUpdate
            this.referenceRoleArnUpdate = x.referenceRoleArnUpdate
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.S3ReferenceDataSourceUpdate = S3ReferenceDataSourceUpdate(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy