commonMain.aws.sdk.kotlin.services.snowball.model.Shipment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS Kotlin client for Snowball
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The `Status` and `TrackingNumber` information for an inbound or outbound shipment.
*/
public class Shipment private constructor(builder: Builder) {
/**
* Status information for a shipment.
*/
public val status: kotlin.String? = builder.status
/**
* The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snow device as the carrier transports it.
*
* For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
*/
public val trackingNumber: kotlin.String? = builder.trackingNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.Shipment = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Shipment(")
append("status=$status,")
append("trackingNumber=$trackingNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = status?.hashCode() ?: 0
result = 31 * result + (trackingNumber?.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 Shipment
if (status != other.status) return false
if (trackingNumber != other.trackingNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.Shipment = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Status information for a shipment.
*/
public var status: kotlin.String? = null
/**
* The tracking number for this job. Using this tracking number with your region's carrier's website, you can track a Snow device as the carrier transports it.
*
* For India, the carrier is Amazon Logistics. For all other regions, UPS is the carrier.
*/
public var trackingNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.Shipment) : this() {
this.status = x.status
this.trackingNumber = x.trackingNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.Shipment = Shipment(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy