
commonMain.aws.sdk.kotlin.services.eks.model.CreateFargateProfileResponse.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 CreateFargateProfileResponse private constructor(builder: Builder) {
/**
* The full description of your new Fargate profile.
*/
public val fargateProfile: aws.sdk.kotlin.services.eks.model.FargateProfile? = builder.fargateProfile
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.CreateFargateProfileResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateFargateProfileResponse(")
append("fargateProfile=$fargateProfile")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fargateProfile?.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 CreateFargateProfileResponse
if (fargateProfile != other.fargateProfile) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.CreateFargateProfileResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The full description of your new Fargate profile.
*/
public var fargateProfile: aws.sdk.kotlin.services.eks.model.FargateProfile? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.CreateFargateProfileResponse) : this() {
this.fargateProfile = x.fargateProfile
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.CreateFargateProfileResponse = CreateFargateProfileResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eks.model.FargateProfile] inside the given [block]
*/
public fun fargateProfile(block: aws.sdk.kotlin.services.eks.model.FargateProfile.Builder.() -> kotlin.Unit) {
this.fargateProfile = aws.sdk.kotlin.services.eks.model.FargateProfile.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy