aws.sdk.kotlin.services.sagemaker.model.ListImagesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
import aws.smithy.kotlin.runtime.time.Instant
class ListImagesRequest private constructor(builder: BuilderImpl) {
/**
* A filter that returns only images created on or after the specified time.
*/
val creationTimeAfter: Instant? = builder.creationTimeAfter
/**
* A filter that returns only images created on or before the specified time.
*/
val creationTimeBefore: Instant? = builder.creationTimeBefore
/**
* A filter that returns only images modified on or after the specified time.
*/
val lastModifiedTimeAfter: Instant? = builder.lastModifiedTimeAfter
/**
* A filter that returns only images modified on or before the specified time.
*/
val lastModifiedTimeBefore: Instant? = builder.lastModifiedTimeBefore
/**
* The maximum number of images to return in the response. The default value is 10.
*/
val maxResults: Int? = builder.maxResults
/**
* A filter that returns only images whose name contains the specified string.
*/
val nameContains: String? = builder.nameContains
/**
* If the previous call to ListImages didn't return the full set of images,
* the call returns a token for getting the next set of images.
*/
val nextToken: String? = builder.nextToken
/**
* The property used to sort results. The default value is CREATION_TIME.
*/
val sortBy: ImageSortBy? = builder.sortBy
/**
* The sort order. The default value is DESCENDING.
*/
val sortOrder: ImageSortOrder? = builder.sortOrder
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ListImagesRequest = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ListImagesRequest(")
append("creationTimeAfter=$creationTimeAfter,")
append("creationTimeBefore=$creationTimeBefore,")
append("lastModifiedTimeAfter=$lastModifiedTimeAfter,")
append("lastModifiedTimeBefore=$lastModifiedTimeBefore,")
append("maxResults=$maxResults,")
append("nameContains=$nameContains,")
append("nextToken=$nextToken,")
append("sortBy=$sortBy,")
append("sortOrder=$sortOrder)")
}
override fun hashCode(): kotlin.Int {
var result = creationTimeAfter?.hashCode() ?: 0
result = 31 * result + (creationTimeBefore?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTimeAfter?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTimeBefore?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nameContains?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (sortBy?.hashCode() ?: 0)
result = 31 * result + (sortOrder?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ListImagesRequest
if (creationTimeAfter != other.creationTimeAfter) return false
if (creationTimeBefore != other.creationTimeBefore) return false
if (lastModifiedTimeAfter != other.lastModifiedTimeAfter) return false
if (lastModifiedTimeBefore != other.lastModifiedTimeBefore) return false
if (maxResults != other.maxResults) return false
if (nameContains != other.nameContains) return false
if (nextToken != other.nextToken) return false
if (sortBy != other.sortBy) return false
if (sortOrder != other.sortOrder) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ListImagesRequest = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): ListImagesRequest
/**
* A filter that returns only images created on or after the specified time.
*/
fun creationTimeAfter(creationTimeAfter: Instant): FluentBuilder
/**
* A filter that returns only images created on or before the specified time.
*/
fun creationTimeBefore(creationTimeBefore: Instant): FluentBuilder
/**
* A filter that returns only images modified on or after the specified time.
*/
fun lastModifiedTimeAfter(lastModifiedTimeAfter: Instant): FluentBuilder
/**
* A filter that returns only images modified on or before the specified time.
*/
fun lastModifiedTimeBefore(lastModifiedTimeBefore: Instant): FluentBuilder
/**
* The maximum number of images to return in the response. The default value is 10.
*/
fun maxResults(maxResults: Int): FluentBuilder
/**
* A filter that returns only images whose name contains the specified string.
*/
fun nameContains(nameContains: String): FluentBuilder
/**
* If the previous call to ListImages didn't return the full set of images,
* the call returns a token for getting the next set of images.
*/
fun nextToken(nextToken: String): FluentBuilder
/**
* The property used to sort results. The default value is CREATION_TIME.
*/
fun sortBy(sortBy: ImageSortBy): FluentBuilder
/**
* The sort order. The default value is DESCENDING.
*/
fun sortOrder(sortOrder: ImageSortOrder): FluentBuilder
}
interface DslBuilder {
/**
* A filter that returns only images created on or after the specified time.
*/
var creationTimeAfter: Instant?
/**
* A filter that returns only images created on or before the specified time.
*/
var creationTimeBefore: Instant?
/**
* A filter that returns only images modified on or after the specified time.
*/
var lastModifiedTimeAfter: Instant?
/**
* A filter that returns only images modified on or before the specified time.
*/
var lastModifiedTimeBefore: Instant?
/**
* The maximum number of images to return in the response. The default value is 10.
*/
var maxResults: Int?
/**
* A filter that returns only images whose name contains the specified string.
*/
var nameContains: String?
/**
* If the previous call to ListImages didn't return the full set of images,
* the call returns a token for getting the next set of images.
*/
var nextToken: String?
/**
* The property used to sort results. The default value is CREATION_TIME.
*/
var sortBy: ImageSortBy?
/**
* The sort order. The default value is DESCENDING.
*/
var sortOrder: ImageSortOrder?
fun build(): ListImagesRequest
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var creationTimeAfter: Instant? = null
override var creationTimeBefore: Instant? = null
override var lastModifiedTimeAfter: Instant? = null
override var lastModifiedTimeBefore: Instant? = null
override var maxResults: Int? = null
override var nameContains: String? = null
override var nextToken: String? = null
override var sortBy: ImageSortBy? = null
override var sortOrder: ImageSortOrder? = null
constructor(x: ListImagesRequest) : this() {
this.creationTimeAfter = x.creationTimeAfter
this.creationTimeBefore = x.creationTimeBefore
this.lastModifiedTimeAfter = x.lastModifiedTimeAfter
this.lastModifiedTimeBefore = x.lastModifiedTimeBefore
this.maxResults = x.maxResults
this.nameContains = x.nameContains
this.nextToken = x.nextToken
this.sortBy = x.sortBy
this.sortOrder = x.sortOrder
}
override fun build(): ListImagesRequest = ListImagesRequest(this)
override fun creationTimeAfter(creationTimeAfter: Instant): FluentBuilder = apply { this.creationTimeAfter = creationTimeAfter }
override fun creationTimeBefore(creationTimeBefore: Instant): FluentBuilder = apply { this.creationTimeBefore = creationTimeBefore }
override fun lastModifiedTimeAfter(lastModifiedTimeAfter: Instant): FluentBuilder = apply { this.lastModifiedTimeAfter = lastModifiedTimeAfter }
override fun lastModifiedTimeBefore(lastModifiedTimeBefore: Instant): FluentBuilder = apply { this.lastModifiedTimeBefore = lastModifiedTimeBefore }
override fun maxResults(maxResults: Int): FluentBuilder = apply { this.maxResults = maxResults }
override fun nameContains(nameContains: String): FluentBuilder = apply { this.nameContains = nameContains }
override fun nextToken(nextToken: String): FluentBuilder = apply { this.nextToken = nextToken }
override fun sortBy(sortBy: ImageSortBy): FluentBuilder = apply { this.sortBy = sortBy }
override fun sortOrder(sortOrder: ImageSortOrder): FluentBuilder = apply { this.sortOrder = sortOrder }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy