commonMain.aws.sdk.kotlin.services.iot.model.SetLoggingOptionsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot Show documentation
Show all versions of iot Show documentation
The AWS SDK for Kotlin client for IoT
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The input for the SetLoggingOptions operation.
*/
public class SetLoggingOptionsRequest private constructor(builder: Builder) {
/**
* The logging options payload.
*/
public val loggingOptionsPayload: aws.sdk.kotlin.services.iot.model.LoggingOptionsPayload? = builder.loggingOptionsPayload
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.SetLoggingOptionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetLoggingOptionsRequest(")
append("loggingOptionsPayload=$loggingOptionsPayload")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = loggingOptionsPayload?.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 SetLoggingOptionsRequest
if (loggingOptionsPayload != other.loggingOptionsPayload) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.SetLoggingOptionsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The logging options payload.
*/
public var loggingOptionsPayload: aws.sdk.kotlin.services.iot.model.LoggingOptionsPayload? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.SetLoggingOptionsRequest) : this() {
this.loggingOptionsPayload = x.loggingOptionsPayload
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.SetLoggingOptionsRequest = SetLoggingOptionsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.LoggingOptionsPayload] inside the given [block]
*/
public fun loggingOptionsPayload(block: aws.sdk.kotlin.services.iot.model.LoggingOptionsPayload.Builder.() -> kotlin.Unit) {
this.loggingOptionsPayload = aws.sdk.kotlin.services.iot.model.LoggingOptionsPayload.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy