commonMain.aws.sdk.kotlin.services.fms.model.StatelessRuleGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Network Firewall stateless rule group, used in a NetworkFirewallPolicyDescription.
*/
public class StatelessRuleGroup private constructor(builder: Builder) {
/**
* The priority of the rule group. Network Firewall evaluates the stateless rule groups in a firewall policy starting from the lowest priority setting.
*/
public val priority: kotlin.Int = builder.priority
/**
* The resource ID of the rule group.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* The name of the rule group.
*/
public val ruleGroupName: kotlin.String? = builder.ruleGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.StatelessRuleGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StatelessRuleGroup(")
append("priority=$priority,")
append("resourceId=$resourceId,")
append("ruleGroupName=$ruleGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = priority
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (ruleGroupName?.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 StatelessRuleGroup
if (priority != other.priority) return false
if (resourceId != other.resourceId) return false
if (ruleGroupName != other.ruleGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.StatelessRuleGroup = Builder(this).apply(block).build()
public class Builder {
/**
* The priority of the rule group. Network Firewall evaluates the stateless rule groups in a firewall policy starting from the lowest priority setting.
*/
public var priority: kotlin.Int = 0
/**
* The resource ID of the rule group.
*/
public var resourceId: kotlin.String? = null
/**
* The name of the rule group.
*/
public var ruleGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.StatelessRuleGroup) : this() {
this.priority = x.priority
this.resourceId = x.resourceId
this.ruleGroupName = x.ruleGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.StatelessRuleGroup = StatelessRuleGroup(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy