aws.sdk.kotlin.services.sagemaker.model.CreateCompilationJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class CreateCompilationJobResponse private constructor(builder: BuilderImpl) {
/**
* If the action is successful, the service sends back an HTTP 200 response. Amazon SageMaker returns
* the following data in JSON format:
* CompilationJobArn: The Amazon Resource Name (ARN) of the compiled
* job.
*/
val compilationJobArn: String? = builder.compilationJobArn
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): CreateCompilationJobResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCompilationJobResponse(")
append("compilationJobArn=$compilationJobArn)")
}
override fun hashCode(): kotlin.Int {
var result = compilationJobArn?.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 CreateCompilationJobResponse
if (compilationJobArn != other.compilationJobArn) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): CreateCompilationJobResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): CreateCompilationJobResponse
/**
* If the action is successful, the service sends back an HTTP 200 response. Amazon SageMaker returns
* the following data in JSON format:
* CompilationJobArn: The Amazon Resource Name (ARN) of the compiled
* job.
*/
fun compilationJobArn(compilationJobArn: String): FluentBuilder
}
interface DslBuilder {
/**
* If the action is successful, the service sends back an HTTP 200 response. Amazon SageMaker returns
* the following data in JSON format:
* CompilationJobArn: The Amazon Resource Name (ARN) of the compiled
* job.
*/
var compilationJobArn: String?
fun build(): CreateCompilationJobResponse
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var compilationJobArn: String? = null
constructor(x: CreateCompilationJobResponse) : this() {
this.compilationJobArn = x.compilationJobArn
}
override fun build(): CreateCompilationJobResponse = CreateCompilationJobResponse(this)
override fun compilationJobArn(compilationJobArn: String): FluentBuilder = apply { this.compilationJobArn = compilationJobArn }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy