
commonMain.aws.sdk.kotlin.services.sms.model.GenerateTemplateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
public class GenerateTemplateRequest private constructor(builder: Builder) {
/**
* The ID of the application associated with the CloudFormation template.
*/
public val appId: kotlin.String? = builder.appId
/**
* The format for generating the CloudFormation template.
*/
public val templateFormat: aws.sdk.kotlin.services.sms.model.OutputFormat? = builder.templateFormat
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.GenerateTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GenerateTemplateRequest(")
append("appId=$appId,")
append("templateFormat=$templateFormat")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (templateFormat?.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 GenerateTemplateRequest
if (appId != other.appId) return false
if (templateFormat != other.templateFormat) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.GenerateTemplateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the application associated with the CloudFormation template.
*/
public var appId: kotlin.String? = null
/**
* The format for generating the CloudFormation template.
*/
public var templateFormat: aws.sdk.kotlin.services.sms.model.OutputFormat? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.GenerateTemplateRequest) : this() {
this.appId = x.appId
this.templateFormat = x.templateFormat
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.GenerateTemplateRequest = GenerateTemplateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy