commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationFieldDisplayHints.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides help information on the registration field.
*/
public class RegistrationFieldDisplayHints private constructor(builder: Builder) {
/**
* The link to the document the display hint is associated with.
*/
public val documentationLink: kotlin.String? = builder.documentationLink
/**
* The title of the document the display hint is associated with.
*/
public val documentationTitle: kotlin.String? = builder.documentationTitle
/**
* Example text of what the value of a field should contain.
*/
public val exampleTextValue: kotlin.String? = builder.exampleTextValue
/**
* A full description of the display hint.
*/
public val longDescription: kotlin.String? = builder.longDescription
/**
* An array of SelectOptionDescription objects.
*/
public val selectOptionDescriptions: List? = builder.selectOptionDescriptions
/**
* A short description of the display hint.
*/
public val shortDescription: kotlin.String = requireNotNull(builder.shortDescription) { "A non-null value must be provided for shortDescription" }
/**
* The validation rules for the text field.
*/
public val textValidationDescription: kotlin.String? = builder.textValidationDescription
/**
* The title of the display hint.
*/
public val title: kotlin.String = requireNotNull(builder.title) { "A non-null value must be provided for title" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationFieldDisplayHints = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegistrationFieldDisplayHints(")
append("documentationLink=$documentationLink,")
append("documentationTitle=$documentationTitle,")
append("exampleTextValue=$exampleTextValue,")
append("longDescription=$longDescription,")
append("selectOptionDescriptions=$selectOptionDescriptions,")
append("shortDescription=$shortDescription,")
append("textValidationDescription=$textValidationDescription,")
append("title=$title")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentationLink?.hashCode() ?: 0
result = 31 * result + (documentationTitle?.hashCode() ?: 0)
result = 31 * result + (exampleTextValue?.hashCode() ?: 0)
result = 31 * result + (longDescription?.hashCode() ?: 0)
result = 31 * result + (selectOptionDescriptions?.hashCode() ?: 0)
result = 31 * result + (shortDescription.hashCode())
result = 31 * result + (textValidationDescription?.hashCode() ?: 0)
result = 31 * result + (title.hashCode())
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 RegistrationFieldDisplayHints
if (documentationLink != other.documentationLink) return false
if (documentationTitle != other.documentationTitle) return false
if (exampleTextValue != other.exampleTextValue) return false
if (longDescription != other.longDescription) return false
if (selectOptionDescriptions != other.selectOptionDescriptions) return false
if (shortDescription != other.shortDescription) return false
if (textValidationDescription != other.textValidationDescription) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationFieldDisplayHints = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The link to the document the display hint is associated with.
*/
public var documentationLink: kotlin.String? = null
/**
* The title of the document the display hint is associated with.
*/
public var documentationTitle: kotlin.String? = null
/**
* Example text of what the value of a field should contain.
*/
public var exampleTextValue: kotlin.String? = null
/**
* A full description of the display hint.
*/
public var longDescription: kotlin.String? = null
/**
* An array of SelectOptionDescription objects.
*/
public var selectOptionDescriptions: List? = null
/**
* A short description of the display hint.
*/
public var shortDescription: kotlin.String? = null
/**
* The validation rules for the text field.
*/
public var textValidationDescription: kotlin.String? = null
/**
* The title of the display hint.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationFieldDisplayHints) : this() {
this.documentationLink = x.documentationLink
this.documentationTitle = x.documentationTitle
this.exampleTextValue = x.exampleTextValue
this.longDescription = x.longDescription
this.selectOptionDescriptions = x.selectOptionDescriptions
this.shortDescription = x.shortDescription
this.textValidationDescription = x.textValidationDescription
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationFieldDisplayHints = RegistrationFieldDisplayHints(this)
internal fun correctErrors(): Builder {
if (shortDescription == null) shortDescription = ""
if (title == null) title = ""
return this
}
}
}