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

commonMain.aws.sdk.kotlin.services.groundstation.model.AwsGroundStationAgentEndpoint.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.groundstation.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about AwsGroundStationAgentEndpoint.
 */
public class AwsGroundStationAgentEndpoint private constructor(builder: Builder) {
    /**
     * The status of AgentEndpoint.
     */
    public val agentStatus: aws.sdk.kotlin.services.groundstation.model.AgentStatus? = builder.agentStatus
    /**
     * The results of the audit.
     */
    public val auditResults: aws.sdk.kotlin.services.groundstation.model.AuditResults? = builder.auditResults
    /**
     * The egress address of AgentEndpoint.
     */
    public val egressAddress: aws.sdk.kotlin.services.groundstation.model.ConnectionDetails? = builder.egressAddress
    /**
     * The ingress address of AgentEndpoint.
     */
    public val ingressAddress: aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails? = builder.ingressAddress
    /**
     * Name string associated with AgentEndpoint. Used as a human-readable identifier for AgentEndpoint.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }

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

    override fun toString(): kotlin.String = buildString {
        append("AwsGroundStationAgentEndpoint(")
        append("agentStatus=$agentStatus,")
        append("auditResults=$auditResults,")
        append("egressAddress=$egressAddress,")
        append("ingressAddress=$ingressAddress,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = agentStatus?.hashCode() ?: 0
        result = 31 * result + (auditResults?.hashCode() ?: 0)
        result = 31 * result + (egressAddress?.hashCode() ?: 0)
        result = 31 * result + (ingressAddress?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        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 AwsGroundStationAgentEndpoint

        if (agentStatus != other.agentStatus) return false
        if (auditResults != other.auditResults) return false
        if (egressAddress != other.egressAddress) return false
        if (ingressAddress != other.ingressAddress) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The status of AgentEndpoint.
         */
        public var agentStatus: aws.sdk.kotlin.services.groundstation.model.AgentStatus? = null
        /**
         * The results of the audit.
         */
        public var auditResults: aws.sdk.kotlin.services.groundstation.model.AuditResults? = null
        /**
         * The egress address of AgentEndpoint.
         */
        public var egressAddress: aws.sdk.kotlin.services.groundstation.model.ConnectionDetails? = null
        /**
         * The ingress address of AgentEndpoint.
         */
        public var ingressAddress: aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails? = null
        /**
         * Name string associated with AgentEndpoint. Used as a human-readable identifier for AgentEndpoint.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.AwsGroundStationAgentEndpoint) : this() {
            this.agentStatus = x.agentStatus
            this.auditResults = x.auditResults
            this.egressAddress = x.egressAddress
            this.ingressAddress = x.ingressAddress
            this.name = x.name
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.groundstation.model.ConnectionDetails] inside the given [block]
         */
        public fun egressAddress(block: aws.sdk.kotlin.services.groundstation.model.ConnectionDetails.Builder.() -> kotlin.Unit) {
            this.egressAddress = aws.sdk.kotlin.services.groundstation.model.ConnectionDetails.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails] inside the given [block]
         */
        public fun ingressAddress(block: aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails.Builder.() -> kotlin.Unit) {
            this.ingressAddress = aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails.invoke(block)
        }

        internal fun correctErrors(): Builder {
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy