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