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

commonMain.aws.sdk.kotlin.services.servicequotas.model.RequestServiceQuotaIncreaseRequest.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

public class RequestServiceQuotaIncreaseRequest private constructor(builder: Builder) {
    /**
     * Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
     */
    public val contextId: kotlin.String? = builder.contextId
    /**
     * Specifies the new, increased value for the quota.
     */
    public val desiredValue: kotlin.Double? = builder.desiredValue
    /**
     * 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 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

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

    override fun toString(): kotlin.String = buildString {
        append("RequestServiceQuotaIncreaseRequest(")
        append("contextId=$contextId,")
        append("desiredValue=$desiredValue,")
        append("quotaCode=$quotaCode,")
        append("serviceCode=$serviceCode")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contextId?.hashCode() ?: 0
        result = 31 * result + (desiredValue?.hashCode() ?: 0)
        result = 31 * result + (quotaCode?.hashCode() ?: 0)
        result = 31 * result + (serviceCode?.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 RequestServiceQuotaIncreaseRequest

        if (contextId != other.contextId) return false
        if (!(desiredValue?.equals(other.desiredValue) ?: (other.desiredValue == null))) return false
        if (quotaCode != other.quotaCode) return false
        if (serviceCode != other.serviceCode) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
         */
        public var contextId: kotlin.String? = null
        /**
         * Specifies the new, increased value for the quota.
         */
        public var desiredValue: kotlin.Double? = null
        /**
         * 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 service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
         */
        public var serviceCode: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.servicequotas.model.RequestServiceQuotaIncreaseRequest) : this() {
            this.contextId = x.contextId
            this.desiredValue = x.desiredValue
            this.quotaCode = x.quotaCode
            this.serviceCode = x.serviceCode
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy