commonMain.aws.sdk.kotlin.services.codestarconnections.model.GetRepositorySyncStatusRequest.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 GetRepositorySyncStatusRequest private constructor(builder: Builder) {
/**
* The branch of the repository link for the requested repository sync status.
*/
public val branch: kotlin.String? = builder.branch
/**
* The repository link ID for the requested repository sync status.
*/
public val repositoryLinkId: kotlin.String? = builder.repositoryLinkId
/**
* The sync type of the requested sync status.
*/
public val syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = builder.syncType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestarconnections.model.GetRepositorySyncStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRepositorySyncStatusRequest(")
append("branch=$branch,")
append("repositoryLinkId=$repositoryLinkId,")
append("syncType=$syncType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch?.hashCode() ?: 0
result = 31 * result + (repositoryLinkId?.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 (repositoryLinkId != other.repositoryLinkId) return false
if (syncType != other.syncType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestarconnections.model.GetRepositorySyncStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The branch of the repository link for the requested repository sync status.
*/
public var branch: kotlin.String? = null
/**
* The repository link ID for the requested repository sync status.
*/
public var repositoryLinkId: kotlin.String? = null
/**
* The sync type of the requested sync status.
*/
public var syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.GetRepositorySyncStatusRequest) : this() {
this.branch = x.branch
this.repositoryLinkId = x.repositoryLinkId
this.syncType = x.syncType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestarconnections.model.GetRepositorySyncStatusRequest = GetRepositorySyncStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy