
commonMain.aws.sdk.kotlin.services.codestarconnections.model.CreateSyncConfigurationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codestarconnections-jvm Show documentation
Show all versions of codestarconnections-jvm Show documentation
The AWS SDK for Kotlin client for CodeStar connections
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestarconnections.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateSyncConfigurationRequest private constructor(builder: Builder) {
/**
* The branch in the repository from which changes will be synced.
*/
public val branch: kotlin.String? = builder.branch
/**
* The file name of the configuration file that manages syncing between the connection and the repository. This configuration file is stored in the repository.
*/
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 created for the connection. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
*/
public val repositoryLinkId: kotlin.String? = builder.repositoryLinkId
/**
* The name of the Amazon Web Services resource (for example, a CloudFormation stack in the case of CFN_STACK_SYNC) that will be synchronized from the linked repository.
*/
public val resourceName: kotlin.String? = builder.resourceName
/**
* The ARN of the IAM role that grants permission for Amazon Web Services to use Git sync to update a given Amazon Web Services resource on your behalf.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The type of sync configuration.
*/
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.CreateSyncConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSyncConfigurationRequest(")
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 CreateSyncConfigurationRequest
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.CreateSyncConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The branch in the repository from which changes will be synced.
*/
public var branch: kotlin.String? = null
/**
* The file name of the configuration file that manages syncing between the connection and the repository. This configuration file is stored in the repository.
*/
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 created for the connection. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
*/
public var repositoryLinkId: kotlin.String? = null
/**
* The name of the Amazon Web Services resource (for example, a CloudFormation stack in the case of CFN_STACK_SYNC) that will be synchronized from the linked repository.
*/
public var resourceName: kotlin.String? = null
/**
* The ARN of the IAM role that grants permission for Amazon Web Services to use Git sync to update a given Amazon Web Services resource on your behalf.
*/
public var roleArn: kotlin.String? = null
/**
* The type of sync configuration.
*/
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.CreateSyncConfigurationRequest) : 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.CreateSyncConfigurationRequest = CreateSyncConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy