com.amazonaws.services.snowball.model.ShippingDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-snowball Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.snowball.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A job's shipping information, including inbound and outbound tracking numbers and shipping speed options.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ShippingDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*/
private String shippingOption;
/**
*
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon Web
* Services for a particular job.
*
*/
private Shipment inboundShipment;
/**
*
* The Status
and TrackingNumber
values for a Snow device being delivered to the address
* that you specified for a particular job.
*
*/
private Shipment outboundShipment;
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device
* from the job's creation date. This speed represents how quickly it moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered
* in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express
* are delivered in about a day. In addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
* @see ShippingOption
*/
public void setShippingOption(String shippingOption) {
this.shippingOption = shippingOption;
}
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*
* @return The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device
* from the job's creation date. This speed represents how quickly it moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered
* in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express
* are delivered in about a day. In addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
* @see ShippingOption
*/
public String getShippingOption() {
return this.shippingOption;
}
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device
* from the job's creation date. This speed represents how quickly it moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered
* in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express
* are delivered in about a day. In addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ShippingOption
*/
public ShippingDetails withShippingOption(String shippingOption) {
setShippingOption(shippingOption);
return this;
}
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device
* from the job's creation date. This speed represents how quickly it moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered
* in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express
* are delivered in about a day. In addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
* @see ShippingOption
*/
public void setShippingOption(ShippingOption shippingOption) {
withShippingOption(shippingOption);
}
/**
*
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device from the
* job's creation date. This speed represents how quickly it moves to its destination while in transit. Regional
* shipping speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about
* a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are
* delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically
* takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for a particular job. This speed doesn't dictate how soon you'll get the Snow device
* from the job's creation date. This speed represents how quickly it moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered
* in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express
* are delivered in about a day. In addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snow devices are delivered in one to seven days.
*
*
* -
*
* In the United States of America (US), you have access to one-day shipping and two-day shipping.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ShippingOption
*/
public ShippingDetails withShippingOption(ShippingOption shippingOption) {
this.shippingOption = shippingOption.toString();
return this;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon Web
* Services for a particular job.
*
*
* @param inboundShipment
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon
* Web Services for a particular job.
*/
public void setInboundShipment(Shipment inboundShipment) {
this.inboundShipment = inboundShipment;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon Web
* Services for a particular job.
*
*
* @return The Status
and TrackingNumber
values for a Snow device being returned to Amazon
* Web Services for a particular job.
*/
public Shipment getInboundShipment() {
return this.inboundShipment;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon Web
* Services for a particular job.
*
*
* @param inboundShipment
* The Status
and TrackingNumber
values for a Snow device being returned to Amazon
* Web Services for a particular job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ShippingDetails withInboundShipment(Shipment inboundShipment) {
setInboundShipment(inboundShipment);
return this;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being delivered to the address
* that you specified for a particular job.
*
*
* @param outboundShipment
* The Status
and TrackingNumber
values for a Snow device being delivered to the
* address that you specified for a particular job.
*/
public void setOutboundShipment(Shipment outboundShipment) {
this.outboundShipment = outboundShipment;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being delivered to the address
* that you specified for a particular job.
*
*
* @return The Status
and TrackingNumber
values for a Snow device being delivered to the
* address that you specified for a particular job.
*/
public Shipment getOutboundShipment() {
return this.outboundShipment;
}
/**
*
* The Status
and TrackingNumber
values for a Snow device being delivered to the address
* that you specified for a particular job.
*
*
* @param outboundShipment
* The Status
and TrackingNumber
values for a Snow device being delivered to the
* address that you specified for a particular job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ShippingDetails withOutboundShipment(Shipment outboundShipment) {
setOutboundShipment(outboundShipment);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getShippingOption() != null)
sb.append("ShippingOption: ").append(getShippingOption()).append(",");
if (getInboundShipment() != null)
sb.append("InboundShipment: ").append(getInboundShipment()).append(",");
if (getOutboundShipment() != null)
sb.append("OutboundShipment: ").append(getOutboundShipment());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ShippingDetails == false)
return false;
ShippingDetails other = (ShippingDetails) obj;
if (other.getShippingOption() == null ^ this.getShippingOption() == null)
return false;
if (other.getShippingOption() != null && other.getShippingOption().equals(this.getShippingOption()) == false)
return false;
if (other.getInboundShipment() == null ^ this.getInboundShipment() == null)
return false;
if (other.getInboundShipment() != null && other.getInboundShipment().equals(this.getInboundShipment()) == false)
return false;
if (other.getOutboundShipment() == null ^ this.getOutboundShipment() == null)
return false;
if (other.getOutboundShipment() != null && other.getOutboundShipment().equals(this.getOutboundShipment()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getShippingOption() == null) ? 0 : getShippingOption().hashCode());
hashCode = prime * hashCode + ((getInboundShipment() == null) ? 0 : getInboundShipment().hashCode());
hashCode = prime * hashCode + ((getOutboundShipment() == null) ? 0 : getOutboundShipment().hashCode());
return hashCode;
}
@Override
public ShippingDetails clone() {
try {
return (ShippingDetails) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.snowball.model.transform.ShippingDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}