commonMain.aws.sdk.kotlin.services.backup.model.GetBackupPlanFromTemplateRequest.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 GetBackupPlanFromTemplateRequest private constructor(builder: Builder) {
/**
* Uniquely identifies a stored backup plan template.
*/
public val backupPlanTemplateId: kotlin.String? = builder.backupPlanTemplateId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.GetBackupPlanFromTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBackupPlanFromTemplateRequest(")
append("backupPlanTemplateId=$backupPlanTemplateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupPlanTemplateId?.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 GetBackupPlanFromTemplateRequest
if (backupPlanTemplateId != other.backupPlanTemplateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.GetBackupPlanFromTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Uniquely identifies a stored backup plan template.
*/
public var backupPlanTemplateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.GetBackupPlanFromTemplateRequest) : this() {
this.backupPlanTemplateId = x.backupPlanTemplateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.GetBackupPlanFromTemplateRequest = GetBackupPlanFromTemplateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}