commonMain.aws.sdk.kotlin.services.backup.model.UpdateReportPlanResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateReportPlanResponse private constructor(builder: Builder) {
/**
* The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationTime` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public val reportPlanArn: kotlin.String? = builder.reportPlanArn
/**
* The unique name of the 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.UpdateReportPlanResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateReportPlanResponse(")
append("creationTime=$creationTime,")
append("reportPlanArn=$reportPlanArn,")
append("reportPlanName=$reportPlanName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (reportPlanArn?.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 UpdateReportPlanResponse
if (creationTime != other.creationTime) return false
if (reportPlanArn != other.reportPlanArn) return false
if (reportPlanName != other.reportPlanName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.UpdateReportPlanResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationTime` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public var reportPlanArn: kotlin.String? = null
/**
* The unique name of the report plan.
*/
public var reportPlanName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.UpdateReportPlanResponse) : this() {
this.creationTime = x.creationTime
this.reportPlanArn = x.reportPlanArn
this.reportPlanName = x.reportPlanName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.UpdateReportPlanResponse = UpdateReportPlanResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}