commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationDescription.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
/**
* Describes the properties of an application.
*/
public class ApplicationDescription private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the application.
*/
public val applicationArn: kotlin.String? = builder.applicationArn
/**
* The name of the application.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* The names of the configuration templates associated with this application.
*/
public val configurationTemplates: List? = builder.configurationTemplates
/**
* The date when the application was created.
*/
public val dateCreated: aws.smithy.kotlin.runtime.time.Instant? = builder.dateCreated
/**
* The date when the application was last modified.
*/
public val dateUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.dateUpdated
/**
* User-defined description of the application.
*/
public val description: kotlin.String? = builder.description
/**
* The lifecycle settings for the application.
*/
public val resourceLifecycleConfig: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationResourceLifecycleConfig? = builder.resourceLifecycleConfig
/**
* The names of the versions for this application.
*/
public val versions: List? = builder.versions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplicationDescription(")
append("applicationArn=$applicationArn,")
append("applicationName=$applicationName,")
append("configurationTemplates=$configurationTemplates,")
append("dateCreated=$dateCreated,")
append("dateUpdated=$dateUpdated,")
append("description=$description,")
append("resourceLifecycleConfig=$resourceLifecycleConfig,")
append("versions=$versions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationArn?.hashCode() ?: 0
result = 31 * result + (applicationName?.hashCode() ?: 0)
result = 31 * result + (configurationTemplates?.hashCode() ?: 0)
result = 31 * result + (dateCreated?.hashCode() ?: 0)
result = 31 * result + (dateUpdated?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (resourceLifecycleConfig?.hashCode() ?: 0)
result = 31 * result + (versions?.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 ApplicationDescription
if (applicationArn != other.applicationArn) return false
if (applicationName != other.applicationName) return false
if (configurationTemplates != other.configurationTemplates) return false
if (dateCreated != other.dateCreated) return false
if (dateUpdated != other.dateUpdated) return false
if (description != other.description) return false
if (resourceLifecycleConfig != other.resourceLifecycleConfig) return false
if (versions != other.versions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the application.
*/
public var applicationArn: kotlin.String? = null
/**
* The name of the application.
*/
public var applicationName: kotlin.String? = null
/**
* The names of the configuration templates associated with this application.
*/
public var configurationTemplates: List? = null
/**
* The date when the application was created.
*/
public var dateCreated: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date when the application was last modified.
*/
public var dateUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* User-defined description of the application.
*/
public var description: kotlin.String? = null
/**
* The lifecycle settings for the application.
*/
public var resourceLifecycleConfig: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationResourceLifecycleConfig? = null
/**
* The names of the versions for this application.
*/
public var versions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationDescription) : this() {
this.applicationArn = x.applicationArn
this.applicationName = x.applicationName
this.configurationTemplates = x.configurationTemplates
this.dateCreated = x.dateCreated
this.dateUpdated = x.dateUpdated
this.description = x.description
this.resourceLifecycleConfig = x.resourceLifecycleConfig
this.versions = x.versions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationDescription = ApplicationDescription(this)
/**
* construct an [aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationResourceLifecycleConfig] inside the given [block]
*/
public fun resourceLifecycleConfig(block: aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationResourceLifecycleConfig.Builder.() -> kotlin.Unit) {
this.resourceLifecycleConfig = aws.sdk.kotlin.services.elasticbeanstalk.model.ApplicationResourceLifecycleConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy