com.amazonaws.services.directconnect.model

## クラス ConnectionCost

- java.lang.Object
- - com.amazonaws.services.directconnect.model.ConnectionCost

- すべての実装されたインタフェース:
    java.io.Serializable

      public class ConnectionCost
      extends java.lang.Object
      implements java.io.Serializable

  Cost description.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `ConnectionCost()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### ConnectionCost

          public ConnectionCost()

  - ### メソッドの詳細

    - #### getName

          public java.lang.String getName()

      The name of the cost item.

      Example: Inbound data transfer

      戻り値:
        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

      パラメータ:
        `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.

      パラメータ:
        `name` - The name of the cost item.

        Example: Inbound data transfer

    - #### getUnit

          public java.lang.String getUnit()

      The unit used in cost calculation.

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

      戻り値:
        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.

      パラメータ:
        `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.

      パラメータ:
        `unit` - The unit used in cost calculation.

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

    - #### getCurrencyCode

          public java.lang.String getCurrencyCode()

      Currency code based on ISO 4217.

      Example: "USD" for US dollar.

      戻り値:
        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.

      パラメータ:
        `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.

      パラメータ:
        `currencyCode` - Currency code based on ISO 4217.

        Example: "USD" for US dollar.

    - #### getAmount

          public java.lang.String getAmount()

      The amount of charge per unit.

      Example: 0.01

      戻り値:
        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

      パラメータ:
        `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.

      パラメータ:
        `amount` - The amount of charge per unit.

        Example: 0.01

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`