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

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

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

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



/**
 * A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
 */
public class Policy private constructor(builder: Builder) {
    /**
     * Allow or disallow jobs that specify HTTP inputs.
     */
    public val httpInputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = builder.httpInputs
    /**
     * Allow or disallow jobs that specify HTTPS inputs.
     */
    public val httpsInputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = builder.httpsInputs
    /**
     * Allow or disallow jobs that specify Amazon S3 inputs.
     */
    public val s3Inputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = builder.s3Inputs

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

    override fun toString(): kotlin.String = buildString {
        append("Policy(")
        append("httpInputs=$httpInputs,")
        append("httpsInputs=$httpsInputs,")
        append("s3Inputs=$s3Inputs")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = httpInputs?.hashCode() ?: 0
        result = 31 * result + (httpsInputs?.hashCode() ?: 0)
        result = 31 * result + (s3Inputs?.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 Policy

        if (httpInputs != other.httpInputs) return false
        if (httpsInputs != other.httpsInputs) return false
        if (s3Inputs != other.s3Inputs) return false

        return true
    }

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

    public class Builder {
        /**
         * Allow or disallow jobs that specify HTTP inputs.
         */
        public var httpInputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = null
        /**
         * Allow or disallow jobs that specify HTTPS inputs.
         */
        public var httpsInputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = null
        /**
         * Allow or disallow jobs that specify Amazon S3 inputs.
         */
        public var s3Inputs: aws.sdk.kotlin.services.mediaconvert.model.InputPolicy? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.Policy) : this() {
            this.httpInputs = x.httpInputs
            this.httpsInputs = x.httpsInputs
            this.s3Inputs = x.s3Inputs
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy