commonMain.aws.sdk.kotlin.services.proton.model.CreateServiceSyncConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
public class CreateServiceSyncConfigRequest private constructor(builder: Builder) {
/**
* The repository branch for your Proton Ops file.
*/
public val branch: kotlin.String? = builder.branch
/**
* The path to the Proton Ops file.
*/
public val filePath: kotlin.String? = builder.filePath
/**
* The repository name.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
/**
* The provider type for your repository.
*/
public val repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = builder.repositoryProvider
/**
* The name of the service the Proton Ops file is for.
*/
public val serviceName: kotlin.String? = builder.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() ?: 0
result = 31 * result + (filePath?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.hashCode() ?: 0)
result = 31 * result + (repositoryProvider?.hashCode() ?: 0)
result = 31 * result + (serviceName?.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 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()
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)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy