
commonMain.aws.sdk.kotlin.services.eks.model.DescribeFargateProfileRequest.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 DescribeFargateProfileRequest private constructor(builder: Builder) {
/**
* The name of your cluster.
*/
public val clusterName: kotlin.String? = builder.clusterName
/**
* The name of the Fargate profile to describe.
*/
public val fargateProfileName: kotlin.String? = builder.fargateProfileName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.DescribeFargateProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeFargateProfileRequest(")
append("clusterName=$clusterName,")
append("fargateProfileName=$fargateProfileName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterName?.hashCode() ?: 0
result = 31 * result + (fargateProfileName?.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 DescribeFargateProfileRequest
if (clusterName != other.clusterName) return false
if (fargateProfileName != other.fargateProfileName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.DescribeFargateProfileRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of your cluster.
*/
public var clusterName: kotlin.String? = null
/**
* The name of the Fargate profile to describe.
*/
public var fargateProfileName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.DescribeFargateProfileRequest) : this() {
this.clusterName = x.clusterName
this.fargateProfileName = x.fargateProfileName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.DescribeFargateProfileRequest = DescribeFargateProfileRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy