|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.directconnect.model.ConnectionCost
public class ConnectionCost
Cost description.
Constructor Summary | |
---|---|
ConnectionCost()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAmount()
The amount of charge per unit. |
java.lang.String |
getCurrencyCode()
Currency code based on ISO 4217. |
java.lang.String |
getName()
The name of the cost item. |
java.lang.String |
getUnit()
The unit used in cost calculation. |
int |
hashCode()
|
void |
setAmount(java.lang.String amount)
The amount of charge per unit. |
void |
setCurrencyCode(java.lang.String currencyCode)
Currency code based on ISO 4217. |
void |
setName(java.lang.String name)
The name of the cost item. |
void |
setUnit(java.lang.String unit)
The unit used in cost calculation. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ConnectionCost |
withAmount(java.lang.String amount)
The amount of charge per unit. |
ConnectionCost |
withCurrencyCode(java.lang.String currencyCode)
Currency code based on ISO 4217. |
ConnectionCost |
withName(java.lang.String name)
The name of the cost item. |
ConnectionCost |
withUnit(java.lang.String unit)
The unit used in cost calculation. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionCost()
Method Detail |
---|
public java.lang.String getName()
Example: Inbound data transfer
Example: Inbound data transfer
public void setName(java.lang.String name)
Example: Inbound data transfer
name
- The name of the cost item. Example: Inbound data transfer
public ConnectionCost withName(java.lang.String name)
Example: Inbound data transfer
Returns a reference to this object so that method calls can be chained together.
name
- The name of the cost item. Example: Inbound data transfer
public java.lang.String getUnit()
Example: "Gbps," if the price is calculated based on Gbps.
Example: "Gbps," if the price is calculated based on Gbps.
public void setUnit(java.lang.String unit)
Example: "Gbps," if the price is calculated based on Gbps.
unit
- The unit used in cost calculation. Example: "Gbps," if the price is calculated based on Gbps.
public ConnectionCost withUnit(java.lang.String unit)
Example: "Gbps," if the price is calculated based on Gbps.
Returns a reference to this object so that method calls can be chained together.
unit
- The unit used in cost calculation. Example: "Gbps," if the price is calculated based on Gbps.
public java.lang.String getCurrencyCode()
Example: "USD" for US dollar.
Example: "USD" for US dollar.
public void setCurrencyCode(java.lang.String currencyCode)
Example: "USD" for US dollar.
currencyCode
- Currency code based on ISO 4217. Example: "USD" for US dollar.
public ConnectionCost withCurrencyCode(java.lang.String currencyCode)
Example: "USD" for US dollar.
Returns a reference to this object so that method calls can be chained together.
currencyCode
- Currency code based on ISO 4217. Example: "USD" for US dollar.
public java.lang.String getAmount()
Example: 0.01
Example: 0.01
public void setAmount(java.lang.String amount)
Example: 0.01
amount
- The amount of charge per unit. Example: 0.01
public ConnectionCost withAmount(java.lang.String amount)
Example: 0.01
Returns a reference to this object so that method calls can be chained together.
amount
- The amount of charge per unit. Example: 0.01
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |