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

commonMain.aws.sdk.kotlin.services.artifact.model.ReportSummary.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.artifact.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Summary for report resource.
 */
public class ReportSummary private constructor(builder: Builder) {
    /**
     * Acceptance type for report.
     */
    public val acceptanceType: aws.sdk.kotlin.services.artifact.model.AcceptanceType? = builder.acceptanceType
    /**
     * ARN for the report resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Category for the report resource.
     */
    public val category: kotlin.String? = builder.category
    /**
     * Associated company name for the report resource.
     */
    public val companyName: kotlin.String? = builder.companyName
    /**
     * Description for the report resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Unique resource ID for the report resource.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Name for the report resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Timestamp indicating the report resource effective end.
     */
    public val periodEnd: aws.smithy.kotlin.runtime.time.Instant? = builder.periodEnd
    /**
     * Timestamp indicating the report resource effective start.
     */
    public val periodStart: aws.smithy.kotlin.runtime.time.Instant? = builder.periodStart
    /**
     * Associated product name for the report resource.
     */
    public val productName: kotlin.String? = builder.productName
    /**
     * Series for the report resource.
     */
    public val series: kotlin.String? = builder.series
    /**
     * Current state of the report resource.
     */
    public val state: aws.sdk.kotlin.services.artifact.model.PublishedState? = builder.state
    /**
     * The message associated with the current upload state.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The current state of the document upload.
     */
    public val uploadState: aws.sdk.kotlin.services.artifact.model.UploadState? = builder.uploadState
    /**
     * Version for the report resource.
     */
    public val version: kotlin.Long? = builder.version

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.artifact.model.ReportSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ReportSummary(")
        append("acceptanceType=$acceptanceType,")
        append("arn=$arn,")
        append("category=$category,")
        append("companyName=$companyName,")
        append("description=$description,")
        append("id=$id,")
        append("name=$name,")
        append("periodEnd=$periodEnd,")
        append("periodStart=$periodStart,")
        append("productName=$productName,")
        append("series=$series,")
        append("state=$state,")
        append("statusMessage=$statusMessage,")
        append("uploadState=$uploadState,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = acceptanceType?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (category?.hashCode() ?: 0)
        result = 31 * result + (companyName?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (periodEnd?.hashCode() ?: 0)
        result = 31 * result + (periodStart?.hashCode() ?: 0)
        result = 31 * result + (productName?.hashCode() ?: 0)
        result = 31 * result + (series?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (uploadState?.hashCode() ?: 0)
        result = 31 * result + (version?.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 ReportSummary

        if (acceptanceType != other.acceptanceType) return false
        if (arn != other.arn) return false
        if (category != other.category) return false
        if (companyName != other.companyName) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (periodEnd != other.periodEnd) return false
        if (periodStart != other.periodStart) return false
        if (productName != other.productName) return false
        if (series != other.series) return false
        if (state != other.state) return false
        if (statusMessage != other.statusMessage) return false
        if (uploadState != other.uploadState) return false
        if (version != other.version) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.artifact.model.ReportSummary = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Acceptance type for report.
         */
        public var acceptanceType: aws.sdk.kotlin.services.artifact.model.AcceptanceType? = null
        /**
         * ARN for the report resource.
         */
        public var arn: kotlin.String? = null
        /**
         * Category for the report resource.
         */
        public var category: kotlin.String? = null
        /**
         * Associated company name for the report resource.
         */
        public var companyName: kotlin.String? = null
        /**
         * Description for the report resource.
         */
        public var description: kotlin.String? = null
        /**
         * Unique resource ID for the report resource.
         */
        public var id: kotlin.String? = null
        /**
         * Name for the report resource.
         */
        public var name: kotlin.String? = null
        /**
         * Timestamp indicating the report resource effective end.
         */
        public var periodEnd: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Timestamp indicating the report resource effective start.
         */
        public var periodStart: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Associated product name for the report resource.
         */
        public var productName: kotlin.String? = null
        /**
         * Series for the report resource.
         */
        public var series: kotlin.String? = null
        /**
         * Current state of the report resource.
         */
        public var state: aws.sdk.kotlin.services.artifact.model.PublishedState? = null
        /**
         * The message associated with the current upload state.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The current state of the document upload.
         */
        public var uploadState: aws.sdk.kotlin.services.artifact.model.UploadState? = null
        /**
         * Version for the report resource.
         */
        public var version: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.artifact.model.ReportSummary) : this() {
            this.acceptanceType = x.acceptanceType
            this.arn = x.arn
            this.category = x.category
            this.companyName = x.companyName
            this.description = x.description
            this.id = x.id
            this.name = x.name
            this.periodEnd = x.periodEnd
            this.periodStart = x.periodStart
            this.productName = x.productName
            this.series = x.series
            this.state = x.state
            this.statusMessage = x.statusMessage
            this.uploadState = x.uploadState
            this.version = x.version
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy