
commonMain.aws.sdk.kotlin.services.eks.model.ConnectorConfigResponse.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The full description of your connected cluster.
*/
public class ConnectorConfigResponse private constructor(builder: Builder) {
/**
* A unique code associated with the cluster for registration purposes.
*/
public val activationCode: kotlin.String? = builder.activationCode
/**
* The expiration time of the connected cluster. The cluster's YAML file must be applied through the native provider.
*/
public val activationExpiry: aws.smithy.kotlin.runtime.time.Instant? = builder.activationExpiry
/**
* A unique ID associated with the cluster for registration purposes.
*/
public val activationId: kotlin.String? = builder.activationId
/**
* The cluster's cloud service provider.
*/
public val provider: kotlin.String? = builder.provider
/**
* The Amazon Resource Name (ARN) of the role to communicate with services from the connected Kubernetes cluster.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.ConnectorConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectorConfigResponse(")
append("activationCode=$activationCode,")
append("activationExpiry=$activationExpiry,")
append("activationId=$activationId,")
append("provider=$provider,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = activationCode?.hashCode() ?: 0
result = 31 * result + (activationExpiry?.hashCode() ?: 0)
result = 31 * result + (activationId?.hashCode() ?: 0)
result = 31 * result + (provider?.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 ConnectorConfigResponse
if (activationCode != other.activationCode) return false
if (activationExpiry != other.activationExpiry) return false
if (activationId != other.activationId) return false
if (provider != other.provider) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.ConnectorConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique code associated with the cluster for registration purposes.
*/
public var activationCode: kotlin.String? = null
/**
* The expiration time of the connected cluster. The cluster's YAML file must be applied through the native provider.
*/
public var activationExpiry: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A unique ID associated with the cluster for registration purposes.
*/
public var activationId: kotlin.String? = null
/**
* The cluster's cloud service provider.
*/
public var provider: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the role to communicate with services from the connected Kubernetes cluster.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.ConnectorConfigResponse) : this() {
this.activationCode = x.activationCode
this.activationExpiry = x.activationExpiry
this.activationId = x.activationId
this.provider = x.provider
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.ConnectorConfigResponse = ConnectorConfigResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy