commonMain.aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codeartifact-jvm Show documentation
Show all versions of codeartifact-jvm Show documentation
The AWS SDK for Kotlin client for codeartifact
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeartifact.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdatePackageGroupOriginConfigurationRequest private constructor(builder: Builder) {
/**
* The repository name and restrictions to add to the allowed repository list of the specified package group.
*/
public val addAllowedRepositories: List? = builder.addAllowedRepositories
/**
* The name of the domain which contains the package group for which to update the origin configuration.
*/
public val domain: kotlin.String? = builder.domain
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
*/
public val domainOwner: kotlin.String? = builder.domainOwner
/**
* The pattern of the package group for which to update the origin configuration.
*/
public val packageGroup: kotlin.String? = builder.packageGroup
/**
* The repository name and restrictions to remove from the allowed repository list of the specified package group.
*/
public val removeAllowedRepositories: List? = builder.removeAllowedRepositories
/**
* The origin configuration settings that determine how package versions can enter repositories.
*/
public val restrictions: Map? = builder.restrictions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePackageGroupOriginConfigurationRequest(")
append("addAllowedRepositories=$addAllowedRepositories,")
append("domain=$domain,")
append("domainOwner=$domainOwner,")
append("packageGroup=$packageGroup,")
append("removeAllowedRepositories=$removeAllowedRepositories,")
append("restrictions=$restrictions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addAllowedRepositories?.hashCode() ?: 0
result = 31 * result + (domain?.hashCode() ?: 0)
result = 31 * result + (domainOwner?.hashCode() ?: 0)
result = 31 * result + (packageGroup?.hashCode() ?: 0)
result = 31 * result + (removeAllowedRepositories?.hashCode() ?: 0)
result = 31 * result + (restrictions?.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 UpdatePackageGroupOriginConfigurationRequest
if (addAllowedRepositories != other.addAllowedRepositories) return false
if (domain != other.domain) return false
if (domainOwner != other.domainOwner) return false
if (packageGroup != other.packageGroup) return false
if (removeAllowedRepositories != other.removeAllowedRepositories) return false
if (restrictions != other.restrictions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The repository name and restrictions to add to the allowed repository list of the specified package group.
*/
public var addAllowedRepositories: List? = null
/**
* The name of the domain which contains the package group for which to update the origin configuration.
*/
public var domain: kotlin.String? = null
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
*/
public var domainOwner: kotlin.String? = null
/**
* The pattern of the package group for which to update the origin configuration.
*/
public var packageGroup: kotlin.String? = null
/**
* The repository name and restrictions to remove from the allowed repository list of the specified package group.
*/
public var removeAllowedRepositories: List? = null
/**
* The origin configuration settings that determine how package versions can enter repositories.
*/
public var restrictions: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationRequest) : this() {
this.addAllowedRepositories = x.addAllowedRepositories
this.domain = x.domain
this.domainOwner = x.domainOwner
this.packageGroup = x.packageGroup
this.removeAllowedRepositories = x.removeAllowedRepositories
this.restrictions = x.restrictions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationRequest = UpdatePackageGroupOriginConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}