commonMain.aws.sdk.kotlin.services.imagebuilder.model.GetInfrastructureConfigurationResponse.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
/**
* GetInfrastructureConfiguration response object.
*/
public class GetInfrastructureConfigurationResponse private constructor(builder: Builder) {
/**
* The infrastructure configuration object.
*/
public val infrastructureConfiguration: aws.sdk.kotlin.services.imagebuilder.model.InfrastructureConfiguration? = builder.infrastructureConfiguration
/**
* 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.GetInfrastructureConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInfrastructureConfigurationResponse(")
append("infrastructureConfiguration=$infrastructureConfiguration,")
append("requestId=$requestId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = infrastructureConfiguration?.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 GetInfrastructureConfigurationResponse
if (infrastructureConfiguration != other.infrastructureConfiguration) return false
if (requestId != other.requestId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.imagebuilder.model.GetInfrastructureConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The infrastructure configuration object.
*/
public var infrastructureConfiguration: aws.sdk.kotlin.services.imagebuilder.model.InfrastructureConfiguration? = 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.GetInfrastructureConfigurationResponse) : this() {
this.infrastructureConfiguration = x.infrastructureConfiguration
this.requestId = x.requestId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.imagebuilder.model.GetInfrastructureConfigurationResponse = GetInfrastructureConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.imagebuilder.model.InfrastructureConfiguration] inside the given [block]
*/
public fun infrastructureConfiguration(block: aws.sdk.kotlin.services.imagebuilder.model.InfrastructureConfiguration.Builder.() -> kotlin.Unit) {
this.infrastructureConfiguration = aws.sdk.kotlin.services.imagebuilder.model.InfrastructureConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}