commonMain.aws.sdk.kotlin.services.datazone.model.ConfigurableEnvironmentAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configurable action of a Amazon DataZone environment.
*/
public class ConfigurableEnvironmentAction private constructor(builder: Builder) {
/**
* The authentication type of a configurable action of a Amazon DataZone environment.
*/
public val auth: aws.sdk.kotlin.services.datazone.model.ConfigurableActionTypeAuthorization? = builder.auth
/**
* The parameters of a configurable action in a Amazon DataZone environment.
*/
public val parameters: List = requireNotNull(builder.parameters) { "A non-null value must be provided for parameters" }
/**
* The type of a configurable action in a Amazon DataZone environment.
*/
public val type: kotlin.String = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.ConfigurableEnvironmentAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigurableEnvironmentAction(")
append("auth=$auth,")
append("parameters=$parameters,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = auth?.hashCode() ?: 0
result = 31 * result + (parameters.hashCode())
result = 31 * result + (type.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 ConfigurableEnvironmentAction
if (auth != other.auth) return false
if (parameters != other.parameters) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.ConfigurableEnvironmentAction = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The authentication type of a configurable action of a Amazon DataZone environment.
*/
public var auth: aws.sdk.kotlin.services.datazone.model.ConfigurableActionTypeAuthorization? = null
/**
* The parameters of a configurable action in a Amazon DataZone environment.
*/
public var parameters: List? = null
/**
* The type of a configurable action in a Amazon DataZone environment.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.ConfigurableEnvironmentAction) : this() {
this.auth = x.auth
this.parameters = x.parameters
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.ConfigurableEnvironmentAction = ConfigurableEnvironmentAction(this)
internal fun correctErrors(): Builder {
if (parameters == null) parameters = emptyList()
if (type == null) type = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy