commonMain.aws.sdk.kotlin.services.servicequotas.model.ServiceInfo.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 an Amazon Web Service.
*/
public class ServiceInfo private constructor(builder: Builder) {
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.servicequotas.model.ServiceInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServiceInfo(")
append("serviceCode=$serviceCode,")
append("serviceName=$serviceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = serviceCode?.hashCode() ?: 0
result = 31 * result + (serviceName?.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 ServiceInfo
if (serviceCode != other.serviceCode) return false
if (serviceName != other.serviceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.servicequotas.model.ServiceInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.servicequotas.model.ServiceInfo) : this() {
this.serviceCode = x.serviceCode
this.serviceName = x.serviceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.servicequotas.model.ServiceInfo = ServiceInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy