@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateCustomLineItemChargeDetails extends Object implements Serializable, Cloneable, StructuredPojo
A representation of the new charge details of a custom line item. This should contain only one of Flat
or Percentage
.
Constructor and Description |
---|
UpdateCustomLineItemChargeDetails() |
Modifier and Type | Method and Description |
---|---|
UpdateCustomLineItemChargeDetails |
clone() |
boolean |
equals(Object obj) |
UpdateCustomLineItemFlatChargeDetails |
getFlat()
An
UpdateCustomLineItemFlatChargeDetails that describes the new charge details of a flat custom line
item. |
List<LineItemFilter> |
getLineItemFilters()
A representation of the line item filter.
|
UpdateCustomLineItemPercentageChargeDetails |
getPercentage()
An
UpdateCustomLineItemPercentageChargeDetails that describes the new charge details of a percentage
custom line item. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFlat(UpdateCustomLineItemFlatChargeDetails flat)
An
UpdateCustomLineItemFlatChargeDetails that describes the new charge details of a flat custom line
item. |
void |
setLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
|
void |
setPercentage(UpdateCustomLineItemPercentageChargeDetails percentage)
An
UpdateCustomLineItemPercentageChargeDetails that describes the new charge details of a percentage
custom line item. |
String |
toString()
Returns a string representation of this object.
|
UpdateCustomLineItemChargeDetails |
withFlat(UpdateCustomLineItemFlatChargeDetails flat)
An
UpdateCustomLineItemFlatChargeDetails that describes the new charge details of a flat custom line
item. |
UpdateCustomLineItemChargeDetails |
withLineItemFilters(Collection<LineItemFilter> lineItemFilters)
A representation of the line item filter.
|
UpdateCustomLineItemChargeDetails |
withLineItemFilters(LineItemFilter... lineItemFilters)
A representation of the line item filter.
|
UpdateCustomLineItemChargeDetails |
withPercentage(UpdateCustomLineItemPercentageChargeDetails percentage)
An
UpdateCustomLineItemPercentageChargeDetails that describes the new charge details of a percentage
custom line item. |
public void setFlat(UpdateCustomLineItemFlatChargeDetails flat)
An UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat custom line
item.
flat
- An UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat
custom line item.public UpdateCustomLineItemFlatChargeDetails getFlat()
An UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat custom line
item.
UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat
custom line item.public UpdateCustomLineItemChargeDetails withFlat(UpdateCustomLineItemFlatChargeDetails flat)
An UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat custom line
item.
flat
- An UpdateCustomLineItemFlatChargeDetails
that describes the new charge details of a flat
custom line item.public void setPercentage(UpdateCustomLineItemPercentageChargeDetails percentage)
An UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a percentage
custom line item.
percentage
- An UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a
percentage custom line item.public UpdateCustomLineItemPercentageChargeDetails getPercentage()
An UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a percentage
custom line item.
UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a
percentage custom line item.public UpdateCustomLineItemChargeDetails withPercentage(UpdateCustomLineItemPercentageChargeDetails percentage)
An UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a percentage
custom line item.
percentage
- An UpdateCustomLineItemPercentageChargeDetails
that describes the new charge details of a
percentage custom line item.public 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 UpdateCustomLineItemChargeDetails 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 UpdateCustomLineItemChargeDetails 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 Object
Object.toString()
public UpdateCustomLineItemChargeDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.