commonMain.aws.sdk.kotlin.services.dataexchange.model.UpdateDataSetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateDataSetResponse private constructor(builder: Builder) {
/**
* The ARN for the data set.
*/
public val arn: kotlin.String? = builder.arn
/**
* The type of asset that is added to a data set.
*/
public val assetType: aws.sdk.kotlin.services.dataexchange.model.AssetType? = builder.assetType
/**
* The date and time that the data set was created, in ISO 8601 format.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The description for the data set.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier for the data set.
*/
public val id: kotlin.String? = builder.id
/**
* The name of the data set.
*/
public val name: kotlin.String? = builder.name
/**
* A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).
*/
public val origin: aws.sdk.kotlin.services.dataexchange.model.Origin? = builder.origin
/**
* If the origin of this data set is ENTITLED, includes the details for the product on AWS Marketplace.
*/
public val originDetails: aws.sdk.kotlin.services.dataexchange.model.OriginDetails? = builder.originDetails
/**
* The data set ID of the owned data set corresponding to the entitled data set being viewed. This parameter is returned when a data set owner is viewing the entitled copy of its owned data set.
*/
public val sourceId: kotlin.String? = builder.sourceId
/**
* The date and time that the data set was last updated, in ISO 8601 format.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.UpdateDataSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDataSetResponse(")
append("arn=$arn,")
append("assetType=$assetType,")
append("createdAt=$createdAt,")
append("description=$description,")
append("id=$id,")
append("name=$name,")
append("origin=$origin,")
append("originDetails=$originDetails,")
append("sourceId=$sourceId,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (assetType?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (origin?.hashCode() ?: 0)
result = 31 * result + (originDetails?.hashCode() ?: 0)
result = 31 * result + (sourceId?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 UpdateDataSetResponse
if (arn != other.arn) return false
if (assetType != other.assetType) return false
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (id != other.id) return false
if (name != other.name) return false
if (origin != other.origin) return false
if (originDetails != other.originDetails) return false
if (sourceId != other.sourceId) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.UpdateDataSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN for the data set.
*/
public var arn: kotlin.String? = null
/**
* The type of asset that is added to a data set.
*/
public var assetType: aws.sdk.kotlin.services.dataexchange.model.AssetType? = null
/**
* The date and time that the data set was created, in ISO 8601 format.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description for the data set.
*/
public var description: kotlin.String? = null
/**
* The unique identifier for the data set.
*/
public var id: kotlin.String? = null
/**
* The name of the data set.
*/
public var name: kotlin.String? = null
/**
* A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).
*/
public var origin: aws.sdk.kotlin.services.dataexchange.model.Origin? = null
/**
* If the origin of this data set is ENTITLED, includes the details for the product on AWS Marketplace.
*/
public var originDetails: aws.sdk.kotlin.services.dataexchange.model.OriginDetails? = null
/**
* The data set ID of the owned data set corresponding to the entitled data set being viewed. This parameter is returned when a data set owner is viewing the entitled copy of its owned data set.
*/
public var sourceId: kotlin.String? = null
/**
* The date and time that the data set was last updated, in ISO 8601 format.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.UpdateDataSetResponse) : this() {
this.arn = x.arn
this.assetType = x.assetType
this.createdAt = x.createdAt
this.description = x.description
this.id = x.id
this.name = x.name
this.origin = x.origin
this.originDetails = x.originDetails
this.sourceId = x.sourceId
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.UpdateDataSetResponse = UpdateDataSetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.OriginDetails] inside the given [block]
*/
public fun originDetails(block: aws.sdk.kotlin.services.dataexchange.model.OriginDetails.Builder.() -> kotlin.Unit) {
this.originDetails = aws.sdk.kotlin.services.dataexchange.model.OriginDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}