commonMain.aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallPolicy.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Configures the deployment model for the third-party firewall.
*/
public class ThirdPartyFirewallPolicy private constructor(builder: Builder) {
/**
* Defines the deployment model to use for the third-party firewall policy.
*/
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.ThirdPartyFirewallPolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ThirdPartyFirewallPolicy(")
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 ThirdPartyFirewallPolicy
if (firewallDeploymentModel != other.firewallDeploymentModel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallPolicy = Builder(this).apply(block).build()
public class Builder {
/**
* Defines the deployment model to use for the third-party firewall policy.
*/
public var firewallDeploymentModel: aws.sdk.kotlin.services.fms.model.FirewallDeploymentModel? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallPolicy) : this() {
this.firewallDeploymentModel = x.firewallDeploymentModel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallPolicy = ThirdPartyFirewallPolicy(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy