
commonMain.aws.sdk.kotlin.services.iot.model.AuditNotificationTarget.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Information about the targets to which audit notifications are sent.
*/
public class AuditNotificationTarget private constructor(builder: Builder) {
/**
* True if notifications to the target are enabled.
*/
public val enabled: kotlin.Boolean = builder.enabled
/**
* The ARN of the role that grants permission to send notifications to the target.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The ARN of the target (SNS topic) to which audit notifications are sent.
*/
public val targetArn: kotlin.String? = builder.targetArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.AuditNotificationTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuditNotificationTarget(")
append("enabled=$enabled,")
append("roleArn=$roleArn,")
append("targetArn=$targetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled.hashCode()
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (targetArn?.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 AuditNotificationTarget
if (enabled != other.enabled) return false
if (roleArn != other.roleArn) return false
if (targetArn != other.targetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.AuditNotificationTarget = Builder(this).apply(block).build()
public class Builder {
/**
* True if notifications to the target are enabled.
*/
public var enabled: kotlin.Boolean = false
/**
* The ARN of the role that grants permission to send notifications to the target.
*/
public var roleArn: kotlin.String? = null
/**
* The ARN of the target (SNS topic) to which audit notifications are sent.
*/
public var targetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AuditNotificationTarget) : this() {
this.enabled = x.enabled
this.roleArn = x.roleArn
this.targetArn = x.targetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.AuditNotificationTarget = AuditNotificationTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy