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

commonMain.aws.sdk.kotlin.services.codepipeline.model.RuleExecutionResult.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codepipeline.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Execution result information, such as the external execution ID.
 */
public class RuleExecutionResult private constructor(builder: Builder) {
    /**
     * Represents information about an error in CodePipeline.
     */
    public val errorDetails: aws.sdk.kotlin.services.codepipeline.model.ErrorDetails? = builder.errorDetails
    /**
     * The external ID for the rule execution.
     */
    public val externalExecutionId: kotlin.String? = builder.externalExecutionId
    /**
     * The external provider summary for the rule execution.
     */
    public val externalExecutionSummary: kotlin.String? = builder.externalExecutionSummary
    /**
     * The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is used when running the rule.
     */
    public val externalExecutionUrl: kotlin.String? = builder.externalExecutionUrl

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

    override fun toString(): kotlin.String = buildString {
        append("RuleExecutionResult(")
        append("errorDetails=$errorDetails,")
        append("externalExecutionId=$externalExecutionId,")
        append("externalExecutionSummary=$externalExecutionSummary,")
        append("externalExecutionUrl=$externalExecutionUrl")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = errorDetails?.hashCode() ?: 0
        result = 31 * result + (externalExecutionId?.hashCode() ?: 0)
        result = 31 * result + (externalExecutionSummary?.hashCode() ?: 0)
        result = 31 * result + (externalExecutionUrl?.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 RuleExecutionResult

        if (errorDetails != other.errorDetails) return false
        if (externalExecutionId != other.externalExecutionId) return false
        if (externalExecutionSummary != other.externalExecutionSummary) return false
        if (externalExecutionUrl != other.externalExecutionUrl) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Represents information about an error in CodePipeline.
         */
        public var errorDetails: aws.sdk.kotlin.services.codepipeline.model.ErrorDetails? = null
        /**
         * The external ID for the rule execution.
         */
        public var externalExecutionId: kotlin.String? = null
        /**
         * The external provider summary for the rule execution.
         */
        public var externalExecutionSummary: kotlin.String? = null
        /**
         * The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is used when running the rule.
         */
        public var externalExecutionUrl: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.RuleExecutionResult) : this() {
            this.errorDetails = x.errorDetails
            this.externalExecutionId = x.externalExecutionId
            this.externalExecutionSummary = x.externalExecutionSummary
            this.externalExecutionUrl = x.externalExecutionUrl
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy