commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedAction.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The record of an upcoming or in-progress managed action.
*/
public class ManagedAction private constructor(builder: Builder) {
/**
* A description of the managed action.
*/
public val actionDescription: kotlin.String? = builder.actionDescription
/**
* A unique identifier for 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. If the action is `Scheduled`, you can apply it immediately with ApplyEnvironmentManagedAction.
*/
public val status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionStatus? = builder.status
/**
* The start time of the maintenance window in which the managed action will execute.
*/
public val windowStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.windowStartTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ManagedAction(")
append("actionDescription=$actionDescription,")
append("actionId=$actionId,")
append("actionType=$actionType,")
append("status=$status,")
append("windowStartTime=$windowStartTime")
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)
result = 31 * result + (windowStartTime?.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 ManagedAction
if (actionDescription != other.actionDescription) return false
if (actionId != other.actionId) return false
if (actionType != other.actionType) return false
if (status != other.status) return false
if (windowStartTime != other.windowStartTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedAction = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the managed action.
*/
public var actionDescription: kotlin.String? = null
/**
* A unique identifier for 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. If the action is `Scheduled`, you can apply it immediately with ApplyEnvironmentManagedAction.
*/
public var status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionStatus? = null
/**
* The start time of the maintenance window in which the managed action will execute.
*/
public var windowStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedAction) : this() {
this.actionDescription = x.actionDescription
this.actionId = x.actionId
this.actionType = x.actionType
this.status = x.status
this.windowStartTime = x.windowStartTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedAction = ManagedAction(this)
internal fun correctErrors(): Builder {
return this
}
}
}