commonMain.aws.sdk.kotlin.services.backup.model.DescribeReportPlanResponse.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 DescribeReportPlanResponse private constructor(builder: Builder) {
/**
* Returns details about the report plan that is specified by its name. These details include the report plan's Amazon Resource Name (ARN), description, settings, delivery channel, deployment status, creation time, and last attempted and successful run times.
*/
public val reportPlan: aws.sdk.kotlin.services.backup.model.ReportPlan? = builder.reportPlan
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.DescribeReportPlanResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeReportPlanResponse(")
append("reportPlan=$reportPlan")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reportPlan?.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 DescribeReportPlanResponse
if (reportPlan != other.reportPlan) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.DescribeReportPlanResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Returns details about the report plan that is specified by its name. These details include the report plan's Amazon Resource Name (ARN), description, settings, delivery channel, deployment status, creation time, and last attempted and successful run times.
*/
public var reportPlan: aws.sdk.kotlin.services.backup.model.ReportPlan? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.DescribeReportPlanResponse) : this() {
this.reportPlan = x.reportPlan
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.DescribeReportPlanResponse = DescribeReportPlanResponse(this)
/**
* construct an [aws.sdk.kotlin.services.backup.model.ReportPlan] inside the given [block]
*/
public fun reportPlan(block: aws.sdk.kotlin.services.backup.model.ReportPlan.Builder.() -> kotlin.Unit) {
this.reportPlan = aws.sdk.kotlin.services.backup.model.ReportPlan.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}