commonMain.aws.sdk.kotlin.services.datazone.model.CreateEnvironmentActionRequest.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
public class CreateEnvironmentActionRequest private constructor(builder: Builder) {
/**
* The description of the environment action that is being created in the environment.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the Amazon DataZone domain in which the environment action is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The ID of the environment in which the environment action is created.
*/
public val environmentIdentifier: kotlin.String? = builder.environmentIdentifier
/**
* The name of the environment action.
*/
public val name: kotlin.String? = builder.name
/**
* The parameters of the environment action.
*/
public val parameters: aws.sdk.kotlin.services.datazone.model.ActionParameters? = builder.parameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateEnvironmentActionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateEnvironmentActionRequest(")
append("description=$description,")
append("domainIdentifier=$domainIdentifier,")
append("environmentIdentifier=$environmentIdentifier,")
append("name=$name,")
append("parameters=$parameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (environmentIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (parameters?.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 CreateEnvironmentActionRequest
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (environmentIdentifier != other.environmentIdentifier) return false
if (name != other.name) return false
if (parameters != other.parameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateEnvironmentActionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the environment action that is being created in the environment.
*/
public var description: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain in which the environment action is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The ID of the environment in which the environment action is created.
*/
public var environmentIdentifier: kotlin.String? = null
/**
* The name of the environment action.
*/
public var name: kotlin.String? = null
/**
* The parameters of the environment action.
*/
public var parameters: aws.sdk.kotlin.services.datazone.model.ActionParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateEnvironmentActionRequest) : this() {
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.environmentIdentifier = x.environmentIdentifier
this.name = x.name
this.parameters = x.parameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateEnvironmentActionRequest = CreateEnvironmentActionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy