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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.S3DestinationSettings.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Settings associated with S3 destination
 */
public class S3DestinationSettings private constructor(builder: Builder) {
    /**
     * Optional. Have MediaConvert automatically apply Amazon S3 access control for the outputs in this output group. When you don't use this setting, S3 automatically applies the default access control list PRIVATE.
     */
    public val accessControl: aws.sdk.kotlin.services.mediaconvert.model.S3DestinationAccessControl? = builder.accessControl
    /**
     * Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.
     */
    public val encryption: aws.sdk.kotlin.services.mediaconvert.model.S3EncryptionSettings? = builder.encryption
    /**
     * Specify the S3 storage class to use for this output. To use your destination's default storage class: Keep the default value, Not set. For more information about S3 storage classes, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
     */
    public val storageClass: aws.sdk.kotlin.services.mediaconvert.model.S3StorageClass? = builder.storageClass

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

    override fun toString(): kotlin.String = buildString {
        append("S3DestinationSettings(")
        append("accessControl=$accessControl,")
        append("encryption=$encryption,")
        append("storageClass=$storageClass")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessControl?.hashCode() ?: 0
        result = 31 * result + (encryption?.hashCode() ?: 0)
        result = 31 * result + (storageClass?.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 S3DestinationSettings

        if (accessControl != other.accessControl) return false
        if (encryption != other.encryption) return false
        if (storageClass != other.storageClass) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional. Have MediaConvert automatically apply Amazon S3 access control for the outputs in this output group. When you don't use this setting, S3 automatically applies the default access control list PRIVATE.
         */
        public var accessControl: aws.sdk.kotlin.services.mediaconvert.model.S3DestinationAccessControl? = null
        /**
         * Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.
         */
        public var encryption: aws.sdk.kotlin.services.mediaconvert.model.S3EncryptionSettings? = null
        /**
         * Specify the S3 storage class to use for this output. To use your destination's default storage class: Keep the default value, Not set. For more information about S3 storage classes, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
         */
        public var storageClass: aws.sdk.kotlin.services.mediaconvert.model.S3StorageClass? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.S3DestinationSettings) : this() {
            this.accessControl = x.accessControl
            this.encryption = x.encryption
            this.storageClass = x.storageClass
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.mediaconvert.model.S3DestinationAccessControl] inside the given [block]
         */
        public fun accessControl(block: aws.sdk.kotlin.services.mediaconvert.model.S3DestinationAccessControl.Builder.() -> kotlin.Unit) {
            this.accessControl = aws.sdk.kotlin.services.mediaconvert.model.S3DestinationAccessControl.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.mediaconvert.model.S3EncryptionSettings] inside the given [block]
         */
        public fun encryption(block: aws.sdk.kotlin.services.mediaconvert.model.S3EncryptionSettings.Builder.() -> kotlin.Unit) {
            this.encryption = aws.sdk.kotlin.services.mediaconvert.model.S3EncryptionSettings.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy