
commonMain.aws.sdk.kotlin.services.iot.model.CreateBillingGroupResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreateBillingGroupResponse 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
/**
* The name you gave to the billing group.
*/
public val billingGroupName: kotlin.String? = builder.billingGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateBillingGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateBillingGroupResponse(")
append("billingGroupArn=$billingGroupArn,")
append("billingGroupId=$billingGroupId,")
append("billingGroupName=$billingGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = billingGroupArn?.hashCode() ?: 0
result = 31 * result + (billingGroupId?.hashCode() ?: 0)
result = 31 * result + (billingGroupName?.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 CreateBillingGroupResponse
if (billingGroupArn != other.billingGroupArn) return false
if (billingGroupId != other.billingGroupId) return false
if (billingGroupName != other.billingGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreateBillingGroupResponse = 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
/**
* The name you gave to the billing group.
*/
public var billingGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateBillingGroupResponse) : this() {
this.billingGroupArn = x.billingGroupArn
this.billingGroupId = x.billingGroupId
this.billingGroupName = x.billingGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateBillingGroupResponse = CreateBillingGroupResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy