Enum LabelAttribute

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LabelAttribute>

    public enum LabelAttribute
    extends java.lang.Enum<LabelAttribute>
    Enumerates the attributes supported to be printed on a shipping label. The values for these attributes are retrieved from GetRates/OneClickShipment request
    • Enum Constant Detail

      • PACKAGE_CLIENT_REFERENCE_ID

        @SerializedName("PACKAGE_CLIENT_REFERENCE_ID")
        public static final LabelAttribute PACKAGE_CLIENT_REFERENCE_ID
      • SELLER_DISPLAY_NAME

        @SerializedName("SELLER_DISPLAY_NAME")
        public static final LabelAttribute SELLER_DISPLAY_NAME
      • COLLECT_ON_DELIVERY_AMOUNT

        @SerializedName("COLLECT_ON_DELIVERY_AMOUNT")
        public static final LabelAttribute COLLECT_ON_DELIVERY_AMOUNT
    • Method Detail

      • values

        public static LabelAttribute[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LabelAttribute c : LabelAttribute.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LabelAttribute valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public java.lang.String getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<LabelAttribute>
      • fromValue

        public static LabelAttribute fromValue​(java.lang.String input)