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

commonMain.aws.sdk.kotlin.services.proton.model.UpdateServiceSyncConfigRequest.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.proton.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateServiceSyncConfigRequest private constructor(builder: Builder) {
    /**
     * The name of the code repository branch where the Proton Ops file is found.
     */
    public val branch: kotlin.String = requireNotNull(builder.branch) { "A non-null value must be provided for branch" }
    /**
     * The path to the Proton Ops file.
     */
    public val filePath: kotlin.String = requireNotNull(builder.filePath) { "A non-null value must be provided for filePath" }
    /**
     * The name of the repository where the Proton Ops file is found.
     */
    public val repositoryName: kotlin.String = requireNotNull(builder.repositoryName) { "A non-null value must be provided for repositoryName" }
    /**
     * The name of the repository provider where the Proton Ops file is found.
     */
    public val repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider = requireNotNull(builder.repositoryProvider) { "A non-null value must be provided for repositoryProvider" }
    /**
     * The name of the service the Proton Ops file is for.
     */
    public val serviceName: kotlin.String = requireNotNull(builder.serviceName) { "A non-null value must be provided for serviceName" }

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateServiceSyncConfigRequest(")
        append("branch=$branch,")
        append("filePath=$filePath,")
        append("repositoryName=$repositoryName,")
        append("repositoryProvider=$repositoryProvider,")
        append("serviceName=$serviceName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = branch.hashCode()
        result = 31 * result + (filePath.hashCode())
        result = 31 * result + (repositoryName.hashCode())
        result = 31 * result + (repositoryProvider.hashCode())
        result = 31 * result + (serviceName.hashCode())
        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 UpdateServiceSyncConfigRequest

        if (branch != other.branch) return false
        if (filePath != other.filePath) return false
        if (repositoryName != other.repositoryName) return false
        if (repositoryProvider != other.repositoryProvider) return false
        if (serviceName != other.serviceName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the code repository branch where the Proton Ops file is found.
         */
        public var branch: kotlin.String? = null
        /**
         * The path to the Proton Ops file.
         */
        public var filePath: kotlin.String? = null
        /**
         * The name of the repository where the Proton Ops file is found.
         */
        public var repositoryName: kotlin.String? = null
        /**
         * The name of the repository provider where the Proton Ops file is found.
         */
        public var repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = null
        /**
         * The name of the service the Proton Ops file is for.
         */
        public var serviceName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.UpdateServiceSyncConfigRequest) : this() {
            this.branch = x.branch
            this.filePath = x.filePath
            this.repositoryName = x.repositoryName
            this.repositoryProvider = x.repositoryProvider
            this.serviceName = x.serviceName
        }

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

        internal fun correctErrors(): Builder {
            if (branch == null) branch = ""
            if (filePath == null) filePath = ""
            if (repositoryName == null) repositoryName = ""
            if (repositoryProvider == null) repositoryProvider = RepositoryProvider.SdkUnknown("no value provided")
            if (serviceName == null) serviceName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy