commonMain.aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssmincidents-jvm Show documentation
Show all versions of ssmincidents-jvm Show documentation
The AWS SDK for Kotlin client for SSM Incidents
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmincidents.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines the information about the Amazon Web Services Region you're deleting from your replication set.
*/
public class DeleteRegionAction private constructor(builder: Builder) {
/**
* The name of the Amazon Web Services Region you're deleting from the replication set.
*/
public val regionName: kotlin.String = requireNotNull(builder.regionName) { "A non-null value must be provided for regionName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRegionAction(")
append("regionName=$regionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = regionName.hashCode()
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 DeleteRegionAction
if (regionName != other.regionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the Amazon Web Services Region you're deleting from the replication set.
*/
public var regionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction) : this() {
this.regionName = x.regionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction = DeleteRegionAction(this)
internal fun correctErrors(): Builder {
if (regionName == null) regionName = ""
return this
}
}
}