commonMain.aws.sdk.kotlin.services.finspace.model.UpdateEnvironmentResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
public class UpdateEnvironmentResponse private constructor(builder: Builder) {
/**
* Returns the FinSpace environment object.
*/
public val environment: aws.sdk.kotlin.services.finspace.model.Environment? = builder.environment
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.UpdateEnvironmentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEnvironmentResponse(")
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 UpdateEnvironmentResponse
if (environment != other.environment) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.UpdateEnvironmentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Returns the FinSpace environment object.
*/
public var environment: aws.sdk.kotlin.services.finspace.model.Environment? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.UpdateEnvironmentResponse) : this() {
this.environment = x.environment
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.UpdateEnvironmentResponse = UpdateEnvironmentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.finspace.model.Environment] inside the given [block]
*/
public fun environment(block: aws.sdk.kotlin.services.finspace.model.Environment.Builder.() -> kotlin.Unit) {
this.environment = aws.sdk.kotlin.services.finspace.model.Environment.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy