All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.snowball.model.ShippingDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Snowball module holds the client classes that are used for communicating with Amazon Snowball.

There is a newer version: 1.12.788
Show newest version
/*
 * Copyright 2011-2016 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;

/**
 * 

* A job's shipping information, including inbound and outbound tracking numbers * and shipping speed options. *

*/ public class ShippingDetails implements Serializable, Cloneable { /** *

* The shipping speed for a particular job. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

    *
  • *
  • *

    * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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 * Snowball being delivered to the address that you specified for a * particular job. *

*/ private Shipment inboundShipment; /** *

* The Status and TrackingNumber values for a * Snowball being returned to AWS for a particular job. *

*/ private Shipment outboundShipment; /** *

* The shipping speed for a particular job. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

    *
  • *
  • *

    * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does * not dictate how soon you'll get the Snowball 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, * Snowballs shipped express are delivered in about a day. *

    *
  • *
  • *

    * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

      *
    • *
    • *

      * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed * does not dictate how soon you'll get the Snowball 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, * Snowballs shipped express are delivered in about a day. *

      *
    • *
    • *

      * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

        *
      • *
      • *

        * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does * not dictate how soon you'll get the Snowball 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, * Snowballs shipped express are delivered in about a day. *

        *
      • *
      • *

        * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

          *
        • *
        • *

          * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does * not dictate how soon you'll get the Snowball 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, * Snowballs shipped express are delivered in about a day. *

          *
        • *
        • *

          * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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) { this.shippingOption = shippingOption.toString(); } /** *

          * The shipping speed for a particular job. Note that this speed does not * dictate how soon you'll get the Snowball 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, Snowballs * shipped express are delivered in about a day. *

            *
          • *
          • *

            * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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. Note that this speed does * not dictate how soon you'll get the Snowball 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, * Snowballs shipped express are delivered in about a day. *

            *
          • *
          • *

            * In the European Union (EU), you have access to express shipping. * Typically, Snowballs 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, Snowballs 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) { setShippingOption(shippingOption); return this; } /** *

            * The Status and TrackingNumber values for a * Snowball being delivered to the address that you specified for a * particular job. *

            * * @param inboundShipment * The Status and TrackingNumber values for * a Snowball being delivered to the address that you specified for a * particular job. */ public void setInboundShipment(Shipment inboundShipment) { this.inboundShipment = inboundShipment; } /** *

            * The Status and TrackingNumber values for a * Snowball being delivered to the address that you specified for a * particular job. *

            * * @return The Status and TrackingNumber values * for a Snowball being delivered to the address that you specified * for a particular job. */ public Shipment getInboundShipment() { return this.inboundShipment; } /** *

            * The Status and TrackingNumber values for a * Snowball being delivered to the address that you specified for a * particular job. *

            * * @param inboundShipment * The Status and TrackingNumber values for * a Snowball 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 withInboundShipment(Shipment inboundShipment) { setInboundShipment(inboundShipment); return this; } /** *

            * The Status and TrackingNumber values for a * Snowball being returned to AWS for a particular job. *

            * * @param outboundShipment * The Status and TrackingNumber values for * a Snowball being returned to AWS for a particular job. */ public void setOutboundShipment(Shipment outboundShipment) { this.outboundShipment = outboundShipment; } /** *

            * The Status and TrackingNumber values for a * Snowball being returned to AWS for a particular job. *

            * * @return The Status and TrackingNumber values * for a Snowball being returned to AWS for a particular job. */ public Shipment getOutboundShipment() { return this.outboundShipment; } /** *

            * The Status and TrackingNumber values for a * Snowball being returned to AWS for a particular job. *

            * * @param outboundShipment * The Status and TrackingNumber values for * a Snowball being returned to AWS 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; useful for testing and * debugging. * * @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: " + getShippingOption() + ","); if (getInboundShipment() != null) sb.append("InboundShipment: " + getInboundShipment() + ","); if (getOutboundShipment() != null) sb.append("OutboundShipment: " + 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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy