commonMain.aws.sdk.kotlin.services.resiliencehub.model.EksSourceClusterNamespace.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resiliencehub-jvm Show documentation
Show all versions of resiliencehub-jvm Show documentation
The AWS SDK for Kotlin client for resiliencehub
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resiliencehub.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The input source of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*/
public class EksSourceClusterNamespace private constructor(builder: Builder) {
/**
* Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:`aws`:eks:`region`:`account-id`:cluster/`cluster-name`. For more information about ARNs, see [ Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference* guide.
*/
public val eksClusterArn: kotlin.String = requireNotNull(builder.eksClusterArn) { "A non-null value must be provided for eksClusterArn" }
/**
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*/
public val namespace: kotlin.String = requireNotNull(builder.namespace) { "A non-null value must be provided for namespace" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resiliencehub.model.EksSourceClusterNamespace = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EksSourceClusterNamespace(")
append("eksClusterArn=$eksClusterArn,")
append("namespace=$namespace")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eksClusterArn.hashCode()
result = 31 * result + (namespace.hashCode())
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 EksSourceClusterNamespace
if (eksClusterArn != other.eksClusterArn) return false
if (namespace != other.namespace) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resiliencehub.model.EksSourceClusterNamespace = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:`aws`:eks:`region`:`account-id`:cluster/`cluster-name`. For more information about ARNs, see [ Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference* guide.
*/
public var eksClusterArn: kotlin.String? = null
/**
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*/
public var namespace: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resiliencehub.model.EksSourceClusterNamespace) : this() {
this.eksClusterArn = x.eksClusterArn
this.namespace = x.namespace
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resiliencehub.model.EksSourceClusterNamespace = EksSourceClusterNamespace(this)
internal fun correctErrors(): Builder {
if (eksClusterArn == null) eksClusterArn = ""
if (namespace == null) namespace = ""
return this
}
}
}