commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The result message containing information about the managed action.
*/
public class ApplyEnvironmentManagedActionResponse private constructor(builder: Builder) {
/**
* A description of the managed action.
*/
public val actionDescription: kotlin.String? = builder.actionDescription
/**
* The action ID of the managed action.
*/
public val actionId: kotlin.String? = builder.actionId
/**
* The type of managed action.
*/
public val actionType: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionType? = builder.actionType
/**
* The status of the managed action.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplyEnvironmentManagedActionResponse(")
append("actionDescription=$actionDescription,")
append("actionId=$actionId,")
append("actionType=$actionType,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionDescription?.hashCode() ?: 0
result = 31 * result + (actionId?.hashCode() ?: 0)
result = 31 * result + (actionType?.hashCode() ?: 0)
result = 31 * result + (status?.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 ApplyEnvironmentManagedActionResponse
if (actionDescription != other.actionDescription) return false
if (actionId != other.actionId) return false
if (actionType != other.actionType) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the managed action.
*/
public var actionDescription: kotlin.String? = null
/**
* The action ID of the managed action.
*/
public var actionId: kotlin.String? = null
/**
* The type of managed action.
*/
public var actionType: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionType? = null
/**
* The status of the managed action.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionResponse) : this() {
this.actionDescription = x.actionDescription
this.actionId = x.actionId
this.actionType = x.actionType
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionResponse = ApplyEnvironmentManagedActionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}