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

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

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

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



/**
 * Contains information about the actions that you can take to remediate scope violations caused by your policy's `FirewallCreationConfig`. `FirewallCreationConfig` is an optional configuration that you can use to choose which Availability Zones Firewall Manager creates Network Firewall endpoints in.
 */
public class FmsPolicyUpdateFirewallCreationConfigAction private constructor(builder: Builder) {
    /**
     * Describes the remedial action.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A `FirewallCreationConfig` that you can copy into your current policy's [SecurityServiceData](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_SecurityServicePolicyData.html) in order to remedy scope violations.
     */
    public val firewallCreationConfig: kotlin.String? = builder.firewallCreationConfig

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * Describes the remedial action.
         */
        public var description: kotlin.String? = null
        /**
         * A `FirewallCreationConfig` that you can copy into your current policy's [SecurityServiceData](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_SecurityServicePolicyData.html) in order to remedy scope violations.
         */
        public var firewallCreationConfig: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy