
commonMain.aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateManagedEndpointRequest private constructor(builder: Builder) {
/**
* The certificate ARN provided by users for the managed endpoint. This field is under deprecation and will be removed in future releases.
*/
@Deprecated("Customer provided certificate-arn is deprecated and would be removed in future.")
public val certificateArn: kotlin.String? = builder.certificateArn
/**
* The client idempotency token for this create call.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The configuration settings that will be used to override existing configurations.
*/
public val configurationOverrides: aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides? = builder.configurationOverrides
/**
* The ARN of the execution role.
*/
public val executionRoleArn: kotlin.String? = builder.executionRoleArn
/**
* The name of the managed endpoint.
*/
public val name: kotlin.String? = builder.name
/**
* The Amazon EMR release version.
*/
public val releaseLabel: kotlin.String? = builder.releaseLabel
/**
* The tags of the managed endpoint.
*/
public val tags: Map? = builder.tags
/**
* The type of the managed endpoint.
*/
public val type: kotlin.String? = builder.type
/**
* The ID of the virtual cluster for which a managed endpoint is created.
*/
public val virtualClusterId: kotlin.String? = builder.virtualClusterId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateManagedEndpointRequest(")
append("certificateArn=$certificateArn,")
append("clientToken=$clientToken,")
append("configurationOverrides=$configurationOverrides,")
append("executionRoleArn=$executionRoleArn,")
append("name=$name,")
append("releaseLabel=$releaseLabel,")
append("tags=$tags,")
append("type=$type,")
append("virtualClusterId=$virtualClusterId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateArn?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (configurationOverrides?.hashCode() ?: 0)
result = 31 * result + (executionRoleArn?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (releaseLabel?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type?.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 CreateManagedEndpointRequest
if (certificateArn != other.certificateArn) return false
if (clientToken != other.clientToken) return false
if (configurationOverrides != other.configurationOverrides) return false
if (executionRoleArn != other.executionRoleArn) return false
if (name != other.name) return false
if (releaseLabel != other.releaseLabel) return false
if (tags != other.tags) return false
if (type != other.type) return false
if (virtualClusterId != other.virtualClusterId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The certificate ARN provided by users for the managed endpoint. This field is under deprecation and will be removed in future releases.
*/
@Deprecated("Customer provided certificate-arn is deprecated and would be removed in future.")
public var certificateArn: kotlin.String? = null
/**
* The client idempotency token for this create call.
*/
public var clientToken: kotlin.String? = null
/**
* The configuration settings that will be used to override existing configurations.
*/
public var configurationOverrides: aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides? = null
/**
* The ARN of the execution role.
*/
public var executionRoleArn: kotlin.String? = null
/**
* The name of the managed endpoint.
*/
public var name: kotlin.String? = null
/**
* The Amazon EMR release version.
*/
public var releaseLabel: kotlin.String? = null
/**
* The tags of the managed endpoint.
*/
public var tags: Map? = null
/**
* The type of the managed endpoint.
*/
public var type: kotlin.String? = null
/**
* The ID of the virtual cluster for which a managed endpoint is created.
*/
public var virtualClusterId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointRequest) : this() {
this.certificateArn = x.certificateArn
this.clientToken = x.clientToken
this.configurationOverrides = x.configurationOverrides
this.executionRoleArn = x.executionRoleArn
this.name = x.name
this.releaseLabel = x.releaseLabel
this.tags = x.tags
this.type = x.type
this.virtualClusterId = x.virtualClusterId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.CreateManagedEndpointRequest = CreateManagedEndpointRequest(this)
/**
* construct an [aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides] inside the given [block]
*/
public fun configurationOverrides(block: aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides.Builder.() -> kotlin.Unit) {
this.configurationOverrides = aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy