aws.sdk.kotlin.services.sagemaker.model.DescribeWorkforceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class DescribeWorkforceResponse private constructor(builder: BuilderImpl) {
/**
* A single private workforce, which is automatically created when you create your first
* private work team. You can create one private work force in each Amazon Web Services Region. By default,
* any workforce-related API operation used in a specific region will apply to the
* workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.
*/
val workforce: Workforce? = builder.workforce
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): DescribeWorkforceResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeWorkforceResponse(")
append("workforce=$workforce)")
}
override fun hashCode(): kotlin.Int {
var result = workforce?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as DescribeWorkforceResponse
if (workforce != other.workforce) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): DescribeWorkforceResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): DescribeWorkforceResponse
/**
* A single private workforce, which is automatically created when you create your first
* private work team. You can create one private work force in each Amazon Web Services Region. By default,
* any workforce-related API operation used in a specific region will apply to the
* workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.
*/
fun workforce(workforce: Workforce): FluentBuilder
}
interface DslBuilder {
/**
* A single private workforce, which is automatically created when you create your first
* private work team. You can create one private work force in each Amazon Web Services Region. By default,
* any workforce-related API operation used in a specific region will apply to the
* workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.
*/
var workforce: Workforce?
fun build(): DescribeWorkforceResponse
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.Workforce] inside the given [block]
*/
fun workforce(block: Workforce.DslBuilder.() -> kotlin.Unit) {
this.workforce = Workforce.invoke(block)
}
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var workforce: Workforce? = null
constructor(x: DescribeWorkforceResponse) : this() {
this.workforce = x.workforce
}
override fun build(): DescribeWorkforceResponse = DescribeWorkforceResponse(this)
override fun workforce(workforce: Workforce): FluentBuilder = apply { this.workforce = workforce }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy