
commonMain.aws.sdk.kotlin.services.mq.model.LogsSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mq.model
/**
* The list of information about logs currently enabled and pending to be deployed for the specified broker.
*/
public class LogsSummary private constructor(builder: Builder) {
/**
* Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
*/
public val audit: kotlin.Boolean? = builder.audit
/**
* The location of the CloudWatch Logs log group where audit logs are sent.
*/
public val auditLogGroup: kotlin.String? = builder.auditLogGroup
/**
* Enables general logging.
*/
public val general: kotlin.Boolean? = builder.general
/**
* The location of the CloudWatch Logs log group where general logs are sent.
*/
public val generalLogGroup: kotlin.String? = builder.generalLogGroup
/**
* The list of information about logs pending to be deployed for the specified broker.
*/
public val pending: aws.sdk.kotlin.services.mq.model.PendingLogs? = builder.pending
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mq.model.LogsSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LogsSummary(")
append("audit=$audit,")
append("auditLogGroup=$auditLogGroup,")
append("general=$general,")
append("generalLogGroup=$generalLogGroup,")
append("pending=$pending")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = audit?.hashCode() ?: 0
result = 31 * result + (auditLogGroup?.hashCode() ?: 0)
result = 31 * result + (general?.hashCode() ?: 0)
result = 31 * result + (generalLogGroup?.hashCode() ?: 0)
result = 31 * result + (pending?.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 LogsSummary
if (audit != other.audit) return false
if (auditLogGroup != other.auditLogGroup) return false
if (general != other.general) return false
if (generalLogGroup != other.generalLogGroup) return false
if (pending != other.pending) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mq.model.LogsSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
*/
public var audit: kotlin.Boolean? = null
/**
* The location of the CloudWatch Logs log group where audit logs are sent.
*/
public var auditLogGroup: kotlin.String? = null
/**
* Enables general logging.
*/
public var general: kotlin.Boolean? = null
/**
* The location of the CloudWatch Logs log group where general logs are sent.
*/
public var generalLogGroup: kotlin.String? = null
/**
* The list of information about logs pending to be deployed for the specified broker.
*/
public var pending: aws.sdk.kotlin.services.mq.model.PendingLogs? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mq.model.LogsSummary) : this() {
this.audit = x.audit
this.auditLogGroup = x.auditLogGroup
this.general = x.general
this.generalLogGroup = x.generalLogGroup
this.pending = x.pending
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mq.model.LogsSummary = LogsSummary(this)
/**
* construct an [aws.sdk.kotlin.services.mq.model.PendingLogs] inside the given [block]
*/
public fun pending(block: aws.sdk.kotlin.services.mq.model.PendingLogs.Builder.() -> kotlin.Unit) {
this.pending = aws.sdk.kotlin.services.mq.model.PendingLogs.invoke(block)
}
internal fun correctErrors(): Builder {
if (general == null) general = false
if (generalLogGroup == null) generalLogGroup = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy