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

commonMain.aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxWindowsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class DescribeLocationFsxWindowsResponse private constructor(builder: Builder) {
    /**
     * The time that the FSx for Windows File Server location was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
     */
    public val domain: kotlin.String? = builder.domain
    /**
     * The ARN of the FSx for Windows File Server location.
     */
    public val locationArn: kotlin.String? = builder.locationArn
    /**
     * The uniform resource identifier (URI) of the FSx for Windows File Server location.
     */
    public val locationUri: kotlin.String? = builder.locationUri
    /**
     * The ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet.
     *
     * For information about configuring security groups for file system access, see the *Amazon FSx for Windows File Server User Guide*[](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/limit-access-security-groups.html).
     */
    public val securityGroupArns: List? = builder.securityGroupArns
    /**
     * The user with the permissions to mount and access the FSx for Windows File Server file system.
     */
    public val user: kotlin.String? = builder.user

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeLocationFsxWindowsResponse(")
        append("creationTime=$creationTime,")
        append("domain=$domain,")
        append("locationArn=$locationArn,")
        append("locationUri=$locationUri,")
        append("securityGroupArns=$securityGroupArns,")
        append("user=$user")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (domain?.hashCode() ?: 0)
        result = 31 * result + (locationArn?.hashCode() ?: 0)
        result = 31 * result + (locationUri?.hashCode() ?: 0)
        result = 31 * result + (securityGroupArns?.hashCode() ?: 0)
        result = 31 * result + (user?.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 DescribeLocationFsxWindowsResponse

        if (creationTime != other.creationTime) return false
        if (domain != other.domain) return false
        if (locationArn != other.locationArn) return false
        if (locationUri != other.locationUri) return false
        if (securityGroupArns != other.securityGroupArns) return false
        if (user != other.user) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time that the FSx for Windows File Server location was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
         */
        public var domain: kotlin.String? = null
        /**
         * The ARN of the FSx for Windows File Server location.
         */
        public var locationArn: kotlin.String? = null
        /**
         * The uniform resource identifier (URI) of the FSx for Windows File Server location.
         */
        public var locationUri: kotlin.String? = null
        /**
         * The ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet.
         *
         * For information about configuring security groups for file system access, see the *Amazon FSx for Windows File Server User Guide*[](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/limit-access-security-groups.html).
         */
        public var securityGroupArns: List? = null
        /**
         * The user with the permissions to mount and access the FSx for Windows File Server file system.
         */
        public var user: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxWindowsResponse) : this() {
            this.creationTime = x.creationTime
            this.domain = x.domain
            this.locationArn = x.locationArn
            this.locationUri = x.locationUri
            this.securityGroupArns = x.securityGroupArns
            this.user = x.user
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy