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

commonMain.aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncConfigurationRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.4.42
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codestarconnections.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateSyncConfigurationRequest private constructor(builder: Builder) {
    /**
     * The branch for the sync configuration to be updated.
     */
    public val branch: kotlin.String? = builder.branch
    /**
     * The configuration file for the sync configuration to be updated.
     */
    public val configFile: kotlin.String? = builder.configFile
    /**
     * Whether to enable or disable publishing of deployment status to source providers.
     */
    public val publishDeploymentStatus: aws.sdk.kotlin.services.codestarconnections.model.PublishDeploymentStatus? = builder.publishDeploymentStatus
    /**
     * The ID of the repository link for the sync configuration to be updated.
     */
    public val repositoryLinkId: kotlin.String? = builder.repositoryLinkId
    /**
     * The name of the Amazon Web Services resource for the sync configuration to be updated.
     */
    public val resourceName: kotlin.String? = builder.resourceName
    /**
     * The ARN of the IAM role for the sync configuration to be updated.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The sync type for the sync configuration to be updated.
     */
    public val syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = builder.syncType
    /**
     * When to trigger Git sync to begin the stack update.
     */
    public val triggerResourceUpdateOn: aws.sdk.kotlin.services.codestarconnections.model.TriggerResourceUpdateOn? = builder.triggerResourceUpdateOn

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateSyncConfigurationRequest(")
        append("branch=$branch,")
        append("configFile=$configFile,")
        append("publishDeploymentStatus=$publishDeploymentStatus,")
        append("repositoryLinkId=$repositoryLinkId,")
        append("resourceName=$resourceName,")
        append("roleArn=$roleArn,")
        append("syncType=$syncType,")
        append("triggerResourceUpdateOn=$triggerResourceUpdateOn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = branch?.hashCode() ?: 0
        result = 31 * result + (configFile?.hashCode() ?: 0)
        result = 31 * result + (publishDeploymentStatus?.hashCode() ?: 0)
        result = 31 * result + (repositoryLinkId?.hashCode() ?: 0)
        result = 31 * result + (resourceName?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (syncType?.hashCode() ?: 0)
        result = 31 * result + (triggerResourceUpdateOn?.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 UpdateSyncConfigurationRequest

        if (branch != other.branch) return false
        if (configFile != other.configFile) return false
        if (publishDeploymentStatus != other.publishDeploymentStatus) return false
        if (repositoryLinkId != other.repositoryLinkId) return false
        if (resourceName != other.resourceName) return false
        if (roleArn != other.roleArn) return false
        if (syncType != other.syncType) return false
        if (triggerResourceUpdateOn != other.triggerResourceUpdateOn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The branch for the sync configuration to be updated.
         */
        public var branch: kotlin.String? = null
        /**
         * The configuration file for the sync configuration to be updated.
         */
        public var configFile: kotlin.String? = null
        /**
         * Whether to enable or disable publishing of deployment status to source providers.
         */
        public var publishDeploymentStatus: aws.sdk.kotlin.services.codestarconnections.model.PublishDeploymentStatus? = null
        /**
         * The ID of the repository link for the sync configuration to be updated.
         */
        public var repositoryLinkId: kotlin.String? = null
        /**
         * The name of the Amazon Web Services resource for the sync configuration to be updated.
         */
        public var resourceName: kotlin.String? = null
        /**
         * The ARN of the IAM role for the sync configuration to be updated.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The sync type for the sync configuration to be updated.
         */
        public var syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = null
        /**
         * When to trigger Git sync to begin the stack update.
         */
        public var triggerResourceUpdateOn: aws.sdk.kotlin.services.codestarconnections.model.TriggerResourceUpdateOn? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncConfigurationRequest) : this() {
            this.branch = x.branch
            this.configFile = x.configFile
            this.publishDeploymentStatus = x.publishDeploymentStatus
            this.repositoryLinkId = x.repositoryLinkId
            this.resourceName = x.resourceName
            this.roleArn = x.roleArn
            this.syncType = x.syncType
            this.triggerResourceUpdateOn = x.triggerResourceUpdateOn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy