All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.backup.model.CreateReportPlanResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.37
Show newest version
// 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 CreateReportPlanResponse private constructor(builder: Builder) {
    /**
     * The date and time a backup vault 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.CreateReportPlanResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateReportPlanResponse(")
        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 CreateReportPlanResponse

        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.CreateReportPlanResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The date and time a backup vault 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.CreateReportPlanResponse) : this() {
            this.creationTime = x.creationTime
            this.reportPlanArn = x.reportPlanArn
            this.reportPlanName = x.reportPlanName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.backup.model.CreateReportPlanResponse = CreateReportPlanResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy