Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.directconnect.model
Class ConnectionCost

java.lang.Object
  extended by com.amazonaws.services.directconnect.model.ConnectionCost

public class ConnectionCost
extends java.lang.Object

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

ConnectionCost

public ConnectionCost()
Method Detail

getName

public java.lang.String getName()
The name of the cost item.

Example: Inbound data transfer

Returns:
The name of the cost item.

Example: Inbound data transfer


setName

public void setName(java.lang.String name)
The name of the cost item.

Example: Inbound data transfer

Parameters:
name - The name of the cost item.

Example: Inbound data transfer


withName

public ConnectionCost withName(java.lang.String name)
The name of the cost item.

Example: Inbound data transfer

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the cost item.

Example: Inbound data transfer

Returns:
A reference to this updated object so that method calls can be chained together.

getUnit

public java.lang.String getUnit()
The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.

Returns:
The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.


setUnit

public void setUnit(java.lang.String unit)
The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.

Parameters:
unit - The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.


withUnit

public ConnectionCost withUnit(java.lang.String unit)
The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.

Returns a reference to this object so that method calls can be chained together.

Parameters:
unit - The unit used in cost calculation.

Example: "Gbps," if the price is calculated based on Gbps.

Returns:
A reference to this updated object so that method calls can be chained together.

getCurrencyCode

public java.lang.String getCurrencyCode()
Currency code based on ISO 4217.

Example: "USD" for US dollar.

Returns:
Currency code based on ISO 4217.

Example: "USD" for US dollar.


setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
Currency code based on ISO 4217.

Example: "USD" for US dollar.

Parameters:
currencyCode - Currency code based on ISO 4217.

Example: "USD" for US dollar.


withCurrencyCode

public ConnectionCost withCurrencyCode(java.lang.String currencyCode)
Currency code based on ISO 4217.

Example: "USD" for US dollar.

Returns a reference to this object so that method calls can be chained together.

Parameters:
currencyCode - Currency code based on ISO 4217.

Example: "USD" for US dollar.

Returns:
A reference to this updated object so that method calls can be chained together.

getAmount

public java.lang.String getAmount()
The amount of charge per unit.

Example: 0.01

Returns:
The amount of charge per unit.

Example: 0.01


setAmount

public void setAmount(java.lang.String amount)
The amount of charge per unit.

Example: 0.01

Parameters:
amount - The amount of charge per unit.

Example: 0.01


withAmount

public ConnectionCost withAmount(java.lang.String amount)
The amount of charge per unit.

Example: 0.01

Returns a reference to this object so that method calls can be chained together.

Parameters:
amount - The amount of charge per unit.

Example: 0.01

Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.