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

commonMain.aws.sdk.kotlin.services.outposts.model.Outpost.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.outposts.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about an Outpost.
 */
public class Outpost private constructor(builder: Builder) {
    /**
     * The Availability Zone.
     */
    public val availabilityZone: kotlin.String? = builder.availabilityZone
    /**
     * The ID of the Availability Zone.
     */
    public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
    /**
     * The description of the Outpost.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The life cycle status.
     */
    public val lifeCycleStatus: kotlin.String? = builder.lifeCycleStatus
    /**
     * The name of the Outpost.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The Amazon Resource Name (ARN) of the Outpost.
     */
    public val outpostArn: kotlin.String? = builder.outpostArn
    /**
     * The ID of the Outpost.
     */
    public val outpostId: kotlin.String? = builder.outpostId
    /**
     * The Amazon Web Services account ID of the Outpost owner.
     */
    public val ownerId: kotlin.String? = builder.ownerId
    /**
     * The Amazon Resource Name (ARN) of the site.
     */
    public val siteArn: kotlin.String? = builder.siteArn
    /**
     * The ID of the site.
     */
    public val siteId: kotlin.String? = builder.siteId
    /**
     * The hardware type.
     */
    public val supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = builder.supportedHardwareType
    /**
     * The Outpost tags.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("Outpost(")
        append("availabilityZone=$availabilityZone,")
        append("availabilityZoneId=$availabilityZoneId,")
        append("description=$description,")
        append("lifeCycleStatus=$lifeCycleStatus,")
        append("name=$name,")
        append("outpostArn=$outpostArn,")
        append("outpostId=$outpostId,")
        append("ownerId=$ownerId,")
        append("siteArn=$siteArn,")
        append("siteId=$siteId,")
        append("supportedHardwareType=$supportedHardwareType,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = availabilityZone?.hashCode() ?: 0
        result = 31 * result + (availabilityZoneId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (lifeCycleStatus?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (outpostArn?.hashCode() ?: 0)
        result = 31 * result + (outpostId?.hashCode() ?: 0)
        result = 31 * result + (ownerId?.hashCode() ?: 0)
        result = 31 * result + (siteArn?.hashCode() ?: 0)
        result = 31 * result + (siteId?.hashCode() ?: 0)
        result = 31 * result + (supportedHardwareType?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 Outpost

        if (availabilityZone != other.availabilityZone) return false
        if (availabilityZoneId != other.availabilityZoneId) return false
        if (description != other.description) return false
        if (lifeCycleStatus != other.lifeCycleStatus) return false
        if (name != other.name) return false
        if (outpostArn != other.outpostArn) return false
        if (outpostId != other.outpostId) return false
        if (ownerId != other.ownerId) return false
        if (siteArn != other.siteArn) return false
        if (siteId != other.siteId) return false
        if (supportedHardwareType != other.supportedHardwareType) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Availability Zone.
         */
        public var availabilityZone: kotlin.String? = null
        /**
         * The ID of the Availability Zone.
         */
        public var availabilityZoneId: kotlin.String? = null
        /**
         * The description of the Outpost.
         */
        public var description: kotlin.String? = null
        /**
         * The life cycle status.
         */
        public var lifeCycleStatus: kotlin.String? = null
        /**
         * The name of the Outpost.
         */
        public var name: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the Outpost.
         */
        public var outpostArn: kotlin.String? = null
        /**
         * The ID of the Outpost.
         */
        public var outpostId: kotlin.String? = null
        /**
         * The Amazon Web Services account ID of the Outpost owner.
         */
        public var ownerId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the site.
         */
        public var siteArn: kotlin.String? = null
        /**
         * The ID of the site.
         */
        public var siteId: kotlin.String? = null
        /**
         * The hardware type.
         */
        public var supportedHardwareType: aws.sdk.kotlin.services.outposts.model.SupportedHardwareType? = null
        /**
         * The Outpost tags.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.outposts.model.Outpost) : this() {
            this.availabilityZone = x.availabilityZone
            this.availabilityZoneId = x.availabilityZoneId
            this.description = x.description
            this.lifeCycleStatus = x.lifeCycleStatus
            this.name = x.name
            this.outpostArn = x.outpostArn
            this.outpostId = x.outpostId
            this.ownerId = x.ownerId
            this.siteArn = x.siteArn
            this.siteId = x.siteId
            this.supportedHardwareType = x.supportedHardwareType
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy