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