commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53recoveryreadiness.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateCellRequest private constructor(builder: Builder) {
/**
* The name of the cell to create.
*/
public val cellName: kotlin.String? = builder.cellName
/**
* A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Amazon Web Services Regions.
*/
public val cells: List? = builder.cells
/**
* A collection of tags associated with a resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCellRequest(")
append("cellName=$cellName,")
append("cells=$cells,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cellName?.hashCode() ?: 0
result = 31 * result + (cells?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateCellRequest
if (cellName != other.cellName) return false
if (cells != other.cells) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the cell to create.
*/
public var cellName: kotlin.String? = null
/**
* A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Amazon Web Services Regions.
*/
public var cells: List? = null
/**
* A collection of tags associated with a resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellRequest) : this() {
this.cellName = x.cellName
this.cells = x.cells
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellRequest = CreateCellRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy