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

commonMain.aws.sdk.kotlin.services.resourcegroups.model.GroupIdentifier.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.resourcegroups.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The unique identifiers for a resource group.
 */
public class GroupIdentifier private constructor(builder: Builder) {
    /**
     * The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.
     */
    public val criticality: kotlin.Int? = builder.criticality
    /**
     * The description of the application group.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the application group, which you can change at any time.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The Amazon resource name (ARN) of the resource group.
     */
    public val groupArn: kotlin.String? = builder.groupArn
    /**
     * The name of the resource group.
     */
    public val groupName: kotlin.String? = builder.groupName
    /**
     * A name, email address or other identifier for the person or group who is considered as the owner of this group within your organization.
     */
    public val owner: kotlin.String? = builder.owner

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

    override fun toString(): kotlin.String = buildString {
        append("GroupIdentifier(")
        append("criticality=$criticality,")
        append("description=$description,")
        append("displayName=$displayName,")
        append("groupArn=$groupArn,")
        append("groupName=$groupName,")
        append("owner=$owner")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = criticality ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (groupArn?.hashCode() ?: 0)
        result = 31 * result + (groupName?.hashCode() ?: 0)
        result = 31 * result + (owner?.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 GroupIdentifier

        if (criticality != other.criticality) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (groupArn != other.groupArn) return false
        if (groupName != other.groupName) return false
        if (owner != other.owner) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.
         */
        public var criticality: kotlin.Int? = null
        /**
         * The description of the application group.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the application group, which you can change at any time.
         */
        public var displayName: kotlin.String? = null
        /**
         * The Amazon resource name (ARN) of the resource group.
         */
        public var groupArn: kotlin.String? = null
        /**
         * The name of the resource group.
         */
        public var groupName: kotlin.String? = null
        /**
         * A name, email address or other identifier for the person or group who is considered as the owner of this group within your organization.
         */
        public var owner: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.GroupIdentifier) : this() {
            this.criticality = x.criticality
            this.description = x.description
            this.displayName = x.displayName
            this.groupArn = x.groupArn
            this.groupName = x.groupName
            this.owner = x.owner
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.GroupIdentifier = GroupIdentifier(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy