commonMain.aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
public class CreateManagedEndpointResponse private constructor(builder: Builder) {
/**
* The output contains the ARN of the managed endpoint.
*/
public val arn: kotlin.String? = builder.arn
/**
* The output contains the ID of the managed endpoint.
*/
public val id: kotlin.String? = builder.id
/**
* The output contains the name of the managed endpoint.
*/
public val name: kotlin.String? = builder.name
/**
* The output contains the ID of the virtual cluster.
*/
public val virtualClusterId: kotlin.String? = builder.virtualClusterId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateManagedEndpointResponse(")
append("arn=$arn,")
append("id=$id,")
append("name=$name,")
append("virtualClusterId=$virtualClusterId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (virtualClusterId?.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 CreateManagedEndpointResponse
if (arn != other.arn) return false
if (id != other.id) return false
if (name != other.name) return false
if (virtualClusterId != other.virtualClusterId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The output contains the ARN of the managed endpoint.
*/
public var arn: kotlin.String? = null
/**
* The output contains the ID of the managed endpoint.
*/
public var id: kotlin.String? = null
/**
* The output contains the name of the managed endpoint.
*/
public var name: kotlin.String? = null
/**
* The output contains the ID of the virtual cluster.
*/
public var virtualClusterId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointResponse) : this() {
this.arn = x.arn
this.id = x.id
this.name = x.name
this.virtualClusterId = x.virtualClusterId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointResponse = CreateManagedEndpointResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy