
commonMain.aws.sdk.kotlin.services.eks.model.UpdatePodIdentityAssociationRequest.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 UpdatePodIdentityAssociationRequest private constructor(builder: Builder) {
/**
* The ID of the association to be updated.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The name of the cluster that you want to update the association in.
*/
public val clusterName: kotlin.String? = builder.clusterName
/**
* The new IAM role to change the
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdatePodIdentityAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePodIdentityAssociationRequest(")
append("associationId=$associationId,")
append("clientRequestToken=$clientRequestToken,")
append("clusterName=$clusterName,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
result = 31 * result + (clusterName?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 UpdatePodIdentityAssociationRequest
if (associationId != other.associationId) return false
if (clientRequestToken != other.clientRequestToken) return false
if (clusterName != other.clusterName) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdatePodIdentityAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the association to be updated.
*/
public var associationId: kotlin.String? = null
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The name of the cluster that you want to update the association in.
*/
public var clusterName: kotlin.String? = null
/**
* The new IAM role to change the
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdatePodIdentityAssociationRequest) : this() {
this.associationId = x.associationId
this.clientRequestToken = x.clientRequestToken
this.clusterName = x.clusterName
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdatePodIdentityAssociationRequest = UpdatePodIdentityAssociationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy