commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateResourceEventConfigurationRequest.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 UpdateResourceEventConfigurationRequest private constructor(builder: Builder) {
/**
* Event configuration for the connection status event.
*/
public val connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration? = builder.connectionStatus
/**
* Event configuration for the device registration state event.
*/
public val deviceRegistrationState: aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration? = builder.deviceRegistrationState
/**
* Resource identifier to opt in for event messaging.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* Identifier type of the particular resource identifier for event configuration.
*/
public val identifierType: aws.sdk.kotlin.services.iotwireless.model.IdentifierType? = builder.identifierType
/**
* Event configuration for the join event.
*/
public val join: aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration? = builder.join
/**
* Event configuration for the message delivery status event.
*/
public val messageDeliveryStatus: aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration? = builder.messageDeliveryStatus
/**
* Partner type of the resource if the identifier type is `PartnerAccountId`
*/
public val partnerType: aws.sdk.kotlin.services.iotwireless.model.EventNotificationPartnerType? = builder.partnerType
/**
* Event configuration for the proximity event.
*/
public val proximity: aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration? = builder.proximity
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.UpdateResourceEventConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateResourceEventConfigurationRequest(")
append("connectionStatus=$connectionStatus,")
append("deviceRegistrationState=$deviceRegistrationState,")
append("identifier=$identifier,")
append("identifierType=$identifierType,")
append("join=$join,")
append("messageDeliveryStatus=$messageDeliveryStatus,")
append("partnerType=$partnerType,")
append("proximity=$proximity")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionStatus?.hashCode() ?: 0
result = 31 * result + (deviceRegistrationState?.hashCode() ?: 0)
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (identifierType?.hashCode() ?: 0)
result = 31 * result + (join?.hashCode() ?: 0)
result = 31 * result + (messageDeliveryStatus?.hashCode() ?: 0)
result = 31 * result + (partnerType?.hashCode() ?: 0)
result = 31 * result + (proximity?.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 UpdateResourceEventConfigurationRequest
if (connectionStatus != other.connectionStatus) return false
if (deviceRegistrationState != other.deviceRegistrationState) return false
if (identifier != other.identifier) return false
if (identifierType != other.identifierType) return false
if (join != other.join) return false
if (messageDeliveryStatus != other.messageDeliveryStatus) return false
if (partnerType != other.partnerType) return false
if (proximity != other.proximity) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.UpdateResourceEventConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Event configuration for the connection status event.
*/
public var connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration? = null
/**
* Event configuration for the device registration state event.
*/
public var deviceRegistrationState: aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration? = null
/**
* Resource identifier to opt in for event messaging.
*/
public var identifier: kotlin.String? = null
/**
* Identifier type of the particular resource identifier for event configuration.
*/
public var identifierType: aws.sdk.kotlin.services.iotwireless.model.IdentifierType? = null
/**
* Event configuration for the join event.
*/
public var join: aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration? = null
/**
* Event configuration for the message delivery status event.
*/
public var messageDeliveryStatus: aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration? = null
/**
* Partner type of the resource if the identifier type is `PartnerAccountId`
*/
public var partnerType: aws.sdk.kotlin.services.iotwireless.model.EventNotificationPartnerType? = null
/**
* Event configuration for the proximity event.
*/
public var proximity: aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateResourceEventConfigurationRequest) : this() {
this.connectionStatus = x.connectionStatus
this.deviceRegistrationState = x.deviceRegistrationState
this.identifier = x.identifier
this.identifierType = x.identifierType
this.join = x.join
this.messageDeliveryStatus = x.messageDeliveryStatus
this.partnerType = x.partnerType
this.proximity = x.proximity
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.UpdateResourceEventConfigurationRequest = UpdateResourceEventConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration] inside the given [block]
*/
public fun connectionStatus(block: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration.Builder.() -> kotlin.Unit) {
this.connectionStatus = aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration] inside the given [block]
*/
public fun deviceRegistrationState(block: aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration.Builder.() -> kotlin.Unit) {
this.deviceRegistrationState = aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration] inside the given [block]
*/
public fun join(block: aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration.Builder.() -> kotlin.Unit) {
this.join = aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration] inside the given [block]
*/
public fun messageDeliveryStatus(block: aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration.Builder.() -> kotlin.Unit) {
this.messageDeliveryStatus = aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration] inside the given [block]
*/
public fun proximity(block: aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration.Builder.() -> kotlin.Unit) {
this.proximity = aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy