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

commonMain.aws.sdk.kotlin.services.cloudfront.model.GetContinuousDeploymentPolicyResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cloudfront.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetContinuousDeploymentPolicyResponse private constructor(builder: Builder) {
    /**
     * A continuous deployment policy.
     */
    public val continuousDeploymentPolicy: aws.sdk.kotlin.services.cloudfront.model.ContinuousDeploymentPolicy? = builder.continuousDeploymentPolicy
    /**
     * The version identifier for the current version of the continuous deployment policy.
     */
    public val eTag: kotlin.String? = builder.eTag

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

    override fun toString(): kotlin.String = buildString {
        append("GetContinuousDeploymentPolicyResponse(")
        append("continuousDeploymentPolicy=$continuousDeploymentPolicy,")
        append("eTag=$eTag")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = continuousDeploymentPolicy?.hashCode() ?: 0
        result = 31 * result + (eTag?.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 GetContinuousDeploymentPolicyResponse

        if (continuousDeploymentPolicy != other.continuousDeploymentPolicy) return false
        if (eTag != other.eTag) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A continuous deployment policy.
         */
        public var continuousDeploymentPolicy: aws.sdk.kotlin.services.cloudfront.model.ContinuousDeploymentPolicy? = null
        /**
         * The version identifier for the current version of the continuous deployment policy.
         */
        public var eTag: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.GetContinuousDeploymentPolicyResponse) : this() {
            this.continuousDeploymentPolicy = x.continuousDeploymentPolicy
            this.eTag = x.eTag
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy