All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedEvent.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// 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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy