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

commonMain.aws.sdk.kotlin.services.servicequotas.model.ServiceQuotaIncreaseRequestInTemplate.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.servicequotas.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about a quota increase request.
 */
public class ServiceQuotaIncreaseRequestInTemplate private constructor(builder: Builder) {
    /**
     * The Amazon Web Services Region.
     */
    public val awsRegion: kotlin.String? = builder.awsRegion
    /**
     * The new, increased value of the quota.
     */
    public val desiredValue: kotlin.Double? = builder.desiredValue
    /**
     * Indicates whether the quota is global.
     */
    public val globalQuota: kotlin.Boolean = builder.globalQuota
    /**
     * Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the `QuotaCode` response in the output for the quota you want.
     */
    public val quotaCode: kotlin.String? = builder.quotaCode
    /**
     * Specifies the quota name.
     */
    public val quotaName: kotlin.String? = builder.quotaName
    /**
     * Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
     */
    public val serviceCode: kotlin.String? = builder.serviceCode
    /**
     * Specifies the service name.
     */
    public val serviceName: kotlin.String? = builder.serviceName
    /**
     * The unit of measurement.
     */
    public val unit: kotlin.String? = builder.unit

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

    override fun toString(): kotlin.String = buildString {
        append("ServiceQuotaIncreaseRequestInTemplate(")
        append("awsRegion=$awsRegion,")
        append("desiredValue=$desiredValue,")
        append("globalQuota=$globalQuota,")
        append("quotaCode=$quotaCode,")
        append("quotaName=$quotaName,")
        append("serviceCode=$serviceCode,")
        append("serviceName=$serviceName,")
        append("unit=$unit")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsRegion?.hashCode() ?: 0
        result = 31 * result + (desiredValue?.hashCode() ?: 0)
        result = 31 * result + (globalQuota.hashCode())
        result = 31 * result + (quotaCode?.hashCode() ?: 0)
        result = 31 * result + (quotaName?.hashCode() ?: 0)
        result = 31 * result + (serviceCode?.hashCode() ?: 0)
        result = 31 * result + (serviceName?.hashCode() ?: 0)
        result = 31 * result + (unit?.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 ServiceQuotaIncreaseRequestInTemplate

        if (awsRegion != other.awsRegion) return false
        if (!(desiredValue?.equals(other.desiredValue) ?: (other.desiredValue == null))) return false
        if (globalQuota != other.globalQuota) return false
        if (quotaCode != other.quotaCode) return false
        if (quotaName != other.quotaName) return false
        if (serviceCode != other.serviceCode) return false
        if (serviceName != other.serviceName) return false
        if (unit != other.unit) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Web Services Region.
         */
        public var awsRegion: kotlin.String? = null
        /**
         * The new, increased value of the quota.
         */
        public var desiredValue: kotlin.Double? = null
        /**
         * Indicates whether the quota is global.
         */
        public var globalQuota: kotlin.Boolean = false
        /**
         * Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the `QuotaCode` response in the output for the quota you want.
         */
        public var quotaCode: kotlin.String? = null
        /**
         * Specifies the quota name.
         */
        public var quotaName: kotlin.String? = null
        /**
         * Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
         */
        public var serviceCode: kotlin.String? = null
        /**
         * Specifies the service name.
         */
        public var serviceName: kotlin.String? = null
        /**
         * The unit of measurement.
         */
        public var unit: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.servicequotas.model.ServiceQuotaIncreaseRequestInTemplate) : this() {
            this.awsRegion = x.awsRegion
            this.desiredValue = x.desiredValue
            this.globalQuota = x.globalQuota
            this.quotaCode = x.quotaCode
            this.quotaName = x.quotaName
            this.serviceCode = x.serviceCode
            this.serviceName = x.serviceName
            this.unit = x.unit
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy