commonMain.aws.sdk.kotlin.services.codeartifact.model.GetRepositoryEndpointRequest.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 GetRepositoryEndpointRequest private constructor(builder: Builder) {
/**
* The name of the domain that contains the repository.
*/
public val domain: kotlin.String? = builder.domain
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.
*/
public val domainOwner: kotlin.String? = builder.domainOwner
/**
* A string that specifies the type of endpoint.
*/
public val endpointType: aws.sdk.kotlin.services.codeartifact.model.EndpointType? = builder.endpointType
/**
* Returns which endpoint of a repository to return. A repository has one endpoint for each package format.
*/
public val format: aws.sdk.kotlin.services.codeartifact.model.PackageFormat? = builder.format
/**
* The name of the repository.
*/
public val repository: kotlin.String? = builder.repository
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.GetRepositoryEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRepositoryEndpointRequest(")
append("domain=$domain,")
append("domainOwner=$domainOwner,")
append("endpointType=$endpointType,")
append("format=$format,")
append("repository=$repository")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (domainOwner?.hashCode() ?: 0)
result = 31 * result + (endpointType?.hashCode() ?: 0)
result = 31 * result + (format?.hashCode() ?: 0)
result = 31 * result + (repository?.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 GetRepositoryEndpointRequest
if (domain != other.domain) return false
if (domainOwner != other.domainOwner) return false
if (endpointType != other.endpointType) return false
if (format != other.format) return false
if (repository != other.repository) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.GetRepositoryEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the domain that contains the repository.
*/
public var domain: kotlin.String? = null
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.
*/
public var domainOwner: kotlin.String? = null
/**
* A string that specifies the type of endpoint.
*/
public var endpointType: aws.sdk.kotlin.services.codeartifact.model.EndpointType? = null
/**
* Returns which endpoint of a repository to return. A repository has one endpoint for each package format.
*/
public var format: aws.sdk.kotlin.services.codeartifact.model.PackageFormat? = null
/**
* The name of the repository.
*/
public var repository: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.GetRepositoryEndpointRequest) : this() {
this.domain = x.domain
this.domainOwner = x.domainOwner
this.endpointType = x.endpointType
this.format = x.format
this.repository = x.repository
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.GetRepositoryEndpointRequest = GetRepositoryEndpointRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}