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

commonMain.aws.sdk.kotlin.services.transfer.model.InputFileLocation.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transfer.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies the location for the file that's being processed.
 */
public class InputFileLocation private constructor(builder: Builder) {
    /**
     * Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted.
     */
    public val efsFileLocation: aws.sdk.kotlin.services.transfer.model.EfsFileLocation? = builder.efsFileLocation
    /**
     * Specifies the details for the Amazon S3 file that's being copied or decrypted.
     */
    public val s3FileLocation: aws.sdk.kotlin.services.transfer.model.S3InputFileLocation? = builder.s3FileLocation

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

    override fun toString(): kotlin.String = buildString {
        append("InputFileLocation(")
        append("efsFileLocation=$efsFileLocation,")
        append("s3FileLocation=$s3FileLocation")
        append(")")
    }

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

        if (efsFileLocation != other.efsFileLocation) return false
        if (s3FileLocation != other.s3FileLocation) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted.
         */
        public var efsFileLocation: aws.sdk.kotlin.services.transfer.model.EfsFileLocation? = null
        /**
         * Specifies the details for the Amazon S3 file that's being copied or decrypted.
         */
        public var s3FileLocation: aws.sdk.kotlin.services.transfer.model.S3InputFileLocation? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transfer.model.InputFileLocation) : this() {
            this.efsFileLocation = x.efsFileLocation
            this.s3FileLocation = x.s3FileLocation
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy