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

commonMain.aws.sdk.kotlin.services.codebuild.model.UpdateReportGroupRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codebuild.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateReportGroupRequest private constructor(builder: Builder) {
    /**
     * The ARN of the report group to update.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Used to specify an updated export type. Valid values are:
     * + `S3`: The report results are exported to an S3 bucket.
     * + `NO_EXPORT`: The report results are not exported.
     */
    public val exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = builder.exportConfig
    /**
     * An updated list of tag key and value pairs associated with this report group.
     *
     * These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateReportGroupRequest(")
        append("arn=$arn,")
        append("exportConfig=$exportConfig,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (exportConfig?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 UpdateReportGroupRequest

        if (arn != other.arn) return false
        if (exportConfig != other.exportConfig) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the report group to update.
         */
        public var arn: kotlin.String? = null
        /**
         * Used to specify an updated export type. Valid values are:
         * + `S3`: The report results are exported to an S3 bucket.
         * + `NO_EXPORT`: The report results are not exported.
         */
        public var exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = null
        /**
         * An updated list of tag key and value pairs associated with this report group.
         *
         * These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.UpdateReportGroupRequest) : this() {
            this.arn = x.arn
            this.exportConfig = x.exportConfig
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.codebuild.model.ReportExportConfig] inside the given [block]
         */
        public fun exportConfig(block: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.Builder.() -> kotlin.Unit) {
            this.exportConfig = aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy