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

commonMain.aws.sdk.kotlin.services.codepipeline.model.PipelineSummary.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Returns a summary of a pipeline.
 */
public class PipelineSummary private constructor(builder: Builder) {
    /**
     * The date and time the pipeline was created, in timestamp format.
     */
    public val created: aws.smithy.kotlin.runtime.time.Instant? = builder.created
    /**
     * The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
     */
    public val executionMode: aws.sdk.kotlin.services.codepipeline.model.ExecutionMode? = builder.executionMode
    /**
     * The name of the pipeline.
     */
    public val name: kotlin.String? = builder.name
    /**
     * CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
     * + V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.
     * + V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.
     *
     * Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.
     *
     * For information about pricing for CodePipeline, see [Pricing](http://aws.amazon.com/codepipeline/pricing/).
     *
     *  For information about which type of pipeline to choose, see [What type of pipeline is right for me?](https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html).
     */
    public val pipelineType: aws.sdk.kotlin.services.codepipeline.model.PipelineType? = builder.pipelineType
    /**
     * The date and time of the last update to the pipeline, in timestamp format.
     */
    public val updated: aws.smithy.kotlin.runtime.time.Instant? = builder.updated
    /**
     * The version number of the pipeline.
     */
    public val version: kotlin.Int? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("PipelineSummary(")
        append("created=$created,")
        append("executionMode=$executionMode,")
        append("name=$name,")
        append("pipelineType=$pipelineType,")
        append("updated=$updated,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = created?.hashCode() ?: 0
        result = 31 * result + (executionMode?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (pipelineType?.hashCode() ?: 0)
        result = 31 * result + (updated?.hashCode() ?: 0)
        result = 31 * result + (version ?: 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 PipelineSummary

        if (created != other.created) return false
        if (executionMode != other.executionMode) return false
        if (name != other.name) return false
        if (pipelineType != other.pipelineType) return false
        if (updated != other.updated) return false
        if (version != other.version) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The date and time the pipeline was created, in timestamp format.
         */
        public var created: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
         */
        public var executionMode: aws.sdk.kotlin.services.codepipeline.model.ExecutionMode? = null
        /**
         * The name of the pipeline.
         */
        public var name: kotlin.String? = null
        /**
         * CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
         * + V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.
         * + V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.
         *
         * Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.
         *
         * For information about pricing for CodePipeline, see [Pricing](http://aws.amazon.com/codepipeline/pricing/).
         *
         *  For information about which type of pipeline to choose, see [What type of pipeline is right for me?](https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html).
         */
        public var pipelineType: aws.sdk.kotlin.services.codepipeline.model.PipelineType? = null
        /**
         * The date and time of the last update to the pipeline, in timestamp format.
         */
        public var updated: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The version number of the pipeline.
         */
        public var version: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PipelineSummary) : this() {
            this.created = x.created
            this.executionMode = x.executionMode
            this.name = x.name
            this.pipelineType = x.pipelineType
            this.updated = x.updated
            this.version = x.version
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy