commonMain.aws.sdk.kotlin.services.glue.model.ComputeEnvironmentConfiguration.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
/**
* An object containing configuration for a compute environment (such as Spark, Python or Athena) returned by the `DescribeConnectionType` API.
*/
public class ComputeEnvironmentConfiguration private constructor(builder: Builder) {
/**
* The type of compute environment.
*/
public val computeEnvironment: aws.sdk.kotlin.services.glue.model.ComputeEnvironment = requireNotNull(builder.computeEnvironment) { "A non-null value must be provided for computeEnvironment" }
/**
* The connection option name overrides for the compute environment.
*/
public val connectionOptionNameOverrides: Map = requireNotNull(builder.connectionOptionNameOverrides) { "A non-null value must be provided for connectionOptionNameOverrides" }
/**
* The parameters used as connection options for the compute environment.
*/
public val connectionOptions: Map = requireNotNull(builder.connectionOptions) { "A non-null value must be provided for connectionOptions" }
/**
* The connection properties that are required as overrides for the compute environment.
*/
public val connectionPropertiesRequiredOverrides: List = builder.connectionPropertiesRequiredOverrides
/**
* The connection property name overrides for the compute environment.
*/
public val connectionPropertyNameOverrides: Map = requireNotNull(builder.connectionPropertyNameOverrides) { "A non-null value must be provided for connectionPropertyNameOverrides" }
/**
* A description of the compute environment.
*/
public val description: kotlin.String = requireNotNull(builder.description) { "A non-null value must be provided for description" }
/**
* A name for the compute environment configuration.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* Indicates whether `PhysicalConnectionProperties` are required for the compute environment.
*/
public val physicalConnectionPropertiesRequired: kotlin.Boolean? = builder.physicalConnectionPropertiesRequired
/**
* The supported authentication types for the compute environment.
*/
public val supportedAuthenticationTypes: List = requireNotNull(builder.supportedAuthenticationTypes) { "A non-null value must be provided for supportedAuthenticationTypes" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ComputeEnvironmentConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComputeEnvironmentConfiguration(")
append("computeEnvironment=$computeEnvironment,")
append("connectionOptionNameOverrides=$connectionOptionNameOverrides,")
append("connectionOptions=$connectionOptions,")
append("connectionPropertiesRequiredOverrides=$connectionPropertiesRequiredOverrides,")
append("connectionPropertyNameOverrides=$connectionPropertyNameOverrides,")
append("description=$description,")
append("name=$name,")
append("physicalConnectionPropertiesRequired=$physicalConnectionPropertiesRequired,")
append("supportedAuthenticationTypes=$supportedAuthenticationTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = computeEnvironment.hashCode()
result = 31 * result + (connectionOptionNameOverrides.hashCode())
result = 31 * result + (connectionOptions.hashCode())
result = 31 * result + (connectionPropertiesRequiredOverrides.hashCode())
result = 31 * result + (connectionPropertyNameOverrides.hashCode())
result = 31 * result + (description.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (physicalConnectionPropertiesRequired?.hashCode() ?: 0)
result = 31 * result + (supportedAuthenticationTypes.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 ComputeEnvironmentConfiguration
if (computeEnvironment != other.computeEnvironment) return false
if (connectionOptionNameOverrides != other.connectionOptionNameOverrides) return false
if (connectionOptions != other.connectionOptions) return false
if (connectionPropertiesRequiredOverrides != other.connectionPropertiesRequiredOverrides) return false
if (connectionPropertyNameOverrides != other.connectionPropertyNameOverrides) return false
if (description != other.description) return false
if (name != other.name) return false
if (physicalConnectionPropertiesRequired != other.physicalConnectionPropertiesRequired) return false
if (supportedAuthenticationTypes != other.supportedAuthenticationTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ComputeEnvironmentConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of compute environment.
*/
public var computeEnvironment: aws.sdk.kotlin.services.glue.model.ComputeEnvironment? = null
/**
* The connection option name overrides for the compute environment.
*/
public var connectionOptionNameOverrides: Map? = null
/**
* The parameters used as connection options for the compute environment.
*/
public var connectionOptions: Map? = null
/**
* The connection properties that are required as overrides for the compute environment.
*/
public var connectionPropertiesRequiredOverrides: List = listOf()
/**
* The connection property name overrides for the compute environment.
*/
public var connectionPropertyNameOverrides: Map? = null
/**
* A description of the compute environment.
*/
public var description: kotlin.String? = null
/**
* A name for the compute environment configuration.
*/
public var name: kotlin.String? = null
/**
* Indicates whether `PhysicalConnectionProperties` are required for the compute environment.
*/
public var physicalConnectionPropertiesRequired: kotlin.Boolean? = null
/**
* The supported authentication types for the compute environment.
*/
public var supportedAuthenticationTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ComputeEnvironmentConfiguration) : this() {
this.computeEnvironment = x.computeEnvironment
this.connectionOptionNameOverrides = x.connectionOptionNameOverrides
this.connectionOptions = x.connectionOptions
this.connectionPropertiesRequiredOverrides = x.connectionPropertiesRequiredOverrides
this.connectionPropertyNameOverrides = x.connectionPropertyNameOverrides
this.description = x.description
this.name = x.name
this.physicalConnectionPropertiesRequired = x.physicalConnectionPropertiesRequired
this.supportedAuthenticationTypes = x.supportedAuthenticationTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ComputeEnvironmentConfiguration = ComputeEnvironmentConfiguration(this)
internal fun correctErrors(): Builder {
if (computeEnvironment == null) computeEnvironment = ComputeEnvironment.SdkUnknown("no value provided")
if (connectionOptionNameOverrides == null) connectionOptionNameOverrides = emptyMap()
if (connectionOptions == null) connectionOptions = emptyMap()
if (connectionPropertyNameOverrides == null) connectionPropertyNameOverrides = emptyMap()
if (description == null) description = ""
if (name == null) name = ""
if (supportedAuthenticationTypes == null) supportedAuthenticationTypes = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy