
commonMain.aws.sdk.kotlin.services.schemas.model.CreateSchemaRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schemas-jvm Show documentation
Show all versions of schemas-jvm Show documentation
The AWS SDK for Kotlin client for schemas
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.schemas.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateSchemaRequest private constructor(builder: Builder) {
/**
* The source of the schema definition.
*/
public val content: kotlin.String? = builder.content
/**
* A description of the schema.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the registry.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The name of the schema.
*/
public val schemaName: kotlin.String? = builder.schemaName
/**
* Tags associated with the schema.
*/
public val tags: Map? = builder.tags
/**
* The type of schema.
*/
public val type: aws.sdk.kotlin.services.schemas.model.Type? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.schemas.model.CreateSchemaRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSchemaRequest(")
append("content=$content,")
append("description=$description,")
append("registryName=$registryName,")
append("schemaName=$schemaName,")
append("tags=$tags,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (registryName?.hashCode() ?: 0)
result = 31 * result + (schemaName?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type?.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 CreateSchemaRequest
if (content != other.content) return false
if (description != other.description) return false
if (registryName != other.registryName) return false
if (schemaName != other.schemaName) return false
if (tags != other.tags) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.schemas.model.CreateSchemaRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The source of the schema definition.
*/
public var content: kotlin.String? = null
/**
* A description of the schema.
*/
public var description: kotlin.String? = null
/**
* The name of the registry.
*/
public var registryName: kotlin.String? = null
/**
* The name of the schema.
*/
public var schemaName: kotlin.String? = null
/**
* Tags associated with the schema.
*/
public var tags: Map? = null
/**
* The type of schema.
*/
public var type: aws.sdk.kotlin.services.schemas.model.Type? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.schemas.model.CreateSchemaRequest) : this() {
this.content = x.content
this.description = x.description
this.registryName = x.registryName
this.schemaName = x.schemaName
this.tags = x.tags
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.schemas.model.CreateSchemaRequest = CreateSchemaRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy