commonMain.aws.sdk.kotlin.services.backup.model.UpdateGlobalSettingsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateGlobalSettingsRequest private constructor(builder: Builder) {
/**
* A value for `isCrossAccountBackupEnabled` and a Region. Example: `update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2`.
*/
public val globalSettings: Map? = builder.globalSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.UpdateGlobalSettingsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGlobalSettingsRequest(")
append("globalSettings=$globalSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = globalSettings?.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 UpdateGlobalSettingsRequest
if (globalSettings != other.globalSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.UpdateGlobalSettingsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A value for `isCrossAccountBackupEnabled` and a Region. Example: `update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2`.
*/
public var globalSettings: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.UpdateGlobalSettingsRequest) : this() {
this.globalSettings = x.globalSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.UpdateGlobalSettingsRequest = UpdateGlobalSettingsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}