commonMain.aws.sdk.kotlin.services.fms.model.GetViolationDetailsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class GetViolationDetailsRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID that you want the details for.
*/
public val memberAccount: kotlin.String? = builder.memberAccount
/**
* The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.
*/
public val policyId: kotlin.String? = builder.policyId
/**
* The ID of the resource that has violations.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* The resource type. This is in the format shown in the [Amazon Web Services Resource Types Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html). Supported resource types are: `AWS::EC2::Instance`, `AWS::EC2::NetworkInterface`, `AWS::EC2::SecurityGroup`, `AWS::NetworkFirewall::FirewallPolicy`, and `AWS::EC2::Subnet`.
*/
public val resourceType: kotlin.String? = builder.resourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.GetViolationDetailsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetViolationDetailsRequest(")
append("memberAccount=$memberAccount,")
append("policyId=$policyId,")
append("resourceId=$resourceId,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = memberAccount?.hashCode() ?: 0
result = 31 * result + (policyId?.hashCode() ?: 0)
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (resourceType?.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 GetViolationDetailsRequest
if (memberAccount != other.memberAccount) return false
if (policyId != other.policyId) return false
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.GetViolationDetailsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID that you want the details for.
*/
public var memberAccount: kotlin.String? = null
/**
* The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.
*/
public var policyId: kotlin.String? = null
/**
* The ID of the resource that has violations.
*/
public var resourceId: kotlin.String? = null
/**
* The resource type. This is in the format shown in the [Amazon Web Services Resource Types Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html). Supported resource types are: `AWS::EC2::Instance`, `AWS::EC2::NetworkInterface`, `AWS::EC2::SecurityGroup`, `AWS::NetworkFirewall::FirewallPolicy`, and `AWS::EC2::Subnet`.
*/
public var resourceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.GetViolationDetailsRequest) : this() {
this.memberAccount = x.memberAccount
this.policyId = x.policyId
this.resourceId = x.resourceId
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.GetViolationDetailsRequest = GetViolationDetailsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy