commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionHistoryRequest.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 completed and failed managed actions.
*/
public class DescribeEnvironmentManagedActionHistoryRequest 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
/**
* The maximum number of items to return for a single request.
*/
public val maxItems: kotlin.Int? = builder.maxItems
/**
* The pagination token returned by a previous request.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionHistoryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeEnvironmentManagedActionHistoryRequest(")
append("environmentId=$environmentId,")
append("environmentName=$environmentName,")
append("maxItems=$maxItems,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = environmentId?.hashCode() ?: 0
result = 31 * result + (environmentName?.hashCode() ?: 0)
result = 31 * result + (maxItems ?: 0)
result = 31 * result + (nextToken?.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 DescribeEnvironmentManagedActionHistoryRequest
if (environmentId != other.environmentId) return false
if (environmentName != other.environmentName) return false
if (maxItems != other.maxItems) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionHistoryRequest = 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
/**
* The maximum number of items to return for a single request.
*/
public var maxItems: kotlin.Int? = null
/**
* The pagination token returned by a previous request.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionHistoryRequest) : this() {
this.environmentId = x.environmentId
this.environmentName = x.environmentName
this.maxItems = x.maxItems
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionHistoryRequest = DescribeEnvironmentManagedActionHistoryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}