
commonMain.aws.sdk.kotlin.services.ecr.model.GetLifecyclePolicyPreviewResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
public class GetLifecyclePolicyPreviewResponse private constructor(builder: Builder) {
/**
* The JSON lifecycle policy text.
*/
public val lifecyclePolicyText: kotlin.String? = builder.lifecyclePolicyText
/**
* The `nextToken` value to include in a future `GetLifecyclePolicyPreview` request. When the results of a `GetLifecyclePolicyPreview` request exceed `maxResults`, this value can be used to retrieve the next page of results. This value is `null` when there are no more results to return.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The results of the lifecycle policy preview request.
*/
public val previewResults: List? = builder.previewResults
/**
* 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
/**
* The status of the lifecycle policy preview request.
*/
public val status: aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewStatus? = builder.status
/**
* The list of images that is returned as a result of the action.
*/
public val summary: aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewSummary? = builder.summary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.GetLifecyclePolicyPreviewResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLifecyclePolicyPreviewResponse(")
append("lifecyclePolicyText=$lifecyclePolicyText,")
append("nextToken=$nextToken,")
append("previewResults=$previewResults,")
append("registryId=$registryId,")
append("repositoryName=$repositoryName,")
append("status=$status,")
append("summary=$summary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lifecyclePolicyText?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (previewResults?.hashCode() ?: 0)
result = 31 * result + (registryId?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (summary?.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 GetLifecyclePolicyPreviewResponse
if (lifecyclePolicyText != other.lifecyclePolicyText) return false
if (nextToken != other.nextToken) return false
if (previewResults != other.previewResults) return false
if (registryId != other.registryId) return false
if (repositoryName != other.repositoryName) return false
if (status != other.status) return false
if (summary != other.summary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.GetLifecyclePolicyPreviewResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The JSON lifecycle policy text.
*/
public var lifecyclePolicyText: kotlin.String? = null
/**
* The `nextToken` value to include in a future `GetLifecyclePolicyPreview` request. When the results of a `GetLifecyclePolicyPreview` request exceed `maxResults`, this value can be used to retrieve the next page of results. This value is `null` when there are no more results to return.
*/
public var nextToken: kotlin.String? = null
/**
* The results of the lifecycle policy preview request.
*/
public var previewResults: List? = 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
/**
* The status of the lifecycle policy preview request.
*/
public var status: aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewStatus? = null
/**
* The list of images that is returned as a result of the action.
*/
public var summary: aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewSummary? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.GetLifecyclePolicyPreviewResponse) : this() {
this.lifecyclePolicyText = x.lifecyclePolicyText
this.nextToken = x.nextToken
this.previewResults = x.previewResults
this.registryId = x.registryId
this.repositoryName = x.repositoryName
this.status = x.status
this.summary = x.summary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.GetLifecyclePolicyPreviewResponse = GetLifecyclePolicyPreviewResponse(this)
/**
* construct an [aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewSummary] inside the given [block]
*/
public fun summary(block: aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewSummary.Builder.() -> kotlin.Unit) {
this.summary = aws.sdk.kotlin.services.ecr.model.LifecyclePolicyPreviewSummary.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy