aws.sdk.kotlin.services.sagemaker.model.StopEdgePackagingJobRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class StopEdgePackagingJobRequest private constructor(builder: BuilderImpl) {
/**
* The name of the edge packaging job.
*/
val edgePackagingJobName: String? = builder.edgePackagingJobName
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): StopEdgePackagingJobRequest = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopEdgePackagingJobRequest(")
append("edgePackagingJobName=$edgePackagingJobName)")
}
override fun hashCode(): kotlin.Int {
var result = edgePackagingJobName?.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 StopEdgePackagingJobRequest
if (edgePackagingJobName != other.edgePackagingJobName) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): StopEdgePackagingJobRequest = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): StopEdgePackagingJobRequest
/**
* The name of the edge packaging job.
*/
fun edgePackagingJobName(edgePackagingJobName: String): FluentBuilder
}
interface DslBuilder {
/**
* The name of the edge packaging job.
*/
var edgePackagingJobName: String?
fun build(): StopEdgePackagingJobRequest
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var edgePackagingJobName: String? = null
constructor(x: StopEdgePackagingJobRequest) : this() {
this.edgePackagingJobName = x.edgePackagingJobName
}
override fun build(): StopEdgePackagingJobRequest = StopEdgePackagingJobRequest(this)
override fun edgePackagingJobName(edgePackagingJobName: String): FluentBuilder = apply { this.edgePackagingJobName = edgePackagingJobName }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy