commonMain.aws.sdk.kotlin.services.appconfig.model.UpdateEnvironmentResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateEnvironmentResponse private constructor(builder: Builder) {
/**
* The application ID.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The description of the environment.
*/
public val description: kotlin.String? = builder.description
/**
* The environment ID.
*/
public val id: kotlin.String? = builder.id
/**
* Amazon CloudWatch alarms monitored during the deployment.
*/
public val monitors: List? = builder.monitors
/**
* The name of the environment.
*/
public val name: kotlin.String? = builder.name
/**
* The state of the environment. An environment can be in one of the following states: `READY_FOR_DEPLOYMENT`, `DEPLOYING`, `ROLLING_BACK`, or `ROLLED_BACK`
*/
public val state: aws.sdk.kotlin.services.appconfig.model.EnvironmentState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.UpdateEnvironmentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEnvironmentResponse(")
append("applicationId=$applicationId,")
append("description=$description,")
append("id=$id,")
append("monitors=$monitors,")
append("name=$name,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (monitors?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (state?.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 (applicationId != other.applicationId) return false
if (description != other.description) return false
if (id != other.id) return false
if (monitors != other.monitors) return false
if (name != other.name) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.UpdateEnvironmentResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The application ID.
*/
public var applicationId: kotlin.String? = null
/**
* The description of the environment.
*/
public var description: kotlin.String? = null
/**
* The environment ID.
*/
public var id: kotlin.String? = null
/**
* Amazon CloudWatch alarms monitored during the deployment.
*/
public var monitors: List? = null
/**
* The name of the environment.
*/
public var name: kotlin.String? = null
/**
* The state of the environment. An environment can be in one of the following states: `READY_FOR_DEPLOYMENT`, `DEPLOYING`, `ROLLING_BACK`, or `ROLLED_BACK`
*/
public var state: aws.sdk.kotlin.services.appconfig.model.EnvironmentState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.UpdateEnvironmentResponse) : this() {
this.applicationId = x.applicationId
this.description = x.description
this.id = x.id
this.monitors = x.monitors
this.name = x.name
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.UpdateEnvironmentResponse = UpdateEnvironmentResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy