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

commonMain.aws.sdk.kotlin.services.fsx.model.FileSystemEndpoints.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fsx.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * An Amazon FSx for NetApp ONTAP file system has the following endpoints that are used to access data or to manage the file system using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror.
 */
public class FileSystemEndpoints private constructor(builder: Builder) {
    /**
     * An endpoint for managing your file system by setting up NetApp SnapMirror with other ONTAP systems.
     */
    public val intercluster: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint? = builder.intercluster
    /**
     * An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API.
     */
    public val management: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint? = builder.management

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

    override fun toString(): kotlin.String = buildString {
        append("FileSystemEndpoints(")
        append("intercluster=$intercluster,")
        append("management=$management")
        append(")")
    }

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

        if (intercluster != other.intercluster) return false
        if (management != other.management) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An endpoint for managing your file system by setting up NetApp SnapMirror with other ONTAP systems.
         */
        public var intercluster: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint? = null
        /**
         * An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API.
         */
        public var management: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoints) : this() {
            this.intercluster = x.intercluster
            this.management = x.management
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy