commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeApplicationsRequest.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 describe one or more applications.
*/
public class DescribeApplicationsRequest private constructor(builder: Builder) {
/**
* If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
*/
public val applicationNames: List? = builder.applicationNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeApplicationsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeApplicationsRequest(")
append("applicationNames=$applicationNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationNames?.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 DescribeApplicationsRequest
if (applicationNames != other.applicationNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeApplicationsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
*/
public var applicationNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeApplicationsRequest) : this() {
this.applicationNames = x.applicationNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeApplicationsRequest = DescribeApplicationsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}