commonMain.aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionProperty.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
/**
* Contains information about why a property is not valid.
*/
public class PropertyValidationExceptionProperty private constructor(builder: Builder) {
/**
* A message describing why the property is not valid.
*/
public val message: kotlin.String? = builder.message
/**
* The full property path.
*/
public val propertyPath: kotlin.String? = builder.propertyPath
/**
* Why the property is not valid.
*/
public val reason: aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionReason? = builder.reason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionProperty = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PropertyValidationExceptionProperty(")
append("message=$message,")
append("propertyPath=$propertyPath,")
append("reason=$reason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (propertyPath?.hashCode() ?: 0)
result = 31 * result + (reason?.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 PropertyValidationExceptionProperty
if (message != other.message) return false
if (propertyPath != other.propertyPath) return false
if (reason != other.reason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionProperty = Builder(this).apply(block).build()
public class Builder {
/**
* A message describing why the property is not valid.
*/
public var message: kotlin.String? = null
/**
* The full property path.
*/
public var propertyPath: kotlin.String? = null
/**
* Why the property is not valid.
*/
public var reason: aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionReason? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionProperty) : this() {
this.message = x.message
this.propertyPath = x.propertyPath
this.reason = x.reason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.PropertyValidationExceptionProperty = PropertyValidationExceptionProperty(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy