commonMain.aws.sdk.kotlin.services.snowball.model.CreateClusterResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS SDK for Kotlin client for Snowball
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateClusterResponse private constructor(builder: Builder) {
/**
* The automatically generated ID for a cluster.
*/
public val clusterId: kotlin.String? = builder.clusterId
/**
* List of jobs created for this cluster. For syntax, see [ListJobsResult$JobListEntries](http://amazonaws.com/snowball/latest/api-reference/API_ListJobs.html#API_ListJobs_ResponseSyntax) in this guide.
*/
public val jobListEntries: List? = builder.jobListEntries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.CreateClusterResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateClusterResponse(")
append("clusterId=$clusterId,")
append("jobListEntries=$jobListEntries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterId?.hashCode() ?: 0
result = 31 * result + (jobListEntries?.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 CreateClusterResponse
if (clusterId != other.clusterId) return false
if (jobListEntries != other.jobListEntries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.CreateClusterResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The automatically generated ID for a cluster.
*/
public var clusterId: kotlin.String? = null
/**
* List of jobs created for this cluster. For syntax, see [ListJobsResult$JobListEntries](http://amazonaws.com/snowball/latest/api-reference/API_ListJobs.html#API_ListJobs_ResponseSyntax) in this guide.
*/
public var jobListEntries: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.CreateClusterResponse) : this() {
this.clusterId = x.clusterId
this.jobListEntries = x.jobListEntries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.CreateClusterResponse = CreateClusterResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}