commonMain.aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest.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
public class CreateServiceSyncConfigRequest private constructor(builder: Builder) {
/**
* The repository branch for your Proton Ops file.
*/
public val branch: kotlin.String = requireNotNull(builder.branch) { "A non-null value must be provided for branch" }
/**
* The path to the Proton Ops file.
*/
public val filePath: kotlin.String = requireNotNull(builder.filePath) { "A non-null value must be provided for filePath" }
/**
* The repository name.
*/
public val repositoryName: kotlin.String = requireNotNull(builder.repositoryName) { "A non-null value must be provided for repositoryName" }
/**
* The provider type for your repository.
*/
public val repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider = requireNotNull(builder.repositoryProvider) { "A non-null value must be provided for repositoryProvider" }
/**
* The name of the service the Proton Ops file is for.
*/
public val serviceName: kotlin.String = requireNotNull(builder.serviceName) { "A non-null value must be provided for serviceName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateServiceSyncConfigRequest(")
append("branch=$branch,")
append("filePath=$filePath,")
append("repositoryName=$repositoryName,")
append("repositoryProvider=$repositoryProvider,")
append("serviceName=$serviceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch.hashCode()
result = 31 * result + (filePath.hashCode())
result = 31 * result + (repositoryName.hashCode())
result = 31 * result + (repositoryProvider.hashCode())
result = 31 * result + (serviceName.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 CreateServiceSyncConfigRequest
if (branch != other.branch) return false
if (filePath != other.filePath) return false
if (repositoryName != other.repositoryName) return false
if (repositoryProvider != other.repositoryProvider) return false
if (serviceName != other.serviceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The repository branch for your Proton Ops file.
*/
public var branch: kotlin.String? = null
/**
* The path to the Proton Ops file.
*/
public var filePath: kotlin.String? = null
/**
* The repository name.
*/
public var repositoryName: kotlin.String? = null
/**
* The provider type for your repository.
*/
public var repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = null
/**
* The name of the service the Proton Ops file is for.
*/
public var serviceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest) : this() {
this.branch = x.branch
this.filePath = x.filePath
this.repositoryName = x.repositoryName
this.repositoryProvider = x.repositoryProvider
this.serviceName = x.serviceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest = CreateServiceSyncConfigRequest(this)
internal fun correctErrors(): Builder {
if (branch == null) branch = ""
if (filePath == null) filePath = ""
if (repositoryName == null) repositoryName = ""
if (repositoryProvider == null) repositoryProvider = RepositoryProvider.SdkUnknown("no value provided")
if (serviceName == null) serviceName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy