commonMain.aws.sdk.kotlin.services.glue.model.UpdateClassifierRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateClassifierRequest private constructor(builder: Builder) {
/**
* A `CsvClassifier` object with updated fields.
*/
public val csvClassifier: aws.sdk.kotlin.services.glue.model.UpdateCsvClassifierRequest? = builder.csvClassifier
/**
* A `GrokClassifier` object with updated fields.
*/
public val grokClassifier: aws.sdk.kotlin.services.glue.model.UpdateGrokClassifierRequest? = builder.grokClassifier
/**
* A `JsonClassifier` object with updated fields.
*/
public val jsonClassifier: aws.sdk.kotlin.services.glue.model.UpdateJsonClassifierRequest? = builder.jsonClassifier
/**
* An `XMLClassifier` object with updated fields.
*/
public val xmlClassifier: aws.sdk.kotlin.services.glue.model.UpdateXmlClassifierRequest? = builder.xmlClassifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UpdateClassifierRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateClassifierRequest(")
append("csvClassifier=$csvClassifier,")
append("grokClassifier=$grokClassifier,")
append("jsonClassifier=$jsonClassifier,")
append("xmlClassifier=$xmlClassifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = csvClassifier?.hashCode() ?: 0
result = 31 * result + (grokClassifier?.hashCode() ?: 0)
result = 31 * result + (jsonClassifier?.hashCode() ?: 0)
result = 31 * result + (xmlClassifier?.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 UpdateClassifierRequest
if (csvClassifier != other.csvClassifier) return false
if (grokClassifier != other.grokClassifier) return false
if (jsonClassifier != other.jsonClassifier) return false
if (xmlClassifier != other.xmlClassifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UpdateClassifierRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `CsvClassifier` object with updated fields.
*/
public var csvClassifier: aws.sdk.kotlin.services.glue.model.UpdateCsvClassifierRequest? = null
/**
* A `GrokClassifier` object with updated fields.
*/
public var grokClassifier: aws.sdk.kotlin.services.glue.model.UpdateGrokClassifierRequest? = null
/**
* A `JsonClassifier` object with updated fields.
*/
public var jsonClassifier: aws.sdk.kotlin.services.glue.model.UpdateJsonClassifierRequest? = null
/**
* An `XMLClassifier` object with updated fields.
*/
public var xmlClassifier: aws.sdk.kotlin.services.glue.model.UpdateXmlClassifierRequest? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.UpdateClassifierRequest) : this() {
this.csvClassifier = x.csvClassifier
this.grokClassifier = x.grokClassifier
this.jsonClassifier = x.jsonClassifier
this.xmlClassifier = x.xmlClassifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.UpdateClassifierRequest = UpdateClassifierRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.UpdateCsvClassifierRequest] inside the given [block]
*/
public fun csvClassifier(block: aws.sdk.kotlin.services.glue.model.UpdateCsvClassifierRequest.Builder.() -> kotlin.Unit) {
this.csvClassifier = aws.sdk.kotlin.services.glue.model.UpdateCsvClassifierRequest.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.UpdateGrokClassifierRequest] inside the given [block]
*/
public fun grokClassifier(block: aws.sdk.kotlin.services.glue.model.UpdateGrokClassifierRequest.Builder.() -> kotlin.Unit) {
this.grokClassifier = aws.sdk.kotlin.services.glue.model.UpdateGrokClassifierRequest.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.UpdateJsonClassifierRequest] inside the given [block]
*/
public fun jsonClassifier(block: aws.sdk.kotlin.services.glue.model.UpdateJsonClassifierRequest.Builder.() -> kotlin.Unit) {
this.jsonClassifier = aws.sdk.kotlin.services.glue.model.UpdateJsonClassifierRequest.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.UpdateXmlClassifierRequest] inside the given [block]
*/
public fun xmlClassifier(block: aws.sdk.kotlin.services.glue.model.UpdateXmlClassifierRequest.Builder.() -> kotlin.Unit) {
this.xmlClassifier = aws.sdk.kotlin.services.glue.model.UpdateXmlClassifierRequest.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}