commonMain.aws.sdk.kotlin.services.glue.model.UpdateDevEndpointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateDevEndpointRequest private constructor(builder: Builder) {
/**
* The map of arguments to add the map of arguments used to configure the `DevEndpoint`.
*
* Valid arguments are:
* + `"--enable-glue-datacatalog": ""`
*
* You can specify a version of Python support for development endpoints by using the `Arguments` parameter in the `CreateDevEndpoint` or `UpdateDevEndpoint` APIs. If no arguments are provided, the version defaults to Python 2.
*/
public val addArguments: Map? = builder.addArguments
/**
* The list of public keys for the `DevEndpoint` to use.
*/
public val addPublicKeys: List? = builder.addPublicKeys
/**
* Custom Python or Java libraries to be loaded in the `DevEndpoint`.
*/
public val customLibraries: aws.sdk.kotlin.services.glue.model.DevEndpointCustomLibraries? = builder.customLibraries
/**
* The list of argument keys to be deleted from the map of arguments used to configure the `DevEndpoint`.
*/
public val deleteArguments: List? = builder.deleteArguments
/**
* The list of public keys to be deleted from the `DevEndpoint`.
*/
public val deletePublicKeys: List? = builder.deletePublicKeys
/**
* The name of the `DevEndpoint` to be updated.
*/
public val endpointName: kotlin.String? = builder.endpointName
/**
* The public key for the `DevEndpoint` to use.
*/
public val publicKey: kotlin.String? = builder.publicKey
/**
* `True` if the list of custom libraries to be loaded in the development endpoint needs to be updated, or `False` if otherwise.
*/
public val updateEtlLibraries: kotlin.Boolean? = builder.updateEtlLibraries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UpdateDevEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDevEndpointRequest(")
append("addArguments=$addArguments,")
append("addPublicKeys=$addPublicKeys,")
append("customLibraries=$customLibraries,")
append("deleteArguments=$deleteArguments,")
append("deletePublicKeys=$deletePublicKeys,")
append("endpointName=$endpointName,")
append("publicKey=$publicKey,")
append("updateEtlLibraries=$updateEtlLibraries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addArguments?.hashCode() ?: 0
result = 31 * result + (addPublicKeys?.hashCode() ?: 0)
result = 31 * result + (customLibraries?.hashCode() ?: 0)
result = 31 * result + (deleteArguments?.hashCode() ?: 0)
result = 31 * result + (deletePublicKeys?.hashCode() ?: 0)
result = 31 * result + (endpointName?.hashCode() ?: 0)
result = 31 * result + (publicKey?.hashCode() ?: 0)
result = 31 * result + (updateEtlLibraries?.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 UpdateDevEndpointRequest
if (addArguments != other.addArguments) return false
if (addPublicKeys != other.addPublicKeys) return false
if (customLibraries != other.customLibraries) return false
if (deleteArguments != other.deleteArguments) return false
if (deletePublicKeys != other.deletePublicKeys) return false
if (endpointName != other.endpointName) return false
if (publicKey != other.publicKey) return false
if (updateEtlLibraries != other.updateEtlLibraries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UpdateDevEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The map of arguments to add the map of arguments used to configure the `DevEndpoint`.
*
* Valid arguments are:
* + `"--enable-glue-datacatalog": ""`
*
* You can specify a version of Python support for development endpoints by using the `Arguments` parameter in the `CreateDevEndpoint` or `UpdateDevEndpoint` APIs. If no arguments are provided, the version defaults to Python 2.
*/
public var addArguments: Map? = null
/**
* The list of public keys for the `DevEndpoint` to use.
*/
public var addPublicKeys: List? = null
/**
* Custom Python or Java libraries to be loaded in the `DevEndpoint`.
*/
public var customLibraries: aws.sdk.kotlin.services.glue.model.DevEndpointCustomLibraries? = null
/**
* The list of argument keys to be deleted from the map of arguments used to configure the `DevEndpoint`.
*/
public var deleteArguments: List? = null
/**
* The list of public keys to be deleted from the `DevEndpoint`.
*/
public var deletePublicKeys: List? = null
/**
* The name of the `DevEndpoint` to be updated.
*/
public var endpointName: kotlin.String? = null
/**
* The public key for the `DevEndpoint` to use.
*/
public var publicKey: kotlin.String? = null
/**
* `True` if the list of custom libraries to be loaded in the development endpoint needs to be updated, or `False` if otherwise.
*/
public var updateEtlLibraries: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.UpdateDevEndpointRequest) : this() {
this.addArguments = x.addArguments
this.addPublicKeys = x.addPublicKeys
this.customLibraries = x.customLibraries
this.deleteArguments = x.deleteArguments
this.deletePublicKeys = x.deletePublicKeys
this.endpointName = x.endpointName
this.publicKey = x.publicKey
this.updateEtlLibraries = x.updateEtlLibraries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.UpdateDevEndpointRequest = UpdateDevEndpointRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DevEndpointCustomLibraries] inside the given [block]
*/
public fun customLibraries(block: aws.sdk.kotlin.services.glue.model.DevEndpointCustomLibraries.Builder.() -> kotlin.Unit) {
this.customLibraries = aws.sdk.kotlin.services.glue.model.DevEndpointCustomLibraries.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}