All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.eks.model.NodegroupResources.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

/**
 * An object representing the resources associated with the node group, such as Auto Scaling groups and security groups for remote access.
 */
public class NodegroupResources private constructor(builder: Builder) {
    /**
     * The Auto Scaling groups associated with the node group.
     */
    public val autoScalingGroups: List? = builder.autoScalingGroups
    /**
     * The remote access security group associated with the node group. This security group controls SSH access to the nodes.
     */
    public val remoteAccessSecurityGroup: kotlin.String? = builder.remoteAccessSecurityGroup

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.NodegroupResources = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("NodegroupResources(")
        append("autoScalingGroups=$autoScalingGroups,")
        append("remoteAccessSecurityGroup=$remoteAccessSecurityGroup")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoScalingGroups?.hashCode() ?: 0
        result = 31 * result + (remoteAccessSecurityGroup?.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 NodegroupResources

        if (autoScalingGroups != other.autoScalingGroups) return false
        if (remoteAccessSecurityGroup != other.remoteAccessSecurityGroup) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.NodegroupResources = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The Auto Scaling groups associated with the node group.
         */
        public var autoScalingGroups: List? = null
        /**
         * The remote access security group associated with the node group. This security group controls SSH access to the nodes.
         */
        public var remoteAccessSecurityGroup: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eks.model.NodegroupResources) : this() {
            this.autoScalingGroups = x.autoScalingGroups
            this.remoteAccessSecurityGroup = x.remoteAccessSecurityGroup
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.eks.model.NodegroupResources = NodegroupResources(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy