commonMain.aws.sdk.kotlin.services.proton.model.RepositoryBranchInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Detail input data for a linked repository branch.
*/
public class RepositoryBranchInput private constructor(builder: Builder) {
/**
* The repository branch.
*/
public val branch: kotlin.String = requireNotNull(builder.branch) { "A non-null value must be provided for branch" }
/**
* The repository name.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The repository provider.
*/
public val provider: aws.sdk.kotlin.services.proton.model.RepositoryProvider = requireNotNull(builder.provider) { "A non-null value must be provided for provider" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.RepositoryBranchInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RepositoryBranchInput(")
append("branch=$branch,")
append("name=$name,")
append("provider=$provider")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch.hashCode()
result = 31 * result + (name.hashCode())
result = 31 * result + (provider.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 RepositoryBranchInput
if (branch != other.branch) return false
if (name != other.name) return false
if (provider != other.provider) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.RepositoryBranchInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The repository branch.
*/
public var branch: kotlin.String? = null
/**
* The repository name.
*/
public var name: kotlin.String? = null
/**
* The repository provider.
*/
public var provider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.RepositoryBranchInput) : this() {
this.branch = x.branch
this.name = x.name
this.provider = x.provider
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.RepositoryBranchInput = RepositoryBranchInput(this)
internal fun correctErrors(): Builder {
if (branch == null) branch = ""
if (name == null) name = ""
if (provider == null) provider = RepositoryProvider.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy