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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.devopsguru.model



class DescribeOrganizationResourceCollectionHealthResponse private constructor(builder: Builder) {
    /**
     * The name of the organization's account.
     */
    val account: List? = builder.account
    /**
     * The returned CloudFormationHealthOverview object that contains an
     * InsightHealthOverview object with the requested system health
     * information.
     */
    val cloudFormation: List? = builder.cloudFormation
    /**
     * The pagination token to use to retrieve
     * the next page of results for this operation. If there are no more pages, this value is null.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * An array of ServiceHealth objects that describes the health of the Amazon Web Services
     * services associated with the resources in the collection.
     */
    val service: List? = builder.service
    /**
     * Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support
     * tagging, so you can assign the same tag to resources from different services to indicate
     * that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
     * table resource that you assign to an Lambda function. For more information about
     * using tags, see the Tagging
     * best practices whitepaper.
     * Each Amazon Web Services tag has two parts.
     *
     *
     * A tag key (for example, CostCenter,
     * Environment, Project, or Secret). Tag
     * keys are case-sensitive.
     *
     *
     * An optional field known as a tag value (for example,
     * 111122223333, Production, or a team
     * name). Omitting the tag value is the same as using an empty
     * string. Like tag keys, tag values are
     * case-sensitive.
     *
     *
     * Together these are known as key-value pairs.
     *
     * The string used for a key in a tag that you use to define your resource coverage must begin with the
     * prefix Devops-guru-. The tag key might be
     * Devops-guru-deployment-application or
     * Devops-guru-rds-application. While keys are case-sensitive, the
     * case of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a
     * key named devops-guru-rds and a key named
     * DevOps-Guru-RDS. Possible key/value pairs in your
     * application might be Devops-Guru-production-application/RDS or
     * Devops-Guru-production-application/containers.
     */
    val tags: List? = builder.tags

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationResourceCollectionHealthResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeOrganizationResourceCollectionHealthResponse(")
        append("account=$account,")
        append("cloudFormation=$cloudFormation,")
        append("nextToken=$nextToken,")
        append("service=$service,")
        append("tags=$tags)")
    }

    override fun hashCode(): kotlin.Int {
        var result = account?.hashCode() ?: 0
        result = 31 * result + (cloudFormation?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (service?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 DescribeOrganizationResourceCollectionHealthResponse

        if (account != other.account) return false
        if (cloudFormation != other.cloudFormation) return false
        if (nextToken != other.nextToken) return false
        if (service != other.service) return false
        if (tags != other.tags) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationResourceCollectionHealthResponse = Builder(this).apply(block).build()

    class Builder {
        /**
         * The name of the organization's account.
         */
        var account: List? = null
        /**
         * The returned CloudFormationHealthOverview object that contains an
         * InsightHealthOverview object with the requested system health
         * information.
         */
        var cloudFormation: List? = null
        /**
         * The pagination token to use to retrieve
         * the next page of results for this operation. If there are no more pages, this value is null.
         */
        var nextToken: kotlin.String? = null
        /**
         * An array of ServiceHealth objects that describes the health of the Amazon Web Services
         * services associated with the resources in the collection.
         */
        var service: List? = null
        /**
         * Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support
         * tagging, so you can assign the same tag to resources from different services to indicate
         * that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB
         * table resource that you assign to an Lambda function. For more information about
         * using tags, see the Tagging
         * best practices whitepaper.
         * Each Amazon Web Services tag has two parts.
         *
         *
         * A tag key (for example, CostCenter,
         * Environment, Project, or Secret). Tag
         * keys are case-sensitive.
         *
         *
         * An optional field known as a tag value (for example,
         * 111122223333, Production, or a team
         * name). Omitting the tag value is the same as using an empty
         * string. Like tag keys, tag values are
         * case-sensitive.
         *
         *
         * Together these are known as key-value pairs.
         *
         * The string used for a key in a tag that you use to define your resource coverage must begin with the
         * prefix Devops-guru-. The tag key might be
         * Devops-guru-deployment-application or
         * Devops-guru-rds-application. While keys are case-sensitive, the
         * case of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a
         * key named devops-guru-rds and a key named
         * DevOps-Guru-RDS. Possible key/value pairs in your
         * application might be Devops-Guru-production-application/RDS or
         * Devops-Guru-production-application/containers.
         */
        var tags: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationResourceCollectionHealthResponse) : this() {
            this.account = x.account
            this.cloudFormation = x.cloudFormation
            this.nextToken = x.nextToken
            this.service = x.service
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.devopsguru.model.DescribeOrganizationResourceCollectionHealthResponse = DescribeOrganizationResourceCollectionHealthResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy