commonMain.aws.sdk.kotlin.services.appconfig.model.InvalidConfigurationDetail.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Detailed information about the bad request exception error when creating a hosted configuration version.
*/
public class InvalidConfigurationDetail private constructor(builder: Builder) {
/**
* The invalid or out-of-range validation constraint in your JSON schema that failed validation.
*/
public val constraint: kotlin.String? = builder.constraint
/**
* Location of the validation constraint in the configuration JSON schema that failed validation.
*/
public val location: kotlin.String? = builder.location
/**
* The reason for an invalid configuration error.
*/
public val reason: kotlin.String? = builder.reason
/**
* The type of error for an invalid configuration.
*/
public val type: kotlin.String? = builder.type
/**
* Details about an error with Lambda when a synchronous extension experiences an error during an invocation.
*/
public val value: kotlin.String? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.InvalidConfigurationDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InvalidConfigurationDetail(")
append("constraint=$constraint,")
append("location=$location,")
append("reason=$reason,")
append("type=$type,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = constraint?.hashCode() ?: 0
result = 31 * result + (location?.hashCode() ?: 0)
result = 31 * result + (reason?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (value?.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 InvalidConfigurationDetail
if (constraint != other.constraint) return false
if (location != other.location) return false
if (reason != other.reason) return false
if (type != other.type) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.InvalidConfigurationDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The invalid or out-of-range validation constraint in your JSON schema that failed validation.
*/
public var constraint: kotlin.String? = null
/**
* Location of the validation constraint in the configuration JSON schema that failed validation.
*/
public var location: kotlin.String? = null
/**
* The reason for an invalid configuration error.
*/
public var reason: kotlin.String? = null
/**
* The type of error for an invalid configuration.
*/
public var type: kotlin.String? = null
/**
* Details about an error with Lambda when a synchronous extension experiences an error during an invocation.
*/
public var value: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.InvalidConfigurationDetail) : this() {
this.constraint = x.constraint
this.location = x.location
this.reason = x.reason
this.type = x.type
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.InvalidConfigurationDetail = InvalidConfigurationDetail(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy