
commonMain.aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepInput.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Creates the CloudFormation step input.
*/
public class CreateCloudFormationStepInput private constructor(builder: Builder) {
/**
* The CloudFormation properties of the CloudFormation step input.
*/
public val parameters: Map? = builder.parameters
/**
* The template location of the CloudFormation step input.
*/
public val templateLocation: kotlin.String = requireNotNull(builder.templateLocation) { "A non-null value must be provided for templateLocation" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCloudFormationStepInput(")
append("parameters=$parameters,")
append("templateLocation=$templateLocation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = parameters?.hashCode() ?: 0
result = 31 * result + (templateLocation.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 CreateCloudFormationStepInput
if (parameters != other.parameters) return false
if (templateLocation != other.templateLocation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The CloudFormation properties of the CloudFormation step input.
*/
public var parameters: Map? = null
/**
* The template location of the CloudFormation step input.
*/
public var templateLocation: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepInput) : this() {
this.parameters = x.parameters
this.templateLocation = x.templateLocation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepInput = CreateCloudFormationStepInput(this)
internal fun correctErrors(): Builder {
if (templateLocation == null) templateLocation = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy