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

commonMain.aws.sdk.kotlin.services.groundstation.model.EndpointDetails.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 the endpoint details.
 */
public class EndpointDetails private constructor(builder: Builder) {
    /**
     * An agent endpoint.
     */
    public val awsGroundStationAgentEndpoint: aws.sdk.kotlin.services.groundstation.model.AwsGroundStationAgentEndpoint? = builder.awsGroundStationAgentEndpoint
    /**
     * A dataflow endpoint.
     */
    public val endpoint: aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint? = builder.endpoint
    /**
     * Health reasons for a dataflow endpoint. This field is ignored when calling `CreateDataflowEndpointGroup`.
     */
    public val healthReasons: List? = builder.healthReasons
    /**
     * A dataflow endpoint health status. This field is ignored when calling `CreateDataflowEndpointGroup`.
     */
    public val healthStatus: aws.sdk.kotlin.services.groundstation.model.CapabilityHealth? = builder.healthStatus
    /**
     * Endpoint security details including a list of subnets, a list of security groups and a role to connect streams to instances.
     */
    public val securityDetails: aws.sdk.kotlin.services.groundstation.model.SecurityDetails? = builder.securityDetails

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

    override fun toString(): kotlin.String = buildString {
        append("EndpointDetails(")
        append("awsGroundStationAgentEndpoint=$awsGroundStationAgentEndpoint,")
        append("endpoint=$endpoint,")
        append("healthReasons=$healthReasons,")
        append("healthStatus=$healthStatus,")
        append("securityDetails=$securityDetails")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsGroundStationAgentEndpoint?.hashCode() ?: 0
        result = 31 * result + (endpoint?.hashCode() ?: 0)
        result = 31 * result + (healthReasons?.hashCode() ?: 0)
        result = 31 * result + (healthStatus?.hashCode() ?: 0)
        result = 31 * result + (securityDetails?.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 EndpointDetails

        if (awsGroundStationAgentEndpoint != other.awsGroundStationAgentEndpoint) return false
        if (endpoint != other.endpoint) return false
        if (healthReasons != other.healthReasons) return false
        if (healthStatus != other.healthStatus) return false
        if (securityDetails != other.securityDetails) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An agent endpoint.
         */
        public var awsGroundStationAgentEndpoint: aws.sdk.kotlin.services.groundstation.model.AwsGroundStationAgentEndpoint? = null
        /**
         * A dataflow endpoint.
         */
        public var endpoint: aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint? = null
        /**
         * Health reasons for a dataflow endpoint. This field is ignored when calling `CreateDataflowEndpointGroup`.
         */
        public var healthReasons: List? = null
        /**
         * A dataflow endpoint health status. This field is ignored when calling `CreateDataflowEndpointGroup`.
         */
        public var healthStatus: aws.sdk.kotlin.services.groundstation.model.CapabilityHealth? = null
        /**
         * Endpoint security details including a list of subnets, a list of security groups and a role to connect streams to instances.
         */
        public var securityDetails: aws.sdk.kotlin.services.groundstation.model.SecurityDetails? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.EndpointDetails) : this() {
            this.awsGroundStationAgentEndpoint = x.awsGroundStationAgentEndpoint
            this.endpoint = x.endpoint
            this.healthReasons = x.healthReasons
            this.healthStatus = x.healthStatus
            this.securityDetails = x.securityDetails
        }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy