commonMain.aws.sdk.kotlin.services.codebuild.model.EnvironmentPlatform.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A set of Docker images that are related by platform and are managed by CodeBuild.
*/
public class EnvironmentPlatform private constructor(builder: Builder) {
/**
* The list of programming languages that are available for the specified platform.
*/
public val languages: List? = builder.languages
/**
* The platform's name.
*/
public val platform: aws.sdk.kotlin.services.codebuild.model.PlatformType? = builder.platform
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.EnvironmentPlatform = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EnvironmentPlatform(")
append("languages=$languages,")
append("platform=$platform")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = languages?.hashCode() ?: 0
result = 31 * result + (platform?.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 EnvironmentPlatform
if (languages != other.languages) return false
if (platform != other.platform) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.EnvironmentPlatform = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of programming languages that are available for the specified platform.
*/
public var languages: List? = null
/**
* The platform's name.
*/
public var platform: aws.sdk.kotlin.services.codebuild.model.PlatformType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.EnvironmentPlatform) : this() {
this.languages = x.languages
this.platform = x.platform
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.EnvironmentPlatform = EnvironmentPlatform(this)
internal fun correctErrors(): Builder {
return this
}
}
}