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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.ModifyRuleRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticloadbalancingv2.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ModifyRuleRequest private constructor(builder: Builder) {
    /**
     * The actions.
     */
    public val actions: List? = builder.actions
    /**
     * The conditions.
     */
    public val conditions: List? = builder.conditions
    /**
     * The Amazon Resource Name (ARN) of the rule.
     */
    public val ruleArn: kotlin.String? = builder.ruleArn

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

    override fun toString(): kotlin.String = buildString {
        append("ModifyRuleRequest(")
        append("actions=$actions,")
        append("conditions=$conditions,")
        append("ruleArn=$ruleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actions?.hashCode() ?: 0
        result = 31 * result + (conditions?.hashCode() ?: 0)
        result = 31 * result + (ruleArn?.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 ModifyRuleRequest

        if (actions != other.actions) return false
        if (conditions != other.conditions) return false
        if (ruleArn != other.ruleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The actions.
         */
        public var actions: List? = null
        /**
         * The conditions.
         */
        public var conditions: List? = null
        /**
         * The Amazon Resource Name (ARN) of the rule.
         */
        public var ruleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.ModifyRuleRequest) : this() {
            this.actions = x.actions
            this.conditions = x.conditions
            this.ruleArn = x.ruleArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy