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

commonMain.aws.sdk.kotlin.services.gamelift.model.RequestUploadCredentialsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.gamelift.model



public class RequestUploadCredentialsResponse private constructor(builder: Builder) {
    /**
     * Amazon S3 path and key, identifying where the game build files are stored.
     */
    public val storageLocation: aws.sdk.kotlin.services.gamelift.model.S3Location? = builder.storageLocation
    /**
     * Amazon Web Services credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for.
     */
    public val uploadCredentials: aws.sdk.kotlin.services.gamelift.model.AwsCredentials? = builder.uploadCredentials

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

    override fun toString(): kotlin.String = buildString {
        append("RequestUploadCredentialsResponse(")
        append("storageLocation=$storageLocation,")
        append("uploadCredentials=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = storageLocation?.hashCode() ?: 0
        result = 31 * result + (uploadCredentials?.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 RequestUploadCredentialsResponse

        if (storageLocation != other.storageLocation) return false
        if (uploadCredentials != other.uploadCredentials) return false

        return true
    }

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

    public class Builder {
        /**
         * Amazon S3 path and key, identifying where the game build files are stored.
         */
        public var storageLocation: aws.sdk.kotlin.services.gamelift.model.S3Location? = null
        /**
         * Amazon Web Services credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for.
         */
        public var uploadCredentials: aws.sdk.kotlin.services.gamelift.model.AwsCredentials? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.RequestUploadCredentialsResponse) : this() {
            this.storageLocation = x.storageLocation
            this.uploadCredentials = x.uploadCredentials
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy