commonMain.aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.content.Document
/**
* The details of a specified environment.
*/
public class EnvironmentDetailsEntity private constructor(builder: Builder) {
/**
* The environment ID.
*/
public val environmentId: kotlin.String = requireNotNull(builder.environmentId) { "A non-null value must be provided for environmentId" }
/**
* The job ID.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The schema version in the environment.
*/
public val schemaVersion: kotlin.String = requireNotNull(builder.schemaVersion) { "A non-null value must be provided for schemaVersion" }
/**
* The template used for the environment.
*/
public val template: aws.smithy.kotlin.runtime.content.Document? = builder.template
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EnvironmentDetailsEntity(")
append("environmentId=$environmentId,")
append("jobId=$jobId,")
append("schemaVersion=$schemaVersion,")
append("template=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = environmentId.hashCode()
result = 31 * result + (jobId.hashCode())
result = 31 * result + (schemaVersion.hashCode())
result = 31 * result + (template?.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 EnvironmentDetailsEntity
if (environmentId != other.environmentId) return false
if (jobId != other.jobId) return false
if (schemaVersion != other.schemaVersion) return false
if (template != other.template) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The environment ID.
*/
public var environmentId: kotlin.String? = null
/**
* The job ID.
*/
public var jobId: kotlin.String? = null
/**
* The schema version in the environment.
*/
public var schemaVersion: kotlin.String? = null
/**
* The template used for the environment.
*/
public var template: aws.smithy.kotlin.runtime.content.Document? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity) : this() {
this.environmentId = x.environmentId
this.jobId = x.jobId
this.schemaVersion = x.schemaVersion
this.template = x.template
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity = EnvironmentDetailsEntity(this)
internal fun correctErrors(): Builder {
if (environmentId == null) environmentId = ""
if (jobId == null) jobId = ""
if (schemaVersion == null) schemaVersion = ""
return this
}
}
}