commonMain.aws.sdk.kotlin.services.shield.model.SubResourceSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shield Show documentation
Show all versions of shield Show documentation
The AWS SDK for Kotlin client for Shield
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
/**
* The attack information for the specified SubResource.
*/
public class SubResourceSummary private constructor(builder: Builder) {
/**
* The list of attack types and associated counters.
*/
public val attackVectors: List? = builder.attackVectors
/**
* The counters that describe the details of the attack.
*/
public val counters: List? = builder.counters
/**
* The unique identifier (ID) of the `SubResource`.
*/
public val id: kotlin.String? = builder.id
/**
* The `SubResource` type.
*/
public val type: aws.sdk.kotlin.services.shield.model.SubResourceType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.SubResourceSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubResourceSummary(")
append("attackVectors=$attackVectors,")
append("counters=$counters,")
append("id=$id,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attackVectors?.hashCode() ?: 0
result = 31 * result + (counters?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (type?.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 SubResourceSummary
if (attackVectors != other.attackVectors) return false
if (counters != other.counters) return false
if (id != other.id) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.SubResourceSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The list of attack types and associated counters.
*/
public var attackVectors: List? = null
/**
* The counters that describe the details of the attack.
*/
public var counters: List? = null
/**
* The unique identifier (ID) of the `SubResource`.
*/
public var id: kotlin.String? = null
/**
* The `SubResource` type.
*/
public var type: aws.sdk.kotlin.services.shield.model.SubResourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.SubResourceSummary) : this() {
this.attackVectors = x.attackVectors
this.counters = x.counters
this.id = x.id
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.SubResourceSummary = SubResourceSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy