commonMain.aws.sdk.kotlin.services.partnercentralselling.model.LastModifiedDate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partnercentralselling-jvm Show documentation
Show all versions of partnercentralselling-jvm Show documentation
The AWS SDK for Kotlin client for PartnerCentral Selling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.partnercentralselling.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Defines a filter to retrieve opportunities based on the last modified date. This filter is useful for tracking changes or updates to opportunities over time.
*/
public class LastModifiedDate private constructor(builder: Builder) {
/**
* Specifies the date after which the opportunities were modified. Use this filter to retrieve only those opportunities that were modified after a given timestamp.
*/
public val afterLastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.afterLastModifiedDate
/**
* Specifies the date before which the opportunities were modified. Use this filter to retrieve only those opportunities that were modified before a given timestamp.
*/
public val beforeLastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.beforeLastModifiedDate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.partnercentralselling.model.LastModifiedDate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LastModifiedDate(")
append("afterLastModifiedDate=$afterLastModifiedDate,")
append("beforeLastModifiedDate=$beforeLastModifiedDate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterLastModifiedDate?.hashCode() ?: 0
result = 31 * result + (beforeLastModifiedDate?.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 LastModifiedDate
if (afterLastModifiedDate != other.afterLastModifiedDate) return false
if (beforeLastModifiedDate != other.beforeLastModifiedDate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.partnercentralselling.model.LastModifiedDate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the date after which the opportunities were modified. Use this filter to retrieve only those opportunities that were modified after a given timestamp.
*/
public var afterLastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specifies the date before which the opportunities were modified. Use this filter to retrieve only those opportunities that were modified before a given timestamp.
*/
public var beforeLastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.LastModifiedDate) : this() {
this.afterLastModifiedDate = x.afterLastModifiedDate
this.beforeLastModifiedDate = x.beforeLastModifiedDate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.partnercentralselling.model.LastModifiedDate = LastModifiedDate(this)
internal fun correctErrors(): Builder {
return this
}
}
}