commonMain.aws.sdk.kotlin.services.configservice.model.DeliveryChannelStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The status of a specified delivery channel.
*
* Valid values: `Success` | `Failure`
*/
public class DeliveryChannelStatus private constructor(builder: Builder) {
/**
* A list that contains the status of the delivery of the configuration history to the specified Amazon S3 bucket.
*/
public val configHistoryDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo? = builder.configHistoryDeliveryInfo
/**
* A list containing the status of the delivery of the snapshot to the specified Amazon S3 bucket.
*/
public val configSnapshotDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo? = builder.configSnapshotDeliveryInfo
/**
* A list containing the status of the delivery of the configuration stream notification to the specified Amazon SNS topic.
*/
public val configStreamDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigStreamDeliveryInfo? = builder.configStreamDeliveryInfo
/**
* The name of the delivery channel.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.DeliveryChannelStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeliveryChannelStatus(")
append("configHistoryDeliveryInfo=$configHistoryDeliveryInfo,")
append("configSnapshotDeliveryInfo=$configSnapshotDeliveryInfo,")
append("configStreamDeliveryInfo=$configStreamDeliveryInfo,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configHistoryDeliveryInfo?.hashCode() ?: 0
result = 31 * result + (configSnapshotDeliveryInfo?.hashCode() ?: 0)
result = 31 * result + (configStreamDeliveryInfo?.hashCode() ?: 0)
result = 31 * result + (name?.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 DeliveryChannelStatus
if (configHistoryDeliveryInfo != other.configHistoryDeliveryInfo) return false
if (configSnapshotDeliveryInfo != other.configSnapshotDeliveryInfo) return false
if (configStreamDeliveryInfo != other.configStreamDeliveryInfo) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.DeliveryChannelStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list that contains the status of the delivery of the configuration history to the specified Amazon S3 bucket.
*/
public var configHistoryDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo? = null
/**
* A list containing the status of the delivery of the snapshot to the specified Amazon S3 bucket.
*/
public var configSnapshotDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo? = null
/**
* A list containing the status of the delivery of the configuration stream notification to the specified Amazon SNS topic.
*/
public var configStreamDeliveryInfo: aws.sdk.kotlin.services.configservice.model.ConfigStreamDeliveryInfo? = null
/**
* The name of the delivery channel.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.DeliveryChannelStatus) : this() {
this.configHistoryDeliveryInfo = x.configHistoryDeliveryInfo
this.configSnapshotDeliveryInfo = x.configSnapshotDeliveryInfo
this.configStreamDeliveryInfo = x.configStreamDeliveryInfo
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.DeliveryChannelStatus = DeliveryChannelStatus(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo] inside the given [block]
*/
public fun configHistoryDeliveryInfo(block: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo.Builder.() -> kotlin.Unit) {
this.configHistoryDeliveryInfo = aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo] inside the given [block]
*/
public fun configSnapshotDeliveryInfo(block: aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo.Builder.() -> kotlin.Unit) {
this.configSnapshotDeliveryInfo = aws.sdk.kotlin.services.configservice.model.ConfigExportDeliveryInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.configservice.model.ConfigStreamDeliveryInfo] inside the given [block]
*/
public fun configStreamDeliveryInfo(block: aws.sdk.kotlin.services.configservice.model.ConfigStreamDeliveryInfo.Builder.() -> kotlin.Unit) {
this.configStreamDeliveryInfo = aws.sdk.kotlin.services.configservice.model.ConfigStreamDeliveryInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}