@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. |
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 |
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 |
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.CustomLineItemType
public String getType()
The type of the custom line item that indicates whether the charge is a fee or credit.
CustomLineItemType
public 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.CustomLineItemType
public 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.CustomLineItemType
public String toString()
toString
in class Object
Object.toString()
public CustomLineItemChargeDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.