commonMain.aws.sdk.kotlin.services.backup.model.ExportBackupPlanTemplateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ExportBackupPlanTemplateResponse private constructor(builder: Builder) {
/**
* The body of a backup plan template in JSON format.
*
* This is a signed JSON document that cannot be modified before being passed to `GetBackupPlanFromJSON.`
*/
public val backupPlanTemplateJson: kotlin.String? = builder.backupPlanTemplateJson
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.ExportBackupPlanTemplateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExportBackupPlanTemplateResponse(")
append("backupPlanTemplateJson=$backupPlanTemplateJson")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupPlanTemplateJson?.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 ExportBackupPlanTemplateResponse
if (backupPlanTemplateJson != other.backupPlanTemplateJson) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.ExportBackupPlanTemplateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The body of a backup plan template in JSON format.
*
* This is a signed JSON document that cannot be modified before being passed to `GetBackupPlanFromJSON.`
*/
public var backupPlanTemplateJson: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.ExportBackupPlanTemplateResponse) : this() {
this.backupPlanTemplateJson = x.backupPlanTemplateJson
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.ExportBackupPlanTemplateResponse = ExportBackupPlanTemplateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}