commonMain.aws.sdk.kotlin.services.codedeploy.model.TriggerConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about notification triggers for the deployment group.
*/
public class TriggerConfig private constructor(builder: Builder) {
/**
* The event type or types for which notifications are triggered.
*/
public val triggerEvents: List? = builder.triggerEvents
/**
* The name of the notification trigger.
*/
public val triggerName: kotlin.String? = builder.triggerName
/**
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
*/
public val triggerTargetArn: kotlin.String? = builder.triggerTargetArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.TriggerConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TriggerConfig(")
append("triggerEvents=$triggerEvents,")
append("triggerName=$triggerName,")
append("triggerTargetArn=$triggerTargetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = triggerEvents?.hashCode() ?: 0
result = 31 * result + (triggerName?.hashCode() ?: 0)
result = 31 * result + (triggerTargetArn?.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 TriggerConfig
if (triggerEvents != other.triggerEvents) return false
if (triggerName != other.triggerName) return false
if (triggerTargetArn != other.triggerTargetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.TriggerConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The event type or types for which notifications are triggered.
*/
public var triggerEvents: List? = null
/**
* The name of the notification trigger.
*/
public var triggerName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.
*/
public var triggerTargetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.TriggerConfig) : this() {
this.triggerEvents = x.triggerEvents
this.triggerName = x.triggerName
this.triggerTargetArn = x.triggerTargetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.TriggerConfig = TriggerConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}