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

commonMain.aws.sdk.kotlin.services.datasync.model.DescribeLocationObjectStorageResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// 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

/**
 * DescribeLocationObjectStorageResponse
 */
public class DescribeLocationObjectStorageResponse private constructor(builder: Builder) {
    /**
     * The access key (for example, a user name) required to authenticate with the object storage system.
     */
    public val accessKey: kotlin.String? = builder.accessKey
    /**
     * The ARNs of the DataSync agents that can connect with your object storage system.
     */
    public val agentArns: List? = builder.agentArns
    /**
     * The time that the location was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The ARN of the object storage system location.
     */
    public val locationArn: kotlin.String? = builder.locationArn
    /**
     * The URI of the object storage system location.
     */
    public val locationUri: kotlin.String? = builder.locationUri
    /**
     * The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
     */
    public val serverCertificate: kotlin.ByteArray? = builder.serverCertificate
    /**
     * The port that your object storage server accepts inbound network traffic on (for example, port 443).
     */
    public val serverPort: kotlin.Int? = builder.serverPort
    /**
     * The protocol that your object storage system uses to communicate.
     */
    public val serverProtocol: aws.sdk.kotlin.services.datasync.model.ObjectStorageServerProtocol? = builder.serverProtocol

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeLocationObjectStorageResponse(")
        append("accessKey=$accessKey,")
        append("agentArns=$agentArns,")
        append("creationTime=$creationTime,")
        append("locationArn=$locationArn,")
        append("locationUri=$locationUri,")
        append("serverCertificate=$serverCertificate,")
        append("serverPort=$serverPort,")
        append("serverProtocol=$serverProtocol")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessKey?.hashCode() ?: 0
        result = 31 * result + (agentArns?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (locationArn?.hashCode() ?: 0)
        result = 31 * result + (locationUri?.hashCode() ?: 0)
        result = 31 * result + (serverCertificate?.contentHashCode() ?: 0)
        result = 31 * result + (serverPort ?: 0)
        result = 31 * result + (serverProtocol?.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 DescribeLocationObjectStorageResponse

        if (accessKey != other.accessKey) return false
        if (agentArns != other.agentArns) return false
        if (creationTime != other.creationTime) return false
        if (locationArn != other.locationArn) return false
        if (locationUri != other.locationUri) return false
        if (serverCertificate != null) {
            if (other.serverCertificate == null) return false
            if (!serverCertificate.contentEquals(other.serverCertificate)) return false
        } else if (other.serverCertificate != null) return false
        if (serverPort != other.serverPort) return false
        if (serverProtocol != other.serverProtocol) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The access key (for example, a user name) required to authenticate with the object storage system.
         */
        public var accessKey: kotlin.String? = null
        /**
         * The ARNs of the DataSync agents that can connect with your object storage system.
         */
        public var agentArns: List? = null
        /**
         * The time that the location was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN of the object storage system location.
         */
        public var locationArn: kotlin.String? = null
        /**
         * The URI of the object storage system location.
         */
        public var locationUri: kotlin.String? = null
        /**
         * The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
         */
        public var serverCertificate: kotlin.ByteArray? = null
        /**
         * The port that your object storage server accepts inbound network traffic on (for example, port 443).
         */
        public var serverPort: kotlin.Int? = null
        /**
         * The protocol that your object storage system uses to communicate.
         */
        public var serverProtocol: aws.sdk.kotlin.services.datasync.model.ObjectStorageServerProtocol? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeLocationObjectStorageResponse) : this() {
            this.accessKey = x.accessKey
            this.agentArns = x.agentArns
            this.creationTime = x.creationTime
            this.locationArn = x.locationArn
            this.locationUri = x.locationUri
            this.serverCertificate = x.serverCertificate
            this.serverPort = x.serverPort
            this.serverProtocol = x.serverProtocol
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy