
commonMain.aws.sdk.kotlin.services.iot.model.AddThingToBillingGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class AddThingToBillingGroupRequest private constructor(builder: Builder) {
/**
* The ARN of the billing group.
*/
public val billingGroupArn: kotlin.String? = builder.billingGroupArn
/**
* The name of the billing group.
*
* This call is asynchronous. It might take several seconds for the detachment to propagate.
*/
public val billingGroupName: kotlin.String? = builder.billingGroupName
/**
* The ARN of the thing to be added to the billing group.
*/
public val thingArn: kotlin.String? = builder.thingArn
/**
* The name of the thing to be added to the billing group.
*/
public val thingName: kotlin.String? = builder.thingName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.AddThingToBillingGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AddThingToBillingGroupRequest(")
append("billingGroupArn=$billingGroupArn,")
append("billingGroupName=$billingGroupName,")
append("thingArn=$thingArn,")
append("thingName=$thingName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = billingGroupArn?.hashCode() ?: 0
result = 31 * result + (billingGroupName?.hashCode() ?: 0)
result = 31 * result + (thingArn?.hashCode() ?: 0)
result = 31 * result + (thingName?.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 AddThingToBillingGroupRequest
if (billingGroupArn != other.billingGroupArn) return false
if (billingGroupName != other.billingGroupName) return false
if (thingArn != other.thingArn) return false
if (thingName != other.thingName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.AddThingToBillingGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the billing group.
*/
public var billingGroupArn: kotlin.String? = null
/**
* The name of the billing group.
*
* This call is asynchronous. It might take several seconds for the detachment to propagate.
*/
public var billingGroupName: kotlin.String? = null
/**
* The ARN of the thing to be added to the billing group.
*/
public var thingArn: kotlin.String? = null
/**
* The name of the thing to be added to the billing group.
*/
public var thingName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AddThingToBillingGroupRequest) : this() {
this.billingGroupArn = x.billingGroupArn
this.billingGroupName = x.billingGroupName
this.thingArn = x.thingArn
this.thingName = x.thingName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.AddThingToBillingGroupRequest = AddThingToBillingGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy