commonMain.aws.sdk.kotlin.services.glue.model.Capabilities.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the supported authentication types returned by the `DescribeConnectionType` API.
*/
public class Capabilities private constructor(builder: Builder) {
/**
* A list of supported authentication types.
*/
public val supportedAuthenticationTypes: List = requireNotNull(builder.supportedAuthenticationTypes) { "A non-null value must be provided for supportedAuthenticationTypes" }
/**
* A list of supported compute environments.
*/
public val supportedComputeEnvironments: List = requireNotNull(builder.supportedComputeEnvironments) { "A non-null value must be provided for supportedComputeEnvironments" }
/**
* A list of supported data operations.
*/
public val supportedDataOperations: List = requireNotNull(builder.supportedDataOperations) { "A non-null value must be provided for supportedDataOperations" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.Capabilities = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Capabilities(")
append("supportedAuthenticationTypes=$supportedAuthenticationTypes,")
append("supportedComputeEnvironments=$supportedComputeEnvironments,")
append("supportedDataOperations=$supportedDataOperations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = supportedAuthenticationTypes.hashCode()
result = 31 * result + (supportedComputeEnvironments.hashCode())
result = 31 * result + (supportedDataOperations.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 Capabilities
if (supportedAuthenticationTypes != other.supportedAuthenticationTypes) return false
if (supportedComputeEnvironments != other.supportedComputeEnvironments) return false
if (supportedDataOperations != other.supportedDataOperations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.Capabilities = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of supported authentication types.
*/
public var supportedAuthenticationTypes: List? = null
/**
* A list of supported compute environments.
*/
public var supportedComputeEnvironments: List? = null
/**
* A list of supported data operations.
*/
public var supportedDataOperations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.Capabilities) : this() {
this.supportedAuthenticationTypes = x.supportedAuthenticationTypes
this.supportedComputeEnvironments = x.supportedComputeEnvironments
this.supportedDataOperations = x.supportedDataOperations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.Capabilities = Capabilities(this)
internal fun correctErrors(): Builder {
if (supportedAuthenticationTypes == null) supportedAuthenticationTypes = emptyList()
if (supportedComputeEnvironments == null) supportedComputeEnvironments = emptyList()
if (supportedDataOperations == null) supportedDataOperations = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy