commonMain.aws.sdk.kotlin.services.fms.model.RegionScope.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Defines the Amazon Web Services Regions that the specified Firewall Manager administrator can manage.
*/
public class RegionScope private constructor(builder: Builder) {
/**
* Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions.
*/
public val allRegionsEnabled: kotlin.Boolean = builder.allRegionsEnabled
/**
* The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
*/
public val regions: List? = builder.regions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.RegionScope = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegionScope(")
append("allRegionsEnabled=$allRegionsEnabled,")
append("regions=$regions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allRegionsEnabled.hashCode()
result = 31 * result + (regions?.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 RegionScope
if (allRegionsEnabled != other.allRegionsEnabled) return false
if (regions != other.regions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.RegionScope = Builder(this).apply(block).build()
public class Builder {
/**
* Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions.
*/
public var allRegionsEnabled: kotlin.Boolean = false
/**
* The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in.
*/
public var regions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.RegionScope) : this() {
this.allRegionsEnabled = x.allRegionsEnabled
this.regions = x.regions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.RegionScope = RegionScope(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy