commonMain.aws.sdk.kotlin.services.fms.model.AwsVpcSecurityGroupViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Violation detail for the rule violation in a security group when compared to the primary security group of the Firewall Manager policy.
*/
public class AwsVpcSecurityGroupViolation private constructor(builder: Builder) {
/**
* List of rules specified in the security group of the Firewall Manager policy that partially match the `ViolationTarget` rule.
*/
public val partialMatches: List? = builder.partialMatches
/**
* Remediation options for the rule specified in the `ViolationTarget`.
*/
public val possibleSecurityGroupRemediationActions: List? = builder.possibleSecurityGroupRemediationActions
/**
* The security group rule that is being evaluated.
*/
public val violationTarget: kotlin.String? = builder.violationTarget
/**
* A description of the security group that violates the policy.
*/
public val violationTargetDescription: kotlin.String? = builder.violationTargetDescription
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.AwsVpcSecurityGroupViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsVpcSecurityGroupViolation(")
append("partialMatches=$partialMatches,")
append("possibleSecurityGroupRemediationActions=$possibleSecurityGroupRemediationActions,")
append("violationTarget=$violationTarget,")
append("violationTargetDescription=$violationTargetDescription")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = partialMatches?.hashCode() ?: 0
result = 31 * result + (possibleSecurityGroupRemediationActions?.hashCode() ?: 0)
result = 31 * result + (violationTarget?.hashCode() ?: 0)
result = 31 * result + (violationTargetDescription?.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 AwsVpcSecurityGroupViolation
if (partialMatches != other.partialMatches) return false
if (possibleSecurityGroupRemediationActions != other.possibleSecurityGroupRemediationActions) return false
if (violationTarget != other.violationTarget) return false
if (violationTargetDescription != other.violationTargetDescription) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.AwsVpcSecurityGroupViolation = Builder(this).apply(block).build()
public class Builder {
/**
* List of rules specified in the security group of the Firewall Manager policy that partially match the `ViolationTarget` rule.
*/
public var partialMatches: List? = null
/**
* Remediation options for the rule specified in the `ViolationTarget`.
*/
public var possibleSecurityGroupRemediationActions: List? = null
/**
* The security group rule that is being evaluated.
*/
public var violationTarget: kotlin.String? = null
/**
* A description of the security group that violates the policy.
*/
public var violationTargetDescription: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.AwsVpcSecurityGroupViolation) : this() {
this.partialMatches = x.partialMatches
this.possibleSecurityGroupRemediationActions = x.possibleSecurityGroupRemediationActions
this.violationTarget = x.violationTarget
this.violationTargetDescription = x.violationTargetDescription
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.AwsVpcSecurityGroupViolation = AwsVpcSecurityGroupViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy