commonMain.aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// 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 two endpoints that are used to access data or to manage the file system using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror. They are the `Management` and `Intercluster` endpoints.
*/
public class FileSystemEndpoint private constructor(builder: Builder) {
/**
* The file system's DNS name. You can mount your file system using its DNS name.
*/
public val dnsName: kotlin.String? = builder.dnsName
/**
* IP addresses of the file system endpoint.
*/
public val ipAddresses: List? = builder.ipAddresses
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FileSystemEndpoint(")
append("dnsName=$dnsName,")
append("ipAddresses=$ipAddresses")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dnsName?.hashCode() ?: 0
result = 31 * result + (ipAddresses?.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 FileSystemEndpoint
if (dnsName != other.dnsName) return false
if (ipAddresses != other.ipAddresses) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The file system's DNS name. You can mount your file system using its DNS name.
*/
public var dnsName: kotlin.String? = null
/**
* IP addresses of the file system endpoint.
*/
public var ipAddresses: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint) : this() {
this.dnsName = x.dnsName
this.ipAddresses = x.ipAddresses
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.FileSystemEndpoint = FileSystemEndpoint(this)
internal fun correctErrors(): Builder {
return this
}
}
}