commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest.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
/**
* Request to list an environment's upcoming and in-progress managed actions.
*/
public class DescribeEnvironmentManagedActionsRequest private constructor(builder: Builder) {
/**
* The environment ID of the target environment.
*/
public val environmentId: kotlin.String? = builder.environmentId
/**
* The name of the target environment.
*/
public val environmentName: kotlin.String? = builder.environmentName
/**
* To show only actions with a particular status, specify a status.
*/
public val status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeEnvironmentManagedActionsRequest(")
append("environmentId=$environmentId,")
append("environmentName=$environmentName,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = environmentId?.hashCode() ?: 0
result = 31 * result + (environmentName?.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 DescribeEnvironmentManagedActionsRequest
if (environmentId != other.environmentId) return false
if (environmentName != other.environmentName) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The environment ID of the target environment.
*/
public var environmentId: kotlin.String? = null
/**
* The name of the target environment.
*/
public var environmentName: kotlin.String? = null
/**
* To show only actions with a particular status, specify a status.
*/
public var status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest) : this() {
this.environmentId = x.environmentId
this.environmentName = x.environmentName
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest = DescribeEnvironmentManagedActionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}