commonMain.aws.sdk.kotlin.services.route53.model.ChangeBatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The information for a change request.
*/
public class ChangeBatch private constructor(builder: Builder) {
/**
* Information about the changes to make to the record sets.
*/
public val changes: List = requireNotNull(builder.changes) { "A non-null value must be provided for changes" }
/**
* *Optional:* Any comments you want to include about a change batch request.
*/
public val comment: kotlin.String? = builder.comment
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.ChangeBatch = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChangeBatch(")
append("changes=$changes,")
append("comment=$comment")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changes.hashCode()
result = 31 * result + (comment?.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 ChangeBatch
if (changes != other.changes) return false
if (comment != other.comment) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.ChangeBatch = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the changes to make to the record sets.
*/
public var changes: List? = null
/**
* *Optional:* Any comments you want to include about a change batch request.
*/
public var comment: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.ChangeBatch) : this() {
this.changes = x.changes
this.comment = x.comment
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.ChangeBatch = ChangeBatch(this)
internal fun correctErrors(): Builder {
if (changes == null) changes = emptyList()
return this
}
}
}