commonMain.aws.sdk.kotlin.services.proton.model.ServicePipelineState.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The detailed data about the current state of the service pipeline.
*/
public class ServicePipelineState private constructor(builder: Builder) {
/**
* The service spec that was used to create the service pipeline.
*/
public val spec: kotlin.String? = builder.spec
/**
* The major version of the service template that was used to create the service pipeline.
*/
public val templateMajorVersion: kotlin.String = requireNotNull(builder.templateMajorVersion) { "A non-null value must be provided for templateMajorVersion" }
/**
* The minor version of the service template that was used to create the service pipeline.
*/
public val templateMinorVersion: kotlin.String = requireNotNull(builder.templateMinorVersion) { "A non-null value must be provided for templateMinorVersion" }
/**
* The name of the service template that was used to create the service pipeline.
*/
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.ServicePipelineState = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServicePipelineState(")
append("spec=*** Sensitive Data Redacted ***,")
append("templateMajorVersion=$templateMajorVersion,")
append("templateMinorVersion=$templateMinorVersion,")
append("templateName=$templateName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = spec?.hashCode() ?: 0
result = 31 * result + (templateMajorVersion.hashCode())
result = 31 * result + (templateMinorVersion.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 ServicePipelineState
if (spec != other.spec) return false
if (templateMajorVersion != other.templateMajorVersion) return false
if (templateMinorVersion != other.templateMinorVersion) return false
if (templateName != other.templateName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.ServicePipelineState = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The service spec that was used to create the service pipeline.
*/
public var spec: kotlin.String? = null
/**
* The major version of the service template that was used to create the service pipeline.
*/
public var templateMajorVersion: kotlin.String? = null
/**
* The minor version of the service template that was used to create the service pipeline.
*/
public var templateMinorVersion: kotlin.String? = null
/**
* The name of the service template that was used to create the service pipeline.
*/
public var templateName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.ServicePipelineState) : this() {
this.spec = x.spec
this.templateMajorVersion = x.templateMajorVersion
this.templateMinorVersion = x.templateMinorVersion
this.templateName = x.templateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.ServicePipelineState = ServicePipelineState(this)
internal fun correctErrors(): Builder {
if (templateMajorVersion == null) templateMajorVersion = ""
if (templateMinorVersion == null) templateMinorVersion = ""
if (templateName == null) templateName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy