commonMain.aws.sdk.kotlin.services.fsx.model.SvmEndpoint.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 storage virtual machine (SVM) has four endpoints that are used to access data or to manage the SVM using the NetApp ONTAP CLI, REST API, or NetApp CloudManager. They are the `Iscsi`, `Management`, `Nfs`, and `Smb` endpoints.
*/
public class SvmEndpoint 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
/**
* The SVM endpoint's IP addresses.
*/
public val ipAddresses: List? = builder.ipAddresses
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.SvmEndpoint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SvmEndpoint(")
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 SvmEndpoint
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.SvmEndpoint = 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
/**
* The SVM endpoint's IP addresses.
*/
public var ipAddresses: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.SvmEndpoint) : this() {
this.dnsName = x.dnsName
this.ipAddresses = x.ipAddresses
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.SvmEndpoint = SvmEndpoint(this)
internal fun correctErrors(): Builder {
return this
}
}
}