
commonMain.aws.sdk.kotlin.services.lightsail.model.GetContainerServicesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class GetContainerServicesRequest private constructor(builder: Builder) {
/**
* The name of the container service for which to return information.
*
* When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.
*/
public val serviceName: kotlin.String? = builder.serviceName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetContainerServicesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetContainerServicesRequest(")
append("serviceName=$serviceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 GetContainerServicesRequest
if (serviceName != other.serviceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetContainerServicesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the container service for which to return information.
*
* When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.
*/
public var serviceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetContainerServicesRequest) : this() {
this.serviceName = x.serviceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetContainerServicesRequest = GetContainerServicesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy