commonMain.aws.sdk.kotlin.services.securityhub.model.AwsEksClusterDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securityhub-jvm Show documentation
Show all versions of securityhub-jvm Show documentation
The AWS SDK for Kotlin client for SecurityHub
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.securityhub.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides details about an Amazon EKS cluster.
*/
public class AwsEksClusterDetails private constructor(builder: Builder) {
/**
* The ARN of the cluster.
*/
public val arn: kotlin.String? = builder.arn
/**
* The certificate authority data for the cluster.
*/
public val certificateAuthorityData: kotlin.String? = builder.certificateAuthorityData
/**
* The status of the cluster. Valid values are as follows:
* + `ACTIVE`
* + `CREATING`
* + `DELETING`
* + `FAILED`
* + `PENDING`
* + `UPDATING`
*/
public val clusterStatus: kotlin.String? = builder.clusterStatus
/**
* The endpoint for the Amazon EKS API server.
*/
public val endpoint: kotlin.String? = builder.endpoint
/**
* The logging configuration for the cluster.
*/
public val logging: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterLoggingDetails? = builder.logging
/**
* The name of the cluster.
*/
public val name: kotlin.String? = builder.name
/**
* The VPC configuration used by the cluster control plane.
*/
public val resourcesVpcConfig: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterResourcesVpcConfigDetails? = builder.resourcesVpcConfig
/**
* The ARN of the IAM role that provides permissions for the Amazon EKS control plane to make calls to Amazon Web Services API operations on your behalf.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The Amazon EKS server version for the cluster.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.securityhub.model.AwsEksClusterDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsEksClusterDetails(")
append("arn=$arn,")
append("certificateAuthorityData=$certificateAuthorityData,")
append("clusterStatus=$clusterStatus,")
append("endpoint=$endpoint,")
append("logging=$logging,")
append("name=$name,")
append("resourcesVpcConfig=$resourcesVpcConfig,")
append("roleArn=$roleArn,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (certificateAuthorityData?.hashCode() ?: 0)
result = 31 * result + (clusterStatus?.hashCode() ?: 0)
result = 31 * result + (endpoint?.hashCode() ?: 0)
result = 31 * result + (logging?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (resourcesVpcConfig?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (version?.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 AwsEksClusterDetails
if (arn != other.arn) return false
if (certificateAuthorityData != other.certificateAuthorityData) return false
if (clusterStatus != other.clusterStatus) return false
if (endpoint != other.endpoint) return false
if (logging != other.logging) return false
if (name != other.name) return false
if (resourcesVpcConfig != other.resourcesVpcConfig) return false
if (roleArn != other.roleArn) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.securityhub.model.AwsEksClusterDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the cluster.
*/
public var arn: kotlin.String? = null
/**
* The certificate authority data for the cluster.
*/
public var certificateAuthorityData: kotlin.String? = null
/**
* The status of the cluster. Valid values are as follows:
* + `ACTIVE`
* + `CREATING`
* + `DELETING`
* + `FAILED`
* + `PENDING`
* + `UPDATING`
*/
public var clusterStatus: kotlin.String? = null
/**
* The endpoint for the Amazon EKS API server.
*/
public var endpoint: kotlin.String? = null
/**
* The logging configuration for the cluster.
*/
public var logging: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterLoggingDetails? = null
/**
* The name of the cluster.
*/
public var name: kotlin.String? = null
/**
* The VPC configuration used by the cluster control plane.
*/
public var resourcesVpcConfig: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterResourcesVpcConfigDetails? = null
/**
* The ARN of the IAM role that provides permissions for the Amazon EKS control plane to make calls to Amazon Web Services API operations on your behalf.
*/
public var roleArn: kotlin.String? = null
/**
* The Amazon EKS server version for the cluster.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterDetails) : this() {
this.arn = x.arn
this.certificateAuthorityData = x.certificateAuthorityData
this.clusterStatus = x.clusterStatus
this.endpoint = x.endpoint
this.logging = x.logging
this.name = x.name
this.resourcesVpcConfig = x.resourcesVpcConfig
this.roleArn = x.roleArn
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.securityhub.model.AwsEksClusterDetails = AwsEksClusterDetails(this)
/**
* construct an [aws.sdk.kotlin.services.securityhub.model.AwsEksClusterLoggingDetails] inside the given [block]
*/
public fun logging(block: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterLoggingDetails.Builder.() -> kotlin.Unit) {
this.logging = aws.sdk.kotlin.services.securityhub.model.AwsEksClusterLoggingDetails.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.securityhub.model.AwsEksClusterResourcesVpcConfigDetails] inside the given [block]
*/
public fun resourcesVpcConfig(block: aws.sdk.kotlin.services.securityhub.model.AwsEksClusterResourcesVpcConfigDetails.Builder.() -> kotlin.Unit) {
this.resourcesVpcConfig = aws.sdk.kotlin.services.securityhub.model.AwsEksClusterResourcesVpcConfigDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}