commonMain.aws.sdk.kotlin.services.shield.model.DescribeProtectionGroupResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
public class DescribeProtectionGroupResponse private constructor(builder: Builder) {
/**
* A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
*/
public val protectionGroup: aws.sdk.kotlin.services.shield.model.ProtectionGroup? = builder.protectionGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.DescribeProtectionGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeProtectionGroupResponse(")
append("protectionGroup=$protectionGroup)")
}
override fun hashCode(): kotlin.Int {
var result = protectionGroup?.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 DescribeProtectionGroupResponse
if (protectionGroup != other.protectionGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.DescribeProtectionGroupResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
*/
public var protectionGroup: aws.sdk.kotlin.services.shield.model.ProtectionGroup? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.DescribeProtectionGroupResponse) : this() {
this.protectionGroup = x.protectionGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.DescribeProtectionGroupResponse = DescribeProtectionGroupResponse(this)
/**
* construct an [aws.sdk.kotlin.services.shield.model.ProtectionGroup] inside the given [block]
*/
public fun protectionGroup(block: aws.sdk.kotlin.services.shield.model.ProtectionGroup.Builder.() -> kotlin.Unit) {
this.protectionGroup = aws.sdk.kotlin.services.shield.model.ProtectionGroup.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy