@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomLineItemChargeDetails extends Object implements Serializable, Cloneable, StructuredPojo
The charge details of a custom line item. It should contain only one of Flat or Percentage.
| Constructor and Description |
|---|
CustomLineItemChargeDetails() |
| Modifier and Type | Method and Description |
|---|---|
CustomLineItemChargeDetails |
clone() |
boolean |
equals(Object obj) |
CustomLineItemFlatChargeDetails |
getFlat()
A
CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item. |
List<LineItemFilter> |
getLineItemFilters()
A representation of the line item filter.
|
CustomLineItemPercentageChargeDetails |
getPercentage()
A
CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item. |
String |
getType()
The type of the custom line item that indicates whether the charge is a fee or credit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFlat(CustomLineItemFlatChargeDetails flat)
A
CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item. |
void |
setLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
|
void |
setPercentage(CustomLineItemPercentageChargeDetails percentage)
A
CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item. |
void |
setType(String type)
The type of the custom line item that indicates whether the charge is a fee or credit.
|
String |
toString()
Returns a string representation of this object.
|
CustomLineItemChargeDetails |
withFlat(CustomLineItemFlatChargeDetails flat)
A
CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item. |
CustomLineItemChargeDetails |
withLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
|
CustomLineItemChargeDetails |
withLineItemFilters(LineItemFilter... lineItemFilters)
A representation of the line item filter.
|
CustomLineItemChargeDetails |
withPercentage(CustomLineItemPercentageChargeDetails percentage)
A
CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item. |
CustomLineItemChargeDetails |
withType(CustomLineItemType type)
The type of the custom line item that indicates whether the charge is a fee or credit.
|
CustomLineItemChargeDetails |
withType(String type)
The type of the custom line item that indicates whether the charge is a fee or credit.
|
public void setFlat(CustomLineItemFlatChargeDetails flat)
A CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item.
flat - A CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line
item.public CustomLineItemFlatChargeDetails getFlat()
A CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item.
CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line
item.public CustomLineItemChargeDetails withFlat(CustomLineItemFlatChargeDetails flat)
A CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item.
flat - A CustomLineItemFlatChargeDetails that describes the charge details of a flat custom line
item.public void setPercentage(CustomLineItemPercentageChargeDetails percentage)
A CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item.
percentage - A CustomLineItemPercentageChargeDetails that describes the charge details of a percentage
custom line item.public CustomLineItemPercentageChargeDetails getPercentage()
A CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item.
CustomLineItemPercentageChargeDetails that describes the charge details of a percentage
custom line item.public CustomLineItemChargeDetails withPercentage(CustomLineItemPercentageChargeDetails percentage)
A CustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom
line item.
percentage - A CustomLineItemPercentageChargeDetails that describes the charge details of a percentage
custom line item.public void setType(String type)
The type of the custom line item that indicates whether the charge is a fee or credit.
type - The type of the custom line item that indicates whether the charge is a fee or credit.CustomLineItemTypepublic String getType()
The type of the custom line item that indicates whether the charge is a fee or credit.
CustomLineItemTypepublic CustomLineItemChargeDetails withType(String type)
The type of the custom line item that indicates whether the charge is a fee or credit.
type - The type of the custom line item that indicates whether the charge is a fee or credit.CustomLineItemTypepublic CustomLineItemChargeDetails withType(CustomLineItemType type)
The type of the custom line item that indicates whether the charge is a fee or credit.
type - The type of the custom line item that indicates whether the charge is a fee or credit.CustomLineItemTypepublic List<LineItemFilter> getLineItemFilters()
A representation of the line item filter.
public void setLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
lineItemFilters - A representation of the line item filter.public CustomLineItemChargeDetails withLineItemFilters(LineItemFilter... lineItemFilters)
A representation of the line item filter.
NOTE: This method appends the values to the existing list (if any). Use
setLineItemFilters(java.util.Collection) or withLineItemFilters(java.util.Collection) if you
want to override the existing values.
lineItemFilters - A representation of the line item filter.public CustomLineItemChargeDetails withLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
lineItemFilters - A representation of the line item filter.public String toString()
toString in class ObjectObject.toString()public CustomLineItemChargeDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.