
commonMain.aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration.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
/**
* The package group origin configuration that determines how package versions can enter repositories.
*/
public class PackageGroupOriginConfiguration private constructor(builder: Builder) {
/**
* 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.PackageGroupOriginConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PackageGroupOriginConfiguration(")
append("restrictions=$restrictions")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 PackageGroupOriginConfiguration
if (restrictions != other.restrictions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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.PackageGroupOriginConfiguration) : this() {
this.restrictions = x.restrictions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration = PackageGroupOriginConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy