public class ShippingOption extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ShippingOption.Builder
Class to build instances of
ShippingOption. |
| Constructor and Description |
|---|
ShippingOption()
Default constructor.
|
ShippingOption(String id,
String label,
boolean selected,
ShippingType type,
Money amount)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getAmount()
Getter for Amount.
|
String |
getId()
Getter for Id.
|
String |
getLabel()
Getter for Label.
|
boolean |
getSelected()
Getter for Selected.
|
ShippingType |
getType()
Getter for Type.
|
void |
setAmount(Money amount)
Setter for Amount.
|
void |
setId(String id)
Setter for Id.
|
void |
setLabel(String label)
Setter for Label.
|
void |
setSelected(boolean selected)
Setter for Selected.
|
void |
setType(ShippingType type)
Setter for Type.
|
ShippingOption.Builder |
toBuilder()
Builds a new
ShippingOption.Builder object. |
String |
toString()
Converts this ShippingOption into string format.
|
public ShippingOption()
public ShippingOption(String id, String label, boolean selected, ShippingType type, Money amount)
id - String value for id.label - String value for label.selected - boolean value for selected.type - ShippingType value for type.amount - Money value for amount.public String getId()
public void setId(String id)
id - Value for Stringpublic String getLabel()
public void setLabel(String label)
label - Value for Stringpublic ShippingType getType()
public void setType(ShippingType type)
type - Value for ShippingTypepublic Money getAmount()
public void setAmount(Money amount)
amount - Value for Moneypublic boolean getSelected()
public void setSelected(boolean selected)
selected - Value for booleanpublic String toString()
public ShippingOption.Builder toBuilder()
ShippingOption.Builder object.
Creates the instance with the state of the current model.ShippingOption.Builder objectCopyright © 2025. All rights reserved.