commonMain.aws.sdk.kotlin.services.outposts.model.LineItem.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a line item.
*/
public class LineItem private constructor(builder: Builder) {
/**
* Information about assets.
*/
public val assetInformationList: List? = builder.assetInformationList
/**
* The ID of the catalog item.
*/
public val catalogItemId: kotlin.String? = builder.catalogItemId
/**
* The ID of the line item.
*/
public val lineItemId: kotlin.String? = builder.lineItemId
/**
* The ID of the previous line item.
*/
public val previousLineItemId: kotlin.String? = builder.previousLineItemId
/**
* The ID of the previous order.
*/
public val previousOrderId: kotlin.String? = builder.previousOrderId
/**
* The quantity of the line item.
*/
public val quantity: kotlin.Int? = builder.quantity
/**
* Information about a line item shipment.
*/
public val shipmentInformation: aws.sdk.kotlin.services.outposts.model.ShipmentInformation? = builder.shipmentInformation
/**
* The status of the line item.
*/
public val status: aws.sdk.kotlin.services.outposts.model.LineItemStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.LineItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LineItem(")
append("assetInformationList=$assetInformationList,")
append("catalogItemId=$catalogItemId,")
append("lineItemId=$lineItemId,")
append("previousLineItemId=$previousLineItemId,")
append("previousOrderId=$previousOrderId,")
append("quantity=$quantity,")
append("shipmentInformation=$shipmentInformation,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetInformationList?.hashCode() ?: 0
result = 31 * result + (catalogItemId?.hashCode() ?: 0)
result = 31 * result + (lineItemId?.hashCode() ?: 0)
result = 31 * result + (previousLineItemId?.hashCode() ?: 0)
result = 31 * result + (previousOrderId?.hashCode() ?: 0)
result = 31 * result + (quantity ?: 0)
result = 31 * result + (shipmentInformation?.hashCode() ?: 0)
result = 31 * result + (status?.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 LineItem
if (assetInformationList != other.assetInformationList) return false
if (catalogItemId != other.catalogItemId) return false
if (lineItemId != other.lineItemId) return false
if (previousLineItemId != other.previousLineItemId) return false
if (previousOrderId != other.previousOrderId) return false
if (quantity != other.quantity) return false
if (shipmentInformation != other.shipmentInformation) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.LineItem = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about assets.
*/
public var assetInformationList: List? = null
/**
* The ID of the catalog item.
*/
public var catalogItemId: kotlin.String? = null
/**
* The ID of the line item.
*/
public var lineItemId: kotlin.String? = null
/**
* The ID of the previous line item.
*/
public var previousLineItemId: kotlin.String? = null
/**
* The ID of the previous order.
*/
public var previousOrderId: kotlin.String? = null
/**
* The quantity of the line item.
*/
public var quantity: kotlin.Int? = null
/**
* Information about a line item shipment.
*/
public var shipmentInformation: aws.sdk.kotlin.services.outposts.model.ShipmentInformation? = null
/**
* The status of the line item.
*/
public var status: aws.sdk.kotlin.services.outposts.model.LineItemStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.LineItem) : this() {
this.assetInformationList = x.assetInformationList
this.catalogItemId = x.catalogItemId
this.lineItemId = x.lineItemId
this.previousLineItemId = x.previousLineItemId
this.previousOrderId = x.previousOrderId
this.quantity = x.quantity
this.shipmentInformation = x.shipmentInformation
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.LineItem = LineItem(this)
/**
* construct an [aws.sdk.kotlin.services.outposts.model.ShipmentInformation] inside the given [block]
*/
public fun shipmentInformation(block: aws.sdk.kotlin.services.outposts.model.ShipmentInformation.Builder.() -> kotlin.Unit) {
this.shipmentInformation = aws.sdk.kotlin.services.outposts.model.ShipmentInformation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy