commonMain.aws.sdk.kotlin.services.glue.model.CreateDevEndpointResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class CreateDevEndpointResponse private constructor(builder: Builder) {
/**
* The map of arguments used to configure this `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 arguments: Map? = builder.arguments
/**
* The Amazon Web Services Availability Zone where this `DevEndpoint` is located.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The point in time at which this `DevEndpoint` was created.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The name assigned to the new `DevEndpoint`.
*/
public val endpointName: kotlin.String? = builder.endpointName
/**
* Path to one or more Java `.jar` files in an S3 bucket that will be loaded in your `DevEndpoint`.
*/
public val extraJarsS3Path: kotlin.String? = builder.extraJarsS3Path
/**
* The paths to one or more Python libraries in an S3 bucket that will be loaded in your `DevEndpoint`.
*/
public val extraPythonLibsS3Path: kotlin.String? = builder.extraPythonLibsS3Path
/**
* The reason for a current failure in this `DevEndpoint`.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
*
* For more information about the available Glue versions and corresponding Spark and Python versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the developer guide.
*/
public val glueVersion: kotlin.String? = builder.glueVersion
/**
* The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.
*/
public val numberOfNodes: kotlin.Int = builder.numberOfNodes
/**
* The number of workers of a defined `workerType` that are allocated to the development endpoint.
*/
public val numberOfWorkers: kotlin.Int? = builder.numberOfWorkers
/**
* The Amazon Resource Name (ARN) of the role assigned to the new `DevEndpoint`.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The name of the `SecurityConfiguration` structure being used with this `DevEndpoint`.
*/
public val securityConfiguration: kotlin.String? = builder.securityConfiguration
/**
* The security groups assigned to the new `DevEndpoint`.
*/
public val securityGroupIds: List? = builder.securityGroupIds
/**
* The current status of the new `DevEndpoint`.
*/
public val status: kotlin.String? = builder.status
/**
* The subnet ID assigned to the new `DevEndpoint`.
*/
public val subnetId: kotlin.String? = builder.subnetId
/**
* The ID of the virtual private cloud (VPC) used by this `DevEndpoint`.
*/
public val vpcId: kotlin.String? = builder.vpcId
/**
* The type of predefined worker that is allocated to the development endpoint. May be a value of Standard, G.1X, or G.2X.
*/
public val workerType: aws.sdk.kotlin.services.glue.model.WorkerType? = builder.workerType
/**
* The address of the YARN endpoint used by this `DevEndpoint`.
*/
public val yarnEndpointAddress: kotlin.String? = builder.yarnEndpointAddress
/**
* The Apache Zeppelin port for the remote Apache Spark interpreter.
*/
public val zeppelinRemoteSparkInterpreterPort: kotlin.Int = builder.zeppelinRemoteSparkInterpreterPort
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateDevEndpointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDevEndpointResponse(")
append("arguments=$arguments,")
append("availabilityZone=$availabilityZone,")
append("createdTimestamp=$createdTimestamp,")
append("endpointName=$endpointName,")
append("extraJarsS3Path=$extraJarsS3Path,")
append("extraPythonLibsS3Path=$extraPythonLibsS3Path,")
append("failureReason=$failureReason,")
append("glueVersion=$glueVersion,")
append("numberOfNodes=$numberOfNodes,")
append("numberOfWorkers=$numberOfWorkers,")
append("roleArn=$roleArn,")
append("securityConfiguration=$securityConfiguration,")
append("securityGroupIds=$securityGroupIds,")
append("status=$status,")
append("subnetId=$subnetId,")
append("vpcId=$vpcId,")
append("workerType=$workerType,")
append("yarnEndpointAddress=$yarnEndpointAddress,")
append("zeppelinRemoteSparkInterpreterPort=$zeppelinRemoteSparkInterpreterPort")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arguments?.hashCode() ?: 0
result = 31 * result + (availabilityZone?.hashCode() ?: 0)
result = 31 * result + (createdTimestamp?.hashCode() ?: 0)
result = 31 * result + (endpointName?.hashCode() ?: 0)
result = 31 * result + (extraJarsS3Path?.hashCode() ?: 0)
result = 31 * result + (extraPythonLibsS3Path?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (glueVersion?.hashCode() ?: 0)
result = 31 * result + (numberOfNodes)
result = 31 * result + (numberOfWorkers ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (securityConfiguration?.hashCode() ?: 0)
result = 31 * result + (securityGroupIds?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (subnetId?.hashCode() ?: 0)
result = 31 * result + (vpcId?.hashCode() ?: 0)
result = 31 * result + (workerType?.hashCode() ?: 0)
result = 31 * result + (yarnEndpointAddress?.hashCode() ?: 0)
result = 31 * result + (zeppelinRemoteSparkInterpreterPort)
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 CreateDevEndpointResponse
if (arguments != other.arguments) return false
if (availabilityZone != other.availabilityZone) return false
if (createdTimestamp != other.createdTimestamp) return false
if (endpointName != other.endpointName) return false
if (extraJarsS3Path != other.extraJarsS3Path) return false
if (extraPythonLibsS3Path != other.extraPythonLibsS3Path) return false
if (failureReason != other.failureReason) return false
if (glueVersion != other.glueVersion) return false
if (numberOfNodes != other.numberOfNodes) return false
if (numberOfWorkers != other.numberOfWorkers) return false
if (roleArn != other.roleArn) return false
if (securityConfiguration != other.securityConfiguration) return false
if (securityGroupIds != other.securityGroupIds) return false
if (status != other.status) return false
if (subnetId != other.subnetId) return false
if (vpcId != other.vpcId) return false
if (workerType != other.workerType) return false
if (yarnEndpointAddress != other.yarnEndpointAddress) return false
if (zeppelinRemoteSparkInterpreterPort != other.zeppelinRemoteSparkInterpreterPort) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateDevEndpointResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The map of arguments used to configure this `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 arguments: Map? = null
/**
* The Amazon Web Services Availability Zone where this `DevEndpoint` is located.
*/
public var availabilityZone: kotlin.String? = null
/**
* The point in time at which this `DevEndpoint` was created.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name assigned to the new `DevEndpoint`.
*/
public var endpointName: kotlin.String? = null
/**
* Path to one or more Java `.jar` files in an S3 bucket that will be loaded in your `DevEndpoint`.
*/
public var extraJarsS3Path: kotlin.String? = null
/**
* The paths to one or more Python libraries in an S3 bucket that will be loaded in your `DevEndpoint`.
*/
public var extraPythonLibsS3Path: kotlin.String? = null
/**
* The reason for a current failure in this `DevEndpoint`.
*/
public var failureReason: kotlin.String? = null
/**
* Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
*
* For more information about the available Glue versions and corresponding Spark and Python versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the developer guide.
*/
public var glueVersion: kotlin.String? = null
/**
* The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.
*/
public var numberOfNodes: kotlin.Int = 0
/**
* The number of workers of a defined `workerType` that are allocated to the development endpoint.
*/
public var numberOfWorkers: kotlin.Int? = null
/**
* The Amazon Resource Name (ARN) of the role assigned to the new `DevEndpoint`.
*/
public var roleArn: kotlin.String? = null
/**
* The name of the `SecurityConfiguration` structure being used with this `DevEndpoint`.
*/
public var securityConfiguration: kotlin.String? = null
/**
* The security groups assigned to the new `DevEndpoint`.
*/
public var securityGroupIds: List? = null
/**
* The current status of the new `DevEndpoint`.
*/
public var status: kotlin.String? = null
/**
* The subnet ID assigned to the new `DevEndpoint`.
*/
public var subnetId: kotlin.String? = null
/**
* The ID of the virtual private cloud (VPC) used by this `DevEndpoint`.
*/
public var vpcId: kotlin.String? = null
/**
* The type of predefined worker that is allocated to the development endpoint. May be a value of Standard, G.1X, or G.2X.
*/
public var workerType: aws.sdk.kotlin.services.glue.model.WorkerType? = null
/**
* The address of the YARN endpoint used by this `DevEndpoint`.
*/
public var yarnEndpointAddress: kotlin.String? = null
/**
* The Apache Zeppelin port for the remote Apache Spark interpreter.
*/
public var zeppelinRemoteSparkInterpreterPort: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateDevEndpointResponse) : this() {
this.arguments = x.arguments
this.availabilityZone = x.availabilityZone
this.createdTimestamp = x.createdTimestamp
this.endpointName = x.endpointName
this.extraJarsS3Path = x.extraJarsS3Path
this.extraPythonLibsS3Path = x.extraPythonLibsS3Path
this.failureReason = x.failureReason
this.glueVersion = x.glueVersion
this.numberOfNodes = x.numberOfNodes
this.numberOfWorkers = x.numberOfWorkers
this.roleArn = x.roleArn
this.securityConfiguration = x.securityConfiguration
this.securityGroupIds = x.securityGroupIds
this.status = x.status
this.subnetId = x.subnetId
this.vpcId = x.vpcId
this.workerType = x.workerType
this.yarnEndpointAddress = x.yarnEndpointAddress
this.zeppelinRemoteSparkInterpreterPort = x.zeppelinRemoteSparkInterpreterPort
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateDevEndpointResponse = CreateDevEndpointResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}