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

commonMain.aws.sdk.kotlin.services.iot.model.AwsJobPresignedUrlConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model



/**
 * Configuration information for pre-signed URLs. Valid when `protocols` contains HTTP.
 */
public class AwsJobPresignedUrlConfig private constructor(builder: Builder) {
    /**
     * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 1800 seconds. Pre-signed URLs are generated when a request for the job document is received.
     */
    public val expiresInSec: kotlin.Long? = builder.expiresInSec

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

    override fun toString(): kotlin.String = buildString {
        append("AwsJobPresignedUrlConfig(")
        append("expiresInSec=$expiresInSec")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = expiresInSec?.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 AwsJobPresignedUrlConfig

        if (expiresInSec != other.expiresInSec) return false

        return true
    }

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

    public class Builder {
        /**
         * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 1800 seconds. Pre-signed URLs are generated when a request for the job document is received.
         */
        public var expiresInSec: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.AwsJobPresignedUrlConfig) : this() {
            this.expiresInSec = x.expiresInSec
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy