commonMain.aws.sdk.kotlin.services.servicequotas.model.GetServiceQuotaIncreaseRequestFromTemplateRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of servicequotas-jvm Show documentation
Show all versions of servicequotas-jvm Show documentation
The AWS SDK for Kotlin client for Service Quotas
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.servicequotas.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetServiceQuotaIncreaseRequestFromTemplateRequest private constructor(builder: Builder) {
/**
* Specifies the Amazon Web Services Region for which you made the request.
*/
public val awsRegion: kotlin.String? = builder.awsRegion
/**
* 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.GetServiceQuotaIncreaseRequestFromTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetServiceQuotaIncreaseRequestFromTemplateRequest(")
append("awsRegion=$awsRegion,")
append("quotaCode=$quotaCode,")
append("serviceCode=$serviceCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = awsRegion?.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 GetServiceQuotaIncreaseRequestFromTemplateRequest
if (awsRegion != other.awsRegion) 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.GetServiceQuotaIncreaseRequestFromTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the Amazon Web Services Region for which you made the request.
*/
public var awsRegion: kotlin.String? = 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.GetServiceQuotaIncreaseRequestFromTemplateRequest) : this() {
this.awsRegion = x.awsRegion
this.quotaCode = x.quotaCode
this.serviceCode = x.serviceCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.servicequotas.model.GetServiceQuotaIncreaseRequestFromTemplateRequest = GetServiceQuotaIncreaseRequestFromTemplateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}