commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription.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
/**
* Describes the AWS resources in use by this environment. This data is live.
*/
public class EnvironmentResourceDescription private constructor(builder: Builder) {
/**
* The `AutoScalingGroups` used by this environment.
*/
public val autoScalingGroups: List? = builder.autoScalingGroups
/**
* The name of the environment.
*/
public val environmentName: kotlin.String? = builder.environmentName
/**
* The Amazon EC2 instances used by this environment.
*/
public val instances: List? = builder.instances
/**
* The Auto Scaling launch configurations in use by this environment.
*/
public val launchConfigurations: List? = builder.launchConfigurations
/**
* The Amazon EC2 launch templates in use by this environment.
*/
public val launchTemplates: List? = builder.launchTemplates
/**
* The LoadBalancers in use by this environment.
*/
public val loadBalancers: List? = builder.loadBalancers
/**
* The queues used by this environment.
*/
public val queues: List? = builder.queues
/**
* The `AutoScaling` triggers in use by this environment.
*/
public val triggers: List? = builder.triggers
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EnvironmentResourceDescription(")
append("autoScalingGroups=$autoScalingGroups,")
append("environmentName=$environmentName,")
append("instances=$instances,")
append("launchConfigurations=$launchConfigurations,")
append("launchTemplates=$launchTemplates,")
append("loadBalancers=$loadBalancers,")
append("queues=$queues,")
append("triggers=$triggers")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoScalingGroups?.hashCode() ?: 0
result = 31 * result + (environmentName?.hashCode() ?: 0)
result = 31 * result + (instances?.hashCode() ?: 0)
result = 31 * result + (launchConfigurations?.hashCode() ?: 0)
result = 31 * result + (launchTemplates?.hashCode() ?: 0)
result = 31 * result + (loadBalancers?.hashCode() ?: 0)
result = 31 * result + (queues?.hashCode() ?: 0)
result = 31 * result + (triggers?.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 EnvironmentResourceDescription
if (autoScalingGroups != other.autoScalingGroups) return false
if (environmentName != other.environmentName) return false
if (instances != other.instances) return false
if (launchConfigurations != other.launchConfigurations) return false
if (launchTemplates != other.launchTemplates) return false
if (loadBalancers != other.loadBalancers) return false
if (queues != other.queues) return false
if (triggers != other.triggers) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The `AutoScalingGroups` used by this environment.
*/
public var autoScalingGroups: List? = null
/**
* The name of the environment.
*/
public var environmentName: kotlin.String? = null
/**
* The Amazon EC2 instances used by this environment.
*/
public var instances: List? = null
/**
* The Auto Scaling launch configurations in use by this environment.
*/
public var launchConfigurations: List? = null
/**
* The Amazon EC2 launch templates in use by this environment.
*/
public var launchTemplates: List? = null
/**
* The LoadBalancers in use by this environment.
*/
public var loadBalancers: List? = null
/**
* The queues used by this environment.
*/
public var queues: List? = null
/**
* The `AutoScaling` triggers in use by this environment.
*/
public var triggers: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription) : this() {
this.autoScalingGroups = x.autoScalingGroups
this.environmentName = x.environmentName
this.instances = x.instances
this.launchConfigurations = x.launchConfigurations
this.launchTemplates = x.launchTemplates
this.loadBalancers = x.loadBalancers
this.queues = x.queues
this.triggers = x.triggers
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription = EnvironmentResourceDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}