commonMain.aws.sdk.kotlin.services.emrcontainers.model.CreateVirtualClusterRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
public class CreateVirtualClusterRequest private constructor(builder: Builder) {
/**
* The client token of the virtual cluster.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The container provider of the virtual cluster.
*/
public val containerProvider: aws.sdk.kotlin.services.emrcontainers.model.ContainerProvider? = builder.containerProvider
/**
* The specified name of the virtual cluster.
*/
public val name: kotlin.String? = builder.name
/**
* The tags assigned to the virtual cluster.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.CreateVirtualClusterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateVirtualClusterRequest(")
append("clientToken=$clientToken,")
append("containerProvider=$containerProvider,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (containerProvider?.hashCode() ?: 0)
result = 31 * result + (name?.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 CreateVirtualClusterRequest
if (clientToken != other.clientToken) return false
if (containerProvider != other.containerProvider) return false
if (name != other.name) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.CreateVirtualClusterRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The client token of the virtual cluster.
*/
public var clientToken: kotlin.String? = null
/**
* The container provider of the virtual cluster.
*/
public var containerProvider: aws.sdk.kotlin.services.emrcontainers.model.ContainerProvider? = null
/**
* The specified name of the virtual cluster.
*/
public var name: kotlin.String? = null
/**
* The tags assigned to the virtual cluster.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.CreateVirtualClusterRequest) : this() {
this.clientToken = x.clientToken
this.containerProvider = x.containerProvider
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.CreateVirtualClusterRequest = CreateVirtualClusterRequest(this)
/**
* construct an [aws.sdk.kotlin.services.emrcontainers.model.ContainerProvider] inside the given [block]
*/
public fun containerProvider(block: aws.sdk.kotlin.services.emrcontainers.model.ContainerProvider.Builder.() -> kotlin.Unit) {
this.containerProvider = aws.sdk.kotlin.services.emrcontainers.model.ContainerProvider.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy