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

commonMain.aws.sdk.kotlin.services.iot.model.CreateBillingGroupRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model



public class CreateBillingGroupRequest private constructor(builder: Builder) {
    /**
     * The name you wish to give to the billing group.
     */
    public val billingGroupName: kotlin.String? = builder.billingGroupName
    /**
     * The properties of the billing group.
     */
    public val billingGroupProperties: aws.sdk.kotlin.services.iot.model.BillingGroupProperties? = builder.billingGroupProperties
    /**
     * Metadata which can be used to manage the billing group.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateBillingGroupRequest(")
        append("billingGroupName=$billingGroupName,")
        append("billingGroupProperties=$billingGroupProperties,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = billingGroupName?.hashCode() ?: 0
        result = 31 * result + (billingGroupProperties?.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 CreateBillingGroupRequest

        if (billingGroupName != other.billingGroupName) return false
        if (billingGroupProperties != other.billingGroupProperties) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The name you wish to give to the billing group.
         */
        public var billingGroupName: kotlin.String? = null
        /**
         * The properties of the billing group.
         */
        public var billingGroupProperties: aws.sdk.kotlin.services.iot.model.BillingGroupProperties? = null
        /**
         * Metadata which can be used to manage the billing group.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateBillingGroupRequest) : this() {
            this.billingGroupName = x.billingGroupName
            this.billingGroupProperties = x.billingGroupProperties
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.BillingGroupProperties] inside the given [block]
         */
        public fun billingGroupProperties(block: aws.sdk.kotlin.services.iot.model.BillingGroupProperties.Builder.() -> kotlin.Unit) {
            this.billingGroupProperties = aws.sdk.kotlin.services.iot.model.BillingGroupProperties.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy