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

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

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

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



public class DescribeBillingGroupResponse private constructor(builder: Builder) {
    /**
     * The ARN of the billing group.
     */
    public val billingGroupArn: kotlin.String? = builder.billingGroupArn
    /**
     * The ID of the billing group.
     */
    public val billingGroupId: kotlin.String? = builder.billingGroupId
    /**
     * Additional information about the billing group.
     */
    public val billingGroupMetadata: aws.sdk.kotlin.services.iot.model.BillingGroupMetadata? = builder.billingGroupMetadata
    /**
     * The name of 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
    /**
     * The version of the billing group.
     */
    public val version: kotlin.Long = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeBillingGroupResponse(")
        append("billingGroupArn=$billingGroupArn,")
        append("billingGroupId=$billingGroupId,")
        append("billingGroupMetadata=$billingGroupMetadata,")
        append("billingGroupName=$billingGroupName,")
        append("billingGroupProperties=$billingGroupProperties,")
        append("version=$version")
        append(")")
    }

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

        if (billingGroupArn != other.billingGroupArn) return false
        if (billingGroupId != other.billingGroupId) return false
        if (billingGroupMetadata != other.billingGroupMetadata) return false
        if (billingGroupName != other.billingGroupName) return false
        if (billingGroupProperties != other.billingGroupProperties) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the billing group.
         */
        public var billingGroupArn: kotlin.String? = null
        /**
         * The ID of the billing group.
         */
        public var billingGroupId: kotlin.String? = null
        /**
         * Additional information about the billing group.
         */
        public var billingGroupMetadata: aws.sdk.kotlin.services.iot.model.BillingGroupMetadata? = null
        /**
         * The name of 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
        /**
         * The version of the billing group.
         */
        public var version: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeBillingGroupResponse) : this() {
            this.billingGroupArn = x.billingGroupArn
            this.billingGroupId = x.billingGroupId
            this.billingGroupMetadata = x.billingGroupMetadata
            this.billingGroupName = x.billingGroupName
            this.billingGroupProperties = x.billingGroupProperties
            this.version = x.version
        }

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

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

        /**
         * 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