commonMain.aws.sdk.kotlin.services.fms.model.PutNotificationChannelRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class PutNotificationChannelRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
*/
public val snsRoleName: kotlin.String? = builder.snsRoleName
/**
* The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
*/
public val snsTopicArn: kotlin.String? = builder.snsTopicArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.PutNotificationChannelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutNotificationChannelRequest(")
append("snsRoleName=$snsRoleName,")
append("snsTopicArn=$snsTopicArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = snsRoleName?.hashCode() ?: 0
result = 31 * result + (snsTopicArn?.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 PutNotificationChannelRequest
if (snsRoleName != other.snsRoleName) return false
if (snsTopicArn != other.snsTopicArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.PutNotificationChannelRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
*/
public var snsRoleName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
*/
public var snsTopicArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.PutNotificationChannelRequest) : this() {
this.snsRoleName = x.snsRoleName
this.snsTopicArn = x.snsTopicArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.PutNotificationChannelRequest = PutNotificationChannelRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy