commonMain.aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxOpenZfsResponse.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 DescribeLocationFsxOpenZfsResponse private constructor(builder: Builder) {
/**
* The time that the FSx for OpenZFS location was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The ARN of the FSx for OpenZFS location that was described.
*/
public val locationArn: kotlin.String? = builder.locationArn
/**
* The uniform resource identifier (URI) of the FSx for OpenZFS location that was described.
*
* Example: `fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder`
*/
public val locationUri: kotlin.String? = builder.locationUri
/**
* The type of protocol that DataSync uses to access your file system.
*/
public val protocol: aws.sdk.kotlin.services.datasync.model.FsxProtocol? = builder.protocol
/**
* The ARNs of the security groups that are configured for the FSx for OpenZFS file system.
*/
public val securityGroupArns: List? = builder.securityGroupArns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxOpenZfsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeLocationFsxOpenZfsResponse(")
append("creationTime=$creationTime,")
append("locationArn=$locationArn,")
append("locationUri=$locationUri,")
append("protocol=$protocol,")
append("securityGroupArns=$securityGroupArns")
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 + (protocol?.hashCode() ?: 0)
result = 31 * result + (securityGroupArns?.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 DescribeLocationFsxOpenZfsResponse
if (creationTime != other.creationTime) return false
if (locationArn != other.locationArn) return false
if (locationUri != other.locationUri) return false
if (protocol != other.protocol) return false
if (securityGroupArns != other.securityGroupArns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxOpenZfsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time that the FSx for OpenZFS location was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the FSx for OpenZFS location that was described.
*/
public var locationArn: kotlin.String? = null
/**
* The uniform resource identifier (URI) of the FSx for OpenZFS location that was described.
*
* Example: `fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder`
*/
public var locationUri: kotlin.String? = null
/**
* The type of protocol that DataSync uses to access your file system.
*/
public var protocol: aws.sdk.kotlin.services.datasync.model.FsxProtocol? = null
/**
* The ARNs of the security groups that are configured for the FSx for OpenZFS file system.
*/
public var securityGroupArns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxOpenZfsResponse) : this() {
this.creationTime = x.creationTime
this.locationArn = x.locationArn
this.locationUri = x.locationUri
this.protocol = x.protocol
this.securityGroupArns = x.securityGroupArns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DescribeLocationFsxOpenZfsResponse = DescribeLocationFsxOpenZfsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.datasync.model.FsxProtocol] inside the given [block]
*/
public fun protocol(block: aws.sdk.kotlin.services.datasync.model.FsxProtocol.Builder.() -> kotlin.Unit) {
this.protocol = aws.sdk.kotlin.services.datasync.model.FsxProtocol.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy