commonMain.aws.sdk.kotlin.services.proton.model.UpdateServiceTemplateVersionRequest.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
public class UpdateServiceTemplateVersionRequest private constructor(builder: Builder) {
/**
* An array of environment template objects that are compatible with this service template version. A service instance based on this service template version can run in environments based on compatible templates.
*/
public val compatibleEnvironmentTemplates: List? = builder.compatibleEnvironmentTemplates
/**
* A description of a service template version to update.
*/
public val description: kotlin.String? = builder.description
/**
* To update a major version of a service template, include `major Version`.
*/
public val majorVersion: kotlin.String = requireNotNull(builder.majorVersion) { "A non-null value must be provided for majorVersion" }
/**
* To update a minor version of a service template, include `minorVersion`.
*/
public val minorVersion: kotlin.String = requireNotNull(builder.minorVersion) { "A non-null value must be provided for minorVersion" }
/**
* The status of the service template minor version to update.
*/
public val status: aws.sdk.kotlin.services.proton.model.TemplateVersionStatus? = builder.status
/**
* An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
*
* A change to `supportedComponentSources` doesn't impact existing component attachments to instances based on this template version. A change only affects later associations.
*
* For more information about components, see [Proton components](https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html) in the *Proton User Guide*.
*/
public val supportedComponentSources: List? = builder.supportedComponentSources
/**
* The name of the service template.
*/
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.UpdateServiceTemplateVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateServiceTemplateVersionRequest(")
append("compatibleEnvironmentTemplates=$compatibleEnvironmentTemplates,")
append("description=*** Sensitive Data Redacted ***,")
append("majorVersion=$majorVersion,")
append("minorVersion=$minorVersion,")
append("status=$status,")
append("supportedComponentSources=$supportedComponentSources,")
append("templateName=$templateName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = compatibleEnvironmentTemplates?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (majorVersion.hashCode())
result = 31 * result + (minorVersion.hashCode())
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (supportedComponentSources?.hashCode() ?: 0)
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 UpdateServiceTemplateVersionRequest
if (compatibleEnvironmentTemplates != other.compatibleEnvironmentTemplates) return false
if (description != other.description) return false
if (majorVersion != other.majorVersion) return false
if (minorVersion != other.minorVersion) return false
if (status != other.status) return false
if (supportedComponentSources != other.supportedComponentSources) return false
if (templateName != other.templateName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.UpdateServiceTemplateVersionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of environment template objects that are compatible with this service template version. A service instance based on this service template version can run in environments based on compatible templates.
*/
public var compatibleEnvironmentTemplates: List? = null
/**
* A description of a service template version to update.
*/
public var description: kotlin.String? = null
/**
* To update a major version of a service template, include `major Version`.
*/
public var majorVersion: kotlin.String? = null
/**
* To update a minor version of a service template, include `minorVersion`.
*/
public var minorVersion: kotlin.String? = null
/**
* The status of the service template minor version to update.
*/
public var status: aws.sdk.kotlin.services.proton.model.TemplateVersionStatus? = null
/**
* An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
*
* A change to `supportedComponentSources` doesn't impact existing component attachments to instances based on this template version. A change only affects later associations.
*
* For more information about components, see [Proton components](https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html) in the *Proton User Guide*.
*/
public var supportedComponentSources: List? = null
/**
* The name of the service template.
*/
public var templateName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.UpdateServiceTemplateVersionRequest) : this() {
this.compatibleEnvironmentTemplates = x.compatibleEnvironmentTemplates
this.description = x.description
this.majorVersion = x.majorVersion
this.minorVersion = x.minorVersion
this.status = x.status
this.supportedComponentSources = x.supportedComponentSources
this.templateName = x.templateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.UpdateServiceTemplateVersionRequest = UpdateServiceTemplateVersionRequest(this)
internal fun correctErrors(): Builder {
if (majorVersion == null) majorVersion = ""
if (minorVersion == null) minorVersion = ""
if (templateName == null) templateName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy