commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateMulticastGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateMulticastGroupRequest private constructor(builder: Builder) {
/**
* The description of the new resource.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the multicast group.
*/
public val id: kotlin.String? = builder.id
/**
* The LoRaWAN information that is to be used with the multicast group.
*/
public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticast? = builder.loRaWan
/**
* The name of the multicast group.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.UpdateMulticastGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateMulticastGroupRequest(")
append("description=$description,")
append("id=$id,")
append("loRaWan=$loRaWan,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (loRaWan?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateMulticastGroupRequest
if (description != other.description) return false
if (id != other.id) return false
if (loRaWan != other.loRaWan) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.UpdateMulticastGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the new resource.
*/
public var description: kotlin.String? = null
/**
* The ID of the multicast group.
*/
public var id: kotlin.String? = null
/**
* The LoRaWAN information that is to be used with the multicast group.
*/
public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticast? = null
/**
* The name of the multicast group.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateMulticastGroupRequest) : this() {
this.description = x.description
this.id = x.id
this.loRaWan = x.loRaWan
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.UpdateMulticastGroupRequest = UpdateMulticastGroupRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticast] inside the given [block]
*/
public fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticast.Builder.() -> kotlin.Unit) {
this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticast.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy