commonMain.aws.sdk.kotlin.services.backup.model.StartReportJobRequest.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 StartReportJobRequest private constructor(builder: Builder) {
/**
* A customer-chosen string that you can use to distinguish between otherwise identical calls to `StartReportJobInput`. Retrying a successful request with the same idempotency token results in a success message with no action taken.
*/
public val idempotencyToken: kotlin.String? = builder.idempotencyToken
/**
* The unique name of a report plan.
*/
public val reportPlanName: kotlin.String? = builder.reportPlanName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.StartReportJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartReportJobRequest(")
append("idempotencyToken=$idempotencyToken,")
append("reportPlanName=$reportPlanName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = idempotencyToken?.hashCode() ?: 0
result = 31 * result + (reportPlanName?.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 StartReportJobRequest
if (idempotencyToken != other.idempotencyToken) return false
if (reportPlanName != other.reportPlanName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.StartReportJobRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A customer-chosen string that you can use to distinguish between otherwise identical calls to `StartReportJobInput`. Retrying a successful request with the same idempotency token results in a success message with no action taken.
*/
public var idempotencyToken: kotlin.String? = null
/**
* The unique name of a report plan.
*/
public var reportPlanName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.StartReportJobRequest) : this() {
this.idempotencyToken = x.idempotencyToken
this.reportPlanName = x.reportPlanName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.StartReportJobRequest = StartReportJobRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}