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

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



public class GetRepositorySyncStatusRequest private constructor(builder: Builder) {
    /**
     * The repository branch.
     */
    public val branch: kotlin.String? = builder.branch
    /**
     * The repository name.
     */
    public val repositoryName: kotlin.String? = builder.repositoryName
    /**
     * The repository provider.
     */
    public val repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = builder.repositoryProvider
    /**
     * The repository sync type.
     */
    public val syncType: aws.sdk.kotlin.services.proton.model.SyncType? = builder.syncType

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

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

    override fun hashCode(): kotlin.Int {
        var result = branch?.hashCode() ?: 0
        result = 31 * result + (repositoryName?.hashCode() ?: 0)
        result = 31 * result + (repositoryProvider?.hashCode() ?: 0)
        result = 31 * result + (syncType?.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 GetRepositorySyncStatusRequest

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

        return true
    }

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

    public class Builder {
        /**
         * The repository branch.
         */
        public var branch: kotlin.String? = null
        /**
         * The repository name.
         */
        public var repositoryName: kotlin.String? = null
        /**
         * The repository provider.
         */
        public var repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = null
        /**
         * The repository sync type.
         */
        public var syncType: aws.sdk.kotlin.services.proton.model.SyncType? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy