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

commonMain.aws.sdk.kotlin.services.codepipeline.model.RuleExecutionInput.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

/**
 * Input information used for a rule execution.
 */
public class RuleExecutionInput private constructor(builder: Builder) {
    /**
     * Configuration data for a rule execution, such as the resolved values for that run.
     */
    public val configuration: Map? = builder.configuration
    /**
     * Details of input artifacts of the rule that correspond to the rule execution.
     */
    public val inputArtifacts: List? = builder.inputArtifacts
    /**
     * The Amazon Web Services Region for the rule, such as us-east-1.
     */
    public val region: kotlin.String? = builder.region
    /**
     * Configuration data for a rule execution with all variable references replaced with their real values for the execution.
     */
    public val resolvedConfiguration: Map? = builder.resolvedConfiguration
    /**
     * The ARN of the IAM service role that performs the declared rule. This is assumed through the roleArn for the pipeline.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
     */
    public val ruleTypeId: aws.sdk.kotlin.services.codepipeline.model.RuleTypeId? = builder.ruleTypeId

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

    override fun toString(): kotlin.String = buildString {
        append("RuleExecutionInput(")
        append("configuration=$configuration,")
        append("inputArtifacts=$inputArtifacts,")
        append("region=$region,")
        append("resolvedConfiguration=$resolvedConfiguration,")
        append("roleArn=$roleArn,")
        append("ruleTypeId=$ruleTypeId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configuration?.hashCode() ?: 0
        result = 31 * result + (inputArtifacts?.hashCode() ?: 0)
        result = 31 * result + (region?.hashCode() ?: 0)
        result = 31 * result + (resolvedConfiguration?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (ruleTypeId?.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 RuleExecutionInput

        if (configuration != other.configuration) return false
        if (inputArtifacts != other.inputArtifacts) return false
        if (region != other.region) return false
        if (resolvedConfiguration != other.resolvedConfiguration) return false
        if (roleArn != other.roleArn) return false
        if (ruleTypeId != other.ruleTypeId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Configuration data for a rule execution, such as the resolved values for that run.
         */
        public var configuration: Map? = null
        /**
         * Details of input artifacts of the rule that correspond to the rule execution.
         */
        public var inputArtifacts: List? = null
        /**
         * The Amazon Web Services Region for the rule, such as us-east-1.
         */
        public var region: kotlin.String? = null
        /**
         * Configuration data for a rule execution with all variable references replaced with their real values for the execution.
         */
        public var resolvedConfiguration: Map? = null
        /**
         * The ARN of the IAM service role that performs the declared rule. This is assumed through the roleArn for the pipeline.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
         */
        public var ruleTypeId: aws.sdk.kotlin.services.codepipeline.model.RuleTypeId? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.RuleExecutionInput) : this() {
            this.configuration = x.configuration
            this.inputArtifacts = x.inputArtifacts
            this.region = x.region
            this.resolvedConfiguration = x.resolvedConfiguration
            this.roleArn = x.roleArn
            this.ruleTypeId = x.ruleTypeId
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy