commonMain.aws.sdk.kotlin.services.devopsguru.model.CloudFormationCollection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about Amazon Web Services CloudFormation stacks. You can use up to 500 stacks to specify which Amazon Web Services resources in your account to analyze. For more information, see [Stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html) in the *Amazon Web Services CloudFormation User Guide*.
*/
public class CloudFormationCollection private constructor(builder: Builder) {
/**
* An array of CloudFormation stack names.
*/
public val stackNames: List? = builder.stackNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.CloudFormationCollection = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CloudFormationCollection(")
append("stackNames=$stackNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = stackNames?.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 CloudFormationCollection
if (stackNames != other.stackNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.CloudFormationCollection = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of CloudFormation stack names.
*/
public var stackNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.CloudFormationCollection) : this() {
this.stackNames = x.stackNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.CloudFormationCollection = CloudFormationCollection(this)
internal fun correctErrors(): Builder {
return this
}
}
}