
commonMain.aws.sdk.kotlin.services.iot.model.GetV2LoggingOptionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class GetV2LoggingOptionsResponse private constructor(builder: Builder) {
/**
* The default log level.
*/
public val defaultLogLevel: aws.sdk.kotlin.services.iot.model.LogLevel? = builder.defaultLogLevel
/**
* Disables all logs.
*/
public val disableAllLogs: kotlin.Boolean = builder.disableAllLogs
/**
* The IAM role ARN IoT uses to write to your 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.GetV2LoggingOptionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetV2LoggingOptionsResponse(")
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())
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 GetV2LoggingOptionsResponse
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.GetV2LoggingOptionsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The default log level.
*/
public var defaultLogLevel: aws.sdk.kotlin.services.iot.model.LogLevel? = null
/**
* Disables all logs.
*/
public var disableAllLogs: kotlin.Boolean = false
/**
* The IAM role ARN IoT uses to write to your CloudWatch logs.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.GetV2LoggingOptionsResponse) : this() {
this.defaultLogLevel = x.defaultLogLevel
this.disableAllLogs = x.disableAllLogs
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.GetV2LoggingOptionsResponse = GetV2LoggingOptionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy