Class ChargeComponent
- java.lang.Object
-
- software.amazon.spapi.models.shipping.v2.ChargeComponent
-
public class ChargeComponent extends java.lang.Object
The type and amount of a charge applied on a package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChargeComponent.ChargeTypeEnum
The type of charge.
-
Constructor Summary
Constructors Constructor Description ChargeComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChargeComponent
amount(Currency amount)
ChargeComponent
chargeType(ChargeComponent.ChargeTypeEnum chargeType)
boolean
equals(java.lang.Object o)
Currency
getAmount()
Get amountChargeComponent.ChargeTypeEnum
getChargeType()
The type of charge.int
hashCode()
void
setAmount(Currency amount)
void
setChargeType(ChargeComponent.ChargeTypeEnum chargeType)
java.lang.String
toString()
-
-
-
Method Detail
-
amount
public ChargeComponent amount(Currency amount)
-
getAmount
public Currency getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Currency amount)
-
chargeType
public ChargeComponent chargeType(ChargeComponent.ChargeTypeEnum chargeType)
-
getChargeType
public ChargeComponent.ChargeTypeEnum getChargeType()
The type of charge.- Returns:
- chargeType
-
setChargeType
public void setChargeType(ChargeComponent.ChargeTypeEnum chargeType)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-