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

commonMain.aws.sdk.kotlin.services.eventbridge.model.DescribeEndpointResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.eventbridge.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class DescribeEndpointResponse private constructor(builder: Builder) {
    /**
     * The ARN of the endpoint you asked for information about.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time the endpoint you asked for information about was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The description of the endpoint you asked for information about.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the endpoint you asked for information about.
     */
    public val endpointId: kotlin.String? = builder.endpointId
    /**
     * The URL of the endpoint you asked for information about.
     */
    public val endpointUrl: kotlin.String? = builder.endpointUrl
    /**
     * The event buses being used by the endpoint you asked for information about.
     */
    public val eventBuses: List? = builder.eventBuses
    /**
     * The last time the endpoint you asked for information about was modified.
     */
    public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The name of the endpoint you asked for information about.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Whether replication is enabled or disabled for the endpoint you asked for information about.
     */
    public val replicationConfig: aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig? = builder.replicationConfig
    /**
     * The ARN of the role used by the endpoint you asked for information about.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The routing configuration of the endpoint you asked for information about.
     */
    public val routingConfig: aws.sdk.kotlin.services.eventbridge.model.RoutingConfig? = builder.routingConfig
    /**
     * The current state of the endpoint you asked for information about.
     */
    public val state: aws.sdk.kotlin.services.eventbridge.model.EndpointState? = builder.state
    /**
     * The reason the endpoint you asked for information about is in its current state.
     */
    public val stateReason: kotlin.String? = builder.stateReason

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeEndpointResponse(")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("description=$description,")
        append("endpointId=$endpointId,")
        append("endpointUrl=$endpointUrl,")
        append("eventBuses=$eventBuses,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("name=$name,")
        append("replicationConfig=$replicationConfig,")
        append("roleArn=$roleArn,")
        append("routingConfig=$routingConfig,")
        append("state=$state,")
        append("stateReason=$stateReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (endpointId?.hashCode() ?: 0)
        result = 31 * result + (endpointUrl?.hashCode() ?: 0)
        result = 31 * result + (eventBuses?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (replicationConfig?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (routingConfig?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (stateReason?.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 DescribeEndpointResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (description != other.description) return false
        if (endpointId != other.endpointId) return false
        if (endpointUrl != other.endpointUrl) return false
        if (eventBuses != other.eventBuses) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (name != other.name) return false
        if (replicationConfig != other.replicationConfig) return false
        if (roleArn != other.roleArn) return false
        if (routingConfig != other.routingConfig) return false
        if (state != other.state) return false
        if (stateReason != other.stateReason) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the endpoint you asked for information about.
         */
        public var arn: kotlin.String? = null
        /**
         * The time the endpoint you asked for information about was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the endpoint you asked for information about.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the endpoint you asked for information about.
         */
        public var endpointId: kotlin.String? = null
        /**
         * The URL of the endpoint you asked for information about.
         */
        public var endpointUrl: kotlin.String? = null
        /**
         * The event buses being used by the endpoint you asked for information about.
         */
        public var eventBuses: List? = null
        /**
         * The last time the endpoint you asked for information about was modified.
         */
        public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the endpoint you asked for information about.
         */
        public var name: kotlin.String? = null
        /**
         * Whether replication is enabled or disabled for the endpoint you asked for information about.
         */
        public var replicationConfig: aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig? = null
        /**
         * The ARN of the role used by the endpoint you asked for information about.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The routing configuration of the endpoint you asked for information about.
         */
        public var routingConfig: aws.sdk.kotlin.services.eventbridge.model.RoutingConfig? = null
        /**
         * The current state of the endpoint you asked for information about.
         */
        public var state: aws.sdk.kotlin.services.eventbridge.model.EndpointState? = null
        /**
         * The reason the endpoint you asked for information about is in its current state.
         */
        public var stateReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.DescribeEndpointResponse) : this() {
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.description = x.description
            this.endpointId = x.endpointId
            this.endpointUrl = x.endpointUrl
            this.eventBuses = x.eventBuses
            this.lastModifiedTime = x.lastModifiedTime
            this.name = x.name
            this.replicationConfig = x.replicationConfig
            this.roleArn = x.roleArn
            this.routingConfig = x.routingConfig
            this.state = x.state
            this.stateReason = x.stateReason
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy