
commonMain.aws.sdk.kotlin.services.iot.model.SetV2LoggingOptionsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class SetV2LoggingOptionsRequest private constructor(builder: Builder) {
/**
* The default logging level.
*/
public val defaultLogLevel: aws.sdk.kotlin.services.iot.model.LogLevel? = builder.defaultLogLevel
/**
* If true all logs are disabled. The default is false.
*/
public val disableAllLogs: kotlin.Boolean? = builder.disableAllLogs
/**
* The ARN of the role that allows IoT to write to Cloudwatch logs.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.SetV2LoggingOptionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetV2LoggingOptionsRequest(")
append("defaultLogLevel=$defaultLogLevel,")
append("disableAllLogs=$disableAllLogs,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultLogLevel?.hashCode() ?: 0
result = 31 * result + (disableAllLogs?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 SetV2LoggingOptionsRequest
if (defaultLogLevel != other.defaultLogLevel) return false
if (disableAllLogs != other.disableAllLogs) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.SetV2LoggingOptionsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The default logging level.
*/
public var defaultLogLevel: aws.sdk.kotlin.services.iot.model.LogLevel? = null
/**
* If true all logs are disabled. The default is false.
*/
public var disableAllLogs: kotlin.Boolean? = null
/**
* The ARN of the role that allows IoT to write to Cloudwatch logs.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.SetV2LoggingOptionsRequest) : this() {
this.defaultLogLevel = x.defaultLogLevel
this.disableAllLogs = x.disableAllLogs
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.SetV2LoggingOptionsRequest = SetV2LoggingOptionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy