commonMain.aws.sdk.kotlin.services.gamelift.model.DeleteContainerGroupDefinitionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteContainerGroupDefinitionRequest private constructor(builder: Builder) {
/**
* The unique identifier for the container group definition to delete. You can use either the `Name` or `ARN` value.
*/
public val name: kotlin.String? = builder.name
/**
* The number of most recent versions to keep while deleting all older versions.
*/
public val versionCountToRetain: kotlin.Int? = builder.versionCountToRetain
/**
* The specific version to delete.
*/
public val versionNumber: kotlin.Int? = builder.versionNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.DeleteContainerGroupDefinitionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteContainerGroupDefinitionRequest(")
append("name=$name,")
append("versionCountToRetain=$versionCountToRetain,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (versionCountToRetain ?: 0)
result = 31 * result + (versionNumber ?: 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 DeleteContainerGroupDefinitionRequest
if (name != other.name) return false
if (versionCountToRetain != other.versionCountToRetain) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.DeleteContainerGroupDefinitionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for the container group definition to delete. You can use either the `Name` or `ARN` value.
*/
public var name: kotlin.String? = null
/**
* The number of most recent versions to keep while deleting all older versions.
*/
public var versionCountToRetain: kotlin.Int? = null
/**
* The specific version to delete.
*/
public var versionNumber: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DeleteContainerGroupDefinitionRequest) : this() {
this.name = x.name
this.versionCountToRetain = x.versionCountToRetain
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.DeleteContainerGroupDefinitionRequest = DeleteContainerGroupDefinitionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy