commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionWarning.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A configuration ID paired with a warning message.
*/
public class DeletionWarning private constructor(builder: Builder) {
/**
* The unique identifier of the configuration that produced a warning.
*/
public val configurationId: kotlin.String? = builder.configurationId
/**
* The integer warning code associated with the warning message.
*/
public val warningCode: kotlin.Int = builder.warningCode
/**
* A descriptive message of the warning the associated configuration ID produced.
*/
public val warningText: kotlin.String? = builder.warningText
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionWarning = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeletionWarning(")
append("configurationId=$configurationId,")
append("warningCode=$warningCode,")
append("warningText=$warningText")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationId?.hashCode() ?: 0
result = 31 * result + (warningCode)
result = 31 * result + (warningText?.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 DeletionWarning
if (configurationId != other.configurationId) return false
if (warningCode != other.warningCode) return false
if (warningText != other.warningText) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionWarning = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the configuration that produced a warning.
*/
public var configurationId: kotlin.String? = null
/**
* The integer warning code associated with the warning message.
*/
public var warningCode: kotlin.Int = 0
/**
* A descriptive message of the warning the associated configuration ID produced.
*/
public var warningText: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionWarning) : this() {
this.configurationId = x.configurationId
this.warningCode = x.warningCode
this.warningText = x.warningText
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionWarning = DeletionWarning(this)
internal fun correctErrors(): Builder {
return this
}
}
}