commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationRequest.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 update an application.
*/
public class UpdateApplicationRequest private constructor(builder: Builder) {
/**
* The name of the application to update. If no such application is found, `UpdateApplication` returns an `InvalidParameterValue` error.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* A new description for the application.
*
* Default: If not specified, AWS Elastic Beanstalk does not update the description.
*/
public val description: kotlin.String? = builder.description
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationRequest(")
append("applicationName=$applicationName,")
append("description=$description")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationName?.hashCode() ?: 0
result = 31 * result + (description?.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 UpdateApplicationRequest
if (applicationName != other.applicationName) return false
if (description != other.description) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the application to update. If no such application is found, `UpdateApplication` returns an `InvalidParameterValue` error.
*/
public var applicationName: kotlin.String? = null
/**
* A new description for the application.
*
* Default: If not specified, AWS Elastic Beanstalk does not update the description.
*/
public var description: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationRequest) : this() {
this.applicationName = x.applicationName
this.description = x.description
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.UpdateApplicationRequest = UpdateApplicationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}