commonMain.aws.sdk.kotlin.services.codedeploy.model.GitHubLocation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the location of application artifacts stored in GitHub.
*/
public class GitHubLocation private constructor(builder: Builder) {
/**
* The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
*/
public val commitId: kotlin.String? = builder.commitId
/**
* The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
*
* Specified as account/repository.
*/
public val repository: kotlin.String? = builder.repository
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.GitHubLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GitHubLocation(")
append("commitId=$commitId,")
append("repository=$repository")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitId?.hashCode() ?: 0
result = 31 * result + (repository?.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 GitHubLocation
if (commitId != other.commitId) return false
if (repository != other.repository) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.GitHubLocation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
*/
public var commitId: kotlin.String? = null
/**
* The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
*
* Specified as account/repository.
*/
public var repository: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.GitHubLocation) : this() {
this.commitId = x.commitId
this.repository = x.repository
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.GitHubLocation = GitHubLocation(this)
internal fun correctErrors(): Builder {
return this
}
}
}