/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.content.model;

/**
 * Model definition for OrderShipment.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class OrderShipment extends com.google.api.client.json.GenericJson {

  /**
   * The carrier handling the shipment.
   *
   * Acceptable values for US are:   - "gsx"  - "ups"  - "usps"  - "fedex"  - "dhl"  - "ecourier"  -
   * "cxt"  - "google"  - "ontrac"  - "emsy"  - "ont"  - "deliv"  - "dynamex"  - "lasership"  -
   * "mpx"  - "uds"  - "efw"
   *
   * Acceptable values for FR are:   - "colissimo"  - "chronopost"  - "gls"  - "dpd"  - "bpost"
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String carrier;

  /**
   * Date on which the shipment has been created, in ISO 8601 format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String creationDate;

  /**
   * Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is
   * delivered
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String deliveryDate;

  /**
   * The ID of the shipment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * The line items that are shipped.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<OrderShipmentLineItemShipment> lineItems;

  /**
   * The status of the shipment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String status;

  /**
   * The tracking ID for the shipment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String trackingId;

  /**
   * The carrier handling the shipment.
   *
   * Acceptable values for US are:   - "gsx"  - "ups"  - "usps"  - "fedex"  - "dhl"  - "ecourier"  -
   * "cxt"  - "google"  - "ontrac"  - "emsy"  - "ont"  - "deliv"  - "dynamex"  - "lasership"  -
   * "mpx"  - "uds"  - "efw"
   *
   * Acceptable values for FR are:   - "colissimo"  - "chronopost"  - "gls"  - "dpd"  - "bpost"
   * @return value or {@code null} for none
   */
  public java.lang.String getCarrier() {
    return carrier;
  }

  /**
   * The carrier handling the shipment.
   *
   * Acceptable values for US are:   - "gsx"  - "ups"  - "usps"  - "fedex"  - "dhl"  - "ecourier"  -
   * "cxt"  - "google"  - "ontrac"  - "emsy"  - "ont"  - "deliv"  - "dynamex"  - "lasership"  -
   * "mpx"  - "uds"  - "efw"
   *
   * Acceptable values for FR are:   - "colissimo"  - "chronopost"  - "gls"  - "dpd"  - "bpost"
   * @param carrier carrier or {@code null} for none
   */
  public OrderShipment setCarrier(java.lang.String carrier) {
    this.carrier = carrier;
    return this;
  }

  /**
   * Date on which the shipment has been created, in ISO 8601 format.
   * @return value or {@code null} for none
   */
  public java.lang.String getCreationDate() {
    return creationDate;
  }

  /**
   * Date on which the shipment has been created, in ISO 8601 format.
   * @param creationDate creationDate or {@code null} for none
   */
  public OrderShipment setCreationDate(java.lang.String creationDate) {
    this.creationDate = creationDate;
    return this;
  }

  /**
   * Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is
   * delivered
   * @return value or {@code null} for none
   */
  public java.lang.String getDeliveryDate() {
    return deliveryDate;
  }

  /**
   * Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is
   * delivered
   * @param deliveryDate deliveryDate or {@code null} for none
   */
  public OrderShipment setDeliveryDate(java.lang.String deliveryDate) {
    this.deliveryDate = deliveryDate;
    return this;
  }

  /**
   * The ID of the shipment.
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * The ID of the shipment.
   * @param id id or {@code null} for none
   */
  public OrderShipment setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * The line items that are shipped.
   * @return value or {@code null} for none
   */
  public java.util.List<OrderShipmentLineItemShipment> getLineItems() {
    return lineItems;
  }

  /**
   * The line items that are shipped.
   * @param lineItems lineItems or {@code null} for none
   */
  public OrderShipment setLineItems(java.util.List<OrderShipmentLineItemShipment> lineItems) {
    this.lineItems = lineItems;
    return this;
  }

  /**
   * The status of the shipment.
   * @return value or {@code null} for none
   */
  public java.lang.String getStatus() {
    return status;
  }

  /**
   * The status of the shipment.
   * @param status status or {@code null} for none
   */
  public OrderShipment setStatus(java.lang.String status) {
    this.status = status;
    return this;
  }

  /**
   * The tracking ID for the shipment.
   * @return value or {@code null} for none
   */
  public java.lang.String getTrackingId() {
    return trackingId;
  }

  /**
   * The tracking ID for the shipment.
   * @param trackingId trackingId or {@code null} for none
   */
  public OrderShipment setTrackingId(java.lang.String trackingId) {
    this.trackingId = trackingId;
    return this;
  }

  @Override
  public OrderShipment set(String fieldName, Object value) {
    return (OrderShipment) super.set(fieldName, value);
  }

  @Override
  public OrderShipment clone() {
    return (OrderShipment) super.clone();
  }

}
