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

commonMain.aws.sdk.kotlin.services.fms.model.Ec2CreateRouteTableAction.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.fms.model



/**
 * Information about the CreateRouteTable action in Amazon EC2.
 */
public class Ec2CreateRouteTableAction private constructor(builder: Builder) {
    /**
     * A description of the CreateRouteTable action.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Information about the ID of a VPC.
     */
    public val vpcId: aws.sdk.kotlin.services.fms.model.ActionTarget? = builder.vpcId

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

    override fun toString(): kotlin.String = buildString {
        append("Ec2CreateRouteTableAction(")
        append("description=$description,")
        append("vpcId=$vpcId")
        append(")")
    }

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

        if (description != other.description) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    public class Builder {
        /**
         * A description of the CreateRouteTable action.
         */
        public var description: kotlin.String? = null
        /**
         * Information about the ID of a VPC.
         */
        public var vpcId: aws.sdk.kotlin.services.fms.model.ActionTarget? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.Ec2CreateRouteTableAction) : this() {
            this.description = x.description
            this.vpcId = x.vpcId
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.fms.model.ActionTarget] inside the given [block]
         */
        public fun vpcId(block: aws.sdk.kotlin.services.fms.model.ActionTarget.Builder.() -> kotlin.Unit) {
            this.vpcId = aws.sdk.kotlin.services.fms.model.ActionTarget.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy