commonMain.aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent.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 an event that is related to a recommendation.
*/
public class RecommendationRelatedEvent private constructor(builder: Builder) {
/**
* The name of the event. This corresponds to the `Name` field in an `Event` object.
*/
public val name: kotlin.String? = builder.name
/**
* A `ResourceCollection` object that contains arrays of the names of Amazon Web Services CloudFormation stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
*/
public val resources: List? = builder.resources
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecommendationRelatedEvent(")
append("name=$name,")
append("resources=$resources")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (resources?.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 RecommendationRelatedEvent
if (name != other.name) return false
if (resources != other.resources) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the event. This corresponds to the `Name` field in an `Event` object.
*/
public var name: kotlin.String? = null
/**
* A `ResourceCollection` object that contains arrays of the names of Amazon Web Services CloudFormation stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
*/
public var resources: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent) : this() {
this.name = x.name
this.resources = x.resources
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent = RecommendationRelatedEvent(this)
internal fun correctErrors(): Builder {
return this
}
}
}