commonMain.aws.sdk.kotlin.services.proton.model.UpdateAccountSettingsRequest.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateAccountSettingsRequest private constructor(builder: Builder) {
/**
* Set to `true` to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.
*/
public val deletePipelineProvisioningRepository: kotlin.Boolean? = builder.deletePipelineProvisioningRepository
/**
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.
*/
public val pipelineCodebuildRoleArn: kotlin.String? = builder.pipelineCodebuildRoleArn
/**
* A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
* To remove a previously configured repository, set `deletePipelineProvisioningRepository` to `true`, and don't set `pipelineProvisioningRepository`.
*/
public val pipelineProvisioningRepository: aws.sdk.kotlin.services.proton.model.RepositoryBranchInput? = builder.pipelineProvisioningRepository
/**
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
* To remove a previously configured ARN, specify an empty string.
*/
public val pipelineServiceRoleArn: kotlin.String? = builder.pipelineServiceRoleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.UpdateAccountSettingsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAccountSettingsRequest(")
append("deletePipelineProvisioningRepository=$deletePipelineProvisioningRepository,")
append("pipelineCodebuildRoleArn=$pipelineCodebuildRoleArn,")
append("pipelineProvisioningRepository=$pipelineProvisioningRepository,")
append("pipelineServiceRoleArn=$pipelineServiceRoleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deletePipelineProvisioningRepository?.hashCode() ?: 0
result = 31 * result + (pipelineCodebuildRoleArn?.hashCode() ?: 0)
result = 31 * result + (pipelineProvisioningRepository?.hashCode() ?: 0)
result = 31 * result + (pipelineServiceRoleArn?.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 UpdateAccountSettingsRequest
if (deletePipelineProvisioningRepository != other.deletePipelineProvisioningRepository) return false
if (pipelineCodebuildRoleArn != other.pipelineCodebuildRoleArn) return false
if (pipelineProvisioningRepository != other.pipelineProvisioningRepository) return false
if (pipelineServiceRoleArn != other.pipelineServiceRoleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.UpdateAccountSettingsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Set to `true` to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.
*/
public var deletePipelineProvisioningRepository: kotlin.Boolean? = null
/**
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.
*/
public var pipelineCodebuildRoleArn: kotlin.String? = null
/**
* A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
* To remove a previously configured repository, set `deletePipelineProvisioningRepository` to `true`, and don't set `pipelineProvisioningRepository`.
*/
public var pipelineProvisioningRepository: aws.sdk.kotlin.services.proton.model.RepositoryBranchInput? = null
/**
* The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.
*
* To remove a previously configured ARN, specify an empty string.
*/
public var pipelineServiceRoleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.UpdateAccountSettingsRequest) : this() {
this.deletePipelineProvisioningRepository = x.deletePipelineProvisioningRepository
this.pipelineCodebuildRoleArn = x.pipelineCodebuildRoleArn
this.pipelineProvisioningRepository = x.pipelineProvisioningRepository
this.pipelineServiceRoleArn = x.pipelineServiceRoleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.UpdateAccountSettingsRequest = UpdateAccountSettingsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.proton.model.RepositoryBranchInput] inside the given [block]
*/
public fun pipelineProvisioningRepository(block: aws.sdk.kotlin.services.proton.model.RepositoryBranchInput.Builder.() -> kotlin.Unit) {
this.pipelineProvisioningRepository = aws.sdk.kotlin.services.proton.model.RepositoryBranchInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy