commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest.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 execute a scheduled managed action immediately.
*/
public class ApplyEnvironmentManagedActionRequest private constructor(builder: Builder) {
/**
* The action ID of the scheduled managed action to execute.
*/
public val actionId: kotlin.String? = builder.actionId
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplyEnvironmentManagedActionRequest(")
append("actionId=$actionId,")
append("environmentId=$environmentId,")
append("environmentName=$environmentName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionId?.hashCode() ?: 0
result = 31 * result + (environmentId?.hashCode() ?: 0)
result = 31 * result + (environmentName?.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 ApplyEnvironmentManagedActionRequest
if (actionId != other.actionId) return false
if (environmentId != other.environmentId) return false
if (environmentName != other.environmentName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The action ID of the scheduled managed action to execute.
*/
public var actionId: kotlin.String? = null
/**
* 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest) : this() {
this.actionId = x.actionId
this.environmentId = x.environmentId
this.environmentName = x.environmentName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest = ApplyEnvironmentManagedActionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}