commonMain.aws.sdk.kotlin.services.imagebuilder.model.GetImageRecipeResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imagebuilder-jvm Show documentation
Show all versions of imagebuilder-jvm Show documentation
The AWS SDK for Kotlin client for imagebuilder
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.imagebuilder.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetImageRecipeResponse private constructor(builder: Builder) {
/**
* The image recipe object.
*/
public val imageRecipe: aws.sdk.kotlin.services.imagebuilder.model.ImageRecipe? = builder.imageRecipe
/**
* The request ID that uniquely identifies this request.
*/
public val requestId: kotlin.String? = builder.requestId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.imagebuilder.model.GetImageRecipeResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetImageRecipeResponse(")
append("imageRecipe=$imageRecipe,")
append("requestId=$requestId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageRecipe?.hashCode() ?: 0
result = 31 * result + (requestId?.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 GetImageRecipeResponse
if (imageRecipe != other.imageRecipe) return false
if (requestId != other.requestId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.imagebuilder.model.GetImageRecipeResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The image recipe object.
*/
public var imageRecipe: aws.sdk.kotlin.services.imagebuilder.model.ImageRecipe? = null
/**
* The request ID that uniquely identifies this request.
*/
public var requestId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.imagebuilder.model.GetImageRecipeResponse) : this() {
this.imageRecipe = x.imageRecipe
this.requestId = x.requestId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.imagebuilder.model.GetImageRecipeResponse = GetImageRecipeResponse(this)
/**
* construct an [aws.sdk.kotlin.services.imagebuilder.model.ImageRecipe] inside the given [block]
*/
public fun imageRecipe(block: aws.sdk.kotlin.services.imagebuilder.model.ImageRecipe.Builder.() -> kotlin.Unit) {
this.imageRecipe = aws.sdk.kotlin.services.imagebuilder.model.ImageRecipe.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}