commonMain.aws.sdk.kotlin.services.fms.model.AwsEc2NetworkInterfaceViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Violation detail for network interfaces associated with an EC2 instance.
*/
public class AwsEc2NetworkInterfaceViolation private constructor(builder: Builder) {
/**
* List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
*/
public val violatingSecurityGroups: List? = builder.violatingSecurityGroups
/**
* The resource ID of the network interface.
*/
public val violationTarget: kotlin.String? = builder.violationTarget
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.AwsEc2NetworkInterfaceViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsEc2NetworkInterfaceViolation(")
append("violatingSecurityGroups=$violatingSecurityGroups,")
append("violationTarget=$violationTarget")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = violatingSecurityGroups?.hashCode() ?: 0
result = 31 * result + (violationTarget?.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 AwsEc2NetworkInterfaceViolation
if (violatingSecurityGroups != other.violatingSecurityGroups) return false
if (violationTarget != other.violationTarget) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.AwsEc2NetworkInterfaceViolation = Builder(this).apply(block).build()
public class Builder {
/**
* List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
*/
public var violatingSecurityGroups: List? = null
/**
* The resource ID of the network interface.
*/
public var violationTarget: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.AwsEc2NetworkInterfaceViolation) : this() {
this.violatingSecurityGroups = x.violatingSecurityGroups
this.violationTarget = x.violationTarget
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.AwsEc2NetworkInterfaceViolation = AwsEc2NetworkInterfaceViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy