
commonMain.aws.sdk.kotlin.services.eks.model.UpdateEksAnywhereSubscriptionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eks.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateEksAnywhereSubscriptionRequest private constructor(builder: Builder) {
/**
* A boolean indicating whether or not to automatically renew the subscription.
*/
public val autoRenew: kotlin.Boolean? = builder.autoRenew
/**
* Unique, case-sensitive identifier to ensure the idempotency of the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The ID of the subscription.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdateEksAnywhereSubscriptionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEksAnywhereSubscriptionRequest(")
append("autoRenew=$autoRenew,")
append("clientRequestToken=$clientRequestToken,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoRenew?.hashCode() ?: 0
result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
result = 31 * result + (id?.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 UpdateEksAnywhereSubscriptionRequest
if (autoRenew != other.autoRenew) return false
if (clientRequestToken != other.clientRequestToken) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdateEksAnywhereSubscriptionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A boolean indicating whether or not to automatically renew the subscription.
*/
public var autoRenew: kotlin.Boolean? = null
/**
* Unique, case-sensitive identifier to ensure the idempotency of the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The ID of the subscription.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdateEksAnywhereSubscriptionRequest) : this() {
this.autoRenew = x.autoRenew
this.clientRequestToken = x.clientRequestToken
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdateEksAnywhereSubscriptionRequest = UpdateEksAnywhereSubscriptionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy