commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53recoveryreadiness-jvm Show documentation
Show all versions of route53recoveryreadiness-jvm Show documentation
The AWS SDK for Kotlin client for Route53 Recovery Readiness
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53recoveryreadiness.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateCellResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the cell.
*/
public val cellArn: kotlin.String? = builder.cellArn
/**
* The name of the cell.
*/
public val cellName: kotlin.String? = builder.cellName
/**
* A list of cell ARNs.
*/
public val cells: List? = builder.cells
/**
* The readiness scope for the cell, which can be a cell Amazon Resource Name (ARN) or a recovery group ARN. This is a list but currently can have only one element.
*/
public val parentReadinessScopes: List? = builder.parentReadinessScopes
/**
* Tags on the resources.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCellResponse(")
append("cellArn=$cellArn,")
append("cellName=$cellName,")
append("cells=$cells,")
append("parentReadinessScopes=$parentReadinessScopes,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cellArn?.hashCode() ?: 0
result = 31 * result + (cellName?.hashCode() ?: 0)
result = 31 * result + (cells?.hashCode() ?: 0)
result = 31 * result + (parentReadinessScopes?.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 CreateCellResponse
if (cellArn != other.cellArn) return false
if (cellName != other.cellName) return false
if (cells != other.cells) return false
if (parentReadinessScopes != other.parentReadinessScopes) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) for the cell.
*/
public var cellArn: kotlin.String? = null
/**
* The name of the cell.
*/
public var cellName: kotlin.String? = null
/**
* A list of cell ARNs.
*/
public var cells: List? = null
/**
* The readiness scope for the cell, which can be a cell Amazon Resource Name (ARN) or a recovery group ARN. This is a list but currently can have only one element.
*/
public var parentReadinessScopes: List? = null
/**
* Tags on the resources.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellResponse) : this() {
this.cellArn = x.cellArn
this.cellName = x.cellName
this.cells = x.cells
this.parentReadinessScopes = x.parentReadinessScopes
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53recoveryreadiness.model.CreateCellResponse = CreateCellResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}