
commonMain.aws.sdk.kotlin.services.eks.model.UpdateClusterConfigRequest.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 UpdateClusterConfigRequest private constructor(builder: Builder) {
/**
* The access configuration for the cluster.
*/
public val accessConfig: aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest? = builder.accessConfig
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see [Amazon EKS cluster control plane logs](https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html) in the **Amazon EKS User Guide**.
*
* CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see [CloudWatch Pricing](http://aws.amazon.com/cloudwatch/pricing/).
*/
public val logging: aws.sdk.kotlin.services.eks.model.Logging? = builder.logging
/**
* The name of the Amazon EKS cluster to update.
*/
public val name: kotlin.String? = builder.name
/**
* An object representing the VPC configuration to use for an Amazon EKS cluster.
*/
public val resourcesVpcConfig: aws.sdk.kotlin.services.eks.model.VpcConfigRequest? = builder.resourcesVpcConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdateClusterConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateClusterConfigRequest(")
append("accessConfig=$accessConfig,")
append("clientRequestToken=$clientRequestToken,")
append("logging=$logging,")
append("name=$name,")
append("resourcesVpcConfig=$resourcesVpcConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessConfig?.hashCode() ?: 0
result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
result = 31 * result + (logging?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (resourcesVpcConfig?.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 UpdateClusterConfigRequest
if (accessConfig != other.accessConfig) return false
if (clientRequestToken != other.clientRequestToken) return false
if (logging != other.logging) return false
if (name != other.name) return false
if (resourcesVpcConfig != other.resourcesVpcConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdateClusterConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The access configuration for the cluster.
*/
public var accessConfig: aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest? = null
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see [Amazon EKS cluster control plane logs](https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html) in the **Amazon EKS User Guide**.
*
* CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see [CloudWatch Pricing](http://aws.amazon.com/cloudwatch/pricing/).
*/
public var logging: aws.sdk.kotlin.services.eks.model.Logging? = null
/**
* The name of the Amazon EKS cluster to update.
*/
public var name: kotlin.String? = null
/**
* An object representing the VPC configuration to use for an Amazon EKS cluster.
*/
public var resourcesVpcConfig: aws.sdk.kotlin.services.eks.model.VpcConfigRequest? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdateClusterConfigRequest) : this() {
this.accessConfig = x.accessConfig
this.clientRequestToken = x.clientRequestToken
this.logging = x.logging
this.name = x.name
this.resourcesVpcConfig = x.resourcesVpcConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdateClusterConfigRequest = UpdateClusterConfigRequest(this)
/**
* construct an [aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest] inside the given [block]
*/
public fun accessConfig(block: aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest.Builder.() -> kotlin.Unit) {
this.accessConfig = aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.eks.model.Logging] inside the given [block]
*/
public fun logging(block: aws.sdk.kotlin.services.eks.model.Logging.Builder.() -> kotlin.Unit) {
this.logging = aws.sdk.kotlin.services.eks.model.Logging.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.eks.model.VpcConfigRequest] inside the given [block]
*/
public fun resourcesVpcConfig(block: aws.sdk.kotlin.services.eks.model.VpcConfigRequest.Builder.() -> kotlin.Unit) {
this.resourcesVpcConfig = aws.sdk.kotlin.services.eks.model.VpcConfigRequest.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy