
commonMain.aws.sdk.kotlin.services.ecr.model.GetRepositoryPolicyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
public class GetRepositoryPolicyResponse private constructor(builder: Builder) {
/**
* The JSON repository policy text associated with the repository.
*/
public val policyText: kotlin.String? = builder.policyText
/**
* The registry ID associated with the request.
*/
public val registryId: kotlin.String? = builder.registryId
/**
* The repository name associated with the request.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.GetRepositoryPolicyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRepositoryPolicyResponse(")
append("policyText=$policyText,")
append("registryId=$registryId,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = policyText?.hashCode() ?: 0
result = 31 * result + (registryId?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.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 GetRepositoryPolicyResponse
if (policyText != other.policyText) return false
if (registryId != other.registryId) return false
if (repositoryName != other.repositoryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.GetRepositoryPolicyResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The JSON repository policy text associated with the repository.
*/
public var policyText: kotlin.String? = null
/**
* The registry ID associated with the request.
*/
public var registryId: kotlin.String? = null
/**
* The repository name associated with the request.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.GetRepositoryPolicyResponse) : this() {
this.policyText = x.policyText
this.registryId = x.registryId
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.GetRepositoryPolicyResponse = GetRepositoryPolicyResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy