commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallPolicy.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Configures the firewall policy deployment model of Network Firewall. For information about Network Firewall deployment models, see [Network Firewall example architectures with routing](https://docs.aws.amazon.com/network-firewall/latest/developerguide/architectures.html) in the *Network Firewall Developer Guide*.
*/
public class NetworkFirewallPolicy private constructor(builder: Builder) {
/**
* Defines the deployment model to use for the firewall policy. To use a distributed model, set [PolicyOption](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_PolicyOption.html) to `NULL`.
*/
public val firewallDeploymentModel: aws.sdk.kotlin.services.fms.model.FirewallDeploymentModel? = builder.firewallDeploymentModel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.NetworkFirewallPolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallPolicy(")
append("firewallDeploymentModel=$firewallDeploymentModel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = firewallDeploymentModel?.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 NetworkFirewallPolicy
if (firewallDeploymentModel != other.firewallDeploymentModel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.NetworkFirewallPolicy = Builder(this).apply(block).build()
public class Builder {
/**
* Defines the deployment model to use for the firewall policy. To use a distributed model, set [PolicyOption](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_PolicyOption.html) to `NULL`.
*/
public var firewallDeploymentModel: aws.sdk.kotlin.services.fms.model.FirewallDeploymentModel? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.NetworkFirewallPolicy) : this() {
this.firewallDeploymentModel = x.firewallDeploymentModel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallPolicy = NetworkFirewallPolicy(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy