commonMain.aws.sdk.kotlin.services.datasync.model.DescribeLocationNfsResponse.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
/**
* DescribeLocationNfsResponse
*/
public class DescribeLocationNfsResponse private constructor(builder: Builder) {
/**
* The time when the NFS location was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The ARN of the NFS location.
*/
public val locationArn: kotlin.String? = builder.locationArn
/**
* The URI of the NFS location.
*/
public val locationUri: kotlin.String? = builder.locationUri
/**
* The mount options that DataSync uses to mount your NFS file server.
*/
public val mountOptions: aws.sdk.kotlin.services.datasync.model.NfsMountOptions? = builder.mountOptions
/**
* The DataSync agents that can connect to your Network File System (NFS) file server.
*/
public val onPremConfig: aws.sdk.kotlin.services.datasync.model.OnPremConfig? = builder.onPremConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DescribeLocationNfsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeLocationNfsResponse(")
append("creationTime=$creationTime,")
append("locationArn=$locationArn,")
append("locationUri=$locationUri,")
append("mountOptions=$mountOptions,")
append("onPremConfig=$onPremConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (locationArn?.hashCode() ?: 0)
result = 31 * result + (locationUri?.hashCode() ?: 0)
result = 31 * result + (mountOptions?.hashCode() ?: 0)
result = 31 * result + (onPremConfig?.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 DescribeLocationNfsResponse
if (creationTime != other.creationTime) return false
if (locationArn != other.locationArn) return false
if (locationUri != other.locationUri) return false
if (mountOptions != other.mountOptions) return false
if (onPremConfig != other.onPremConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DescribeLocationNfsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time when the NFS location was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the NFS location.
*/
public var locationArn: kotlin.String? = null
/**
* The URI of the NFS location.
*/
public var locationUri: kotlin.String? = null
/**
* The mount options that DataSync uses to mount your NFS file server.
*/
public var mountOptions: aws.sdk.kotlin.services.datasync.model.NfsMountOptions? = null
/**
* The DataSync agents that can connect to your Network File System (NFS) file server.
*/
public var onPremConfig: aws.sdk.kotlin.services.datasync.model.OnPremConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeLocationNfsResponse) : this() {
this.creationTime = x.creationTime
this.locationArn = x.locationArn
this.locationUri = x.locationUri
this.mountOptions = x.mountOptions
this.onPremConfig = x.onPremConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DescribeLocationNfsResponse = DescribeLocationNfsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.datasync.model.NfsMountOptions] inside the given [block]
*/
public fun mountOptions(block: aws.sdk.kotlin.services.datasync.model.NfsMountOptions.Builder.() -> kotlin.Unit) {
this.mountOptions = aws.sdk.kotlin.services.datasync.model.NfsMountOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datasync.model.OnPremConfig] inside the given [block]
*/
public fun onPremConfig(block: aws.sdk.kotlin.services.datasync.model.OnPremConfig.Builder.() -> kotlin.Unit) {
this.onPremConfig = aws.sdk.kotlin.services.datasync.model.OnPremConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy