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

commonMain.aws.sdk.kotlin.services.glacier.model.ProvisionedCapacityDescription.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.glacier.model



/**
 * The definition for a provisioned capacity unit.
 */
public class ProvisionedCapacityDescription private constructor(builder: Builder) {
    /**
     * The ID that identifies the provisioned capacity unit.
     */
    public val capacityId: kotlin.String? = builder.capacityId
    /**
     * The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC).
     */
    public val expirationDate: kotlin.String? = builder.expirationDate
    /**
     * The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC).
     */
    public val startDate: kotlin.String? = builder.startDate

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

    override fun toString(): kotlin.String = buildString {
        append("ProvisionedCapacityDescription(")
        append("capacityId=$capacityId,")
        append("expirationDate=$expirationDate,")
        append("startDate=$startDate)")
    }

    override fun hashCode(): kotlin.Int {
        var result = capacityId?.hashCode() ?: 0
        result = 31 * result + (expirationDate?.hashCode() ?: 0)
        result = 31 * result + (startDate?.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 ProvisionedCapacityDescription

        if (capacityId != other.capacityId) return false
        if (expirationDate != other.expirationDate) return false
        if (startDate != other.startDate) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID that identifies the provisioned capacity unit.
         */
        public var capacityId: kotlin.String? = null
        /**
         * The date that the provisioned capacity unit expires, in Universal Coordinated Time (UTC).
         */
        public var expirationDate: kotlin.String? = null
        /**
         * The date that the provisioned capacity unit was purchased, in Universal Coordinated Time (UTC).
         */
        public var startDate: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glacier.model.ProvisionedCapacityDescription) : this() {
            this.capacityId = x.capacityId
            this.expirationDate = x.expirationDate
            this.startDate = x.startDate
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glacier.model.ProvisionedCapacityDescription = ProvisionedCapacityDescription(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy