commonMain.aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The description of the package group.
*/
public class PackageGroupDescription private constructor(builder: Builder) {
/**
* The ARN of the package group.
*/
public val arn: kotlin.String? = builder.arn
/**
* The contact information of the package group.
*/
public val contactInfo: kotlin.String? = builder.contactInfo
/**
* A timestamp that represents the date and time the package group was created.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* The description of the package group.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the domain that contains the package group.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* 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 package group origin configuration that determines how package versions can enter repositories.
*/
public val originConfiguration: aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration? = builder.originConfiguration
/**
* The direct parent package group of the package group.
*/
public val parent: aws.sdk.kotlin.services.codeartifact.model.PackageGroupReference? = builder.parent
/**
* The pattern of the package group. The pattern determines which packages are associated with the package group.
*/
public val pattern: kotlin.String? = builder.pattern
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PackageGroupDescription(")
append("arn=$arn,")
append("contactInfo=$contactInfo,")
append("createdTime=$createdTime,")
append("description=$description,")
append("domainName=$domainName,")
append("domainOwner=$domainOwner,")
append("originConfiguration=$originConfiguration,")
append("parent=$parent,")
append("pattern=$pattern")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (contactInfo?.hashCode() ?: 0)
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (domainOwner?.hashCode() ?: 0)
result = 31 * result + (originConfiguration?.hashCode() ?: 0)
result = 31 * result + (parent?.hashCode() ?: 0)
result = 31 * result + (pattern?.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 PackageGroupDescription
if (arn != other.arn) return false
if (contactInfo != other.contactInfo) return false
if (createdTime != other.createdTime) return false
if (description != other.description) return false
if (domainName != other.domainName) return false
if (domainOwner != other.domainOwner) return false
if (originConfiguration != other.originConfiguration) return false
if (parent != other.parent) return false
if (pattern != other.pattern) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the package group.
*/
public var arn: kotlin.String? = null
/**
* The contact information of the package group.
*/
public var contactInfo: kotlin.String? = null
/**
* A timestamp that represents the date and time the package group was created.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the package group.
*/
public var description: kotlin.String? = null
/**
* The name of the domain that contains the package group.
*/
public var domainName: 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 package group origin configuration that determines how package versions can enter repositories.
*/
public var originConfiguration: aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration? = null
/**
* The direct parent package group of the package group.
*/
public var parent: aws.sdk.kotlin.services.codeartifact.model.PackageGroupReference? = null
/**
* The pattern of the package group. The pattern determines which packages are associated with the package group.
*/
public var pattern: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription) : this() {
this.arn = x.arn
this.contactInfo = x.contactInfo
this.createdTime = x.createdTime
this.description = x.description
this.domainName = x.domainName
this.domainOwner = x.domainOwner
this.originConfiguration = x.originConfiguration
this.parent = x.parent
this.pattern = x.pattern
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription = PackageGroupDescription(this)
/**
* construct an [aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration] inside the given [block]
*/
public fun originConfiguration(block: aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration.Builder.() -> kotlin.Unit) {
this.originConfiguration = aws.sdk.kotlin.services.codeartifact.model.PackageGroupOriginConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.codeartifact.model.PackageGroupReference] inside the given [block]
*/
public fun parent(block: aws.sdk.kotlin.services.codeartifact.model.PackageGroupReference.Builder.() -> kotlin.Unit) {
this.parent = aws.sdk.kotlin.services.codeartifact.model.PackageGroupReference.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}