com.amazonaws.services.cloudfront_2012_03_15.model

## クラス CustomOrigin

- java.lang.Object
- - com.amazonaws.services.cloudfront_2012_03_15.model.CustomOrigin

-     public class CustomOrigin
      extends java.lang.Object

  A customer origin.

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

    コンストラクタ
    コンストラクタと説明
    `CustomOrigin()` Default constructor for a new CustomOrigin object.
    `CustomOrigin(java.lang.String dNSName, OriginProtocolPolicy originProtocolPolicy)` Constructs a new CustomOrigin object.
    `CustomOrigin(java.lang.String dNSName, java.lang.String originProtocolPolicy)` Constructs a new CustomOrigin object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDNSName()` The origin to associate with the distribution.
    `java.lang.Integer` | `getHTTPPort()` The HTTP port the custom origin listens on.
    `java.lang.Integer` | `getHTTPSPort()` The HTTPS port the custom origin listens on.
    `java.lang.String` | `getOriginProtocolPolicy()` The origin protocol policy to apply to your origin.
    `int` | `hashCode()`
    `void` | `setDNSName(java.lang.String dNSName)` The origin to associate with the distribution.
    `void` | `setHTTPPort(java.lang.Integer hTTPPort)` The HTTP port the custom origin listens on.
    `void` | `setHTTPSPort(java.lang.Integer hTTPSPort)` The HTTPS port the custom origin listens on.
    `void` | `setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)` The origin protocol policy to apply to your origin.
    `void` | `setOriginProtocolPolicy(java.lang.String originProtocolPolicy)` The origin protocol policy to apply to your origin.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CustomOrigin` | `withDNSName(java.lang.String dNSName)` The origin to associate with the distribution.
    `CustomOrigin` | `withHTTPPort(java.lang.Integer hTTPPort)` The HTTP port the custom origin listens on.
    `CustomOrigin` | `withHTTPSPort(java.lang.Integer hTTPSPort)` The HTTPS port the custom origin listens on.
    `CustomOrigin` | `withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)` The origin protocol policy to apply to your origin.
    `CustomOrigin` | `withOriginProtocolPolicy(java.lang.String originProtocolPolicy)` The origin protocol policy to apply to your origin.

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

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

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

    - #### CustomOrigin

          public CustomOrigin()

      Default constructor for a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### CustomOrigin

          public CustomOrigin(java.lang.String dNSName,
                      java.lang.String originProtocolPolicy)

      Constructs a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `dNSName` - The origin to associate with the distribution.
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.

    - #### CustomOrigin

          public CustomOrigin(java.lang.String dNSName,
                      OriginProtocolPolicy originProtocolPolicy)

      Constructs a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `dNSName` - The origin to associate with the distribution.
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.

  - ### メソッドの詳細

    - #### getDNSName

          public java.lang.String getDNSName()

      The origin to associate with the distribution.
      戻り値:
        The origin to associate with the distribution.

    - #### setDNSName

          public void setDNSName(java.lang.String dNSName)

      The origin to associate with the distribution.
      パラメータ:
        `dNSName` - The origin to associate with the distribution.

    - #### withDNSName

          public CustomOrigin withDNSName(java.lang.String dNSName)

      The origin to associate with the distribution.

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

      パラメータ:
        `dNSName` - The origin to associate with the distribution.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getHTTPPort

          public java.lang.Integer getHTTPPort()

      The HTTP port the custom origin listens on.
      戻り値:
        The HTTP port the custom origin listens on.

    - #### setHTTPPort

          public void setHTTPPort(java.lang.Integer hTTPPort)

      The HTTP port the custom origin listens on.
      パラメータ:
        `hTTPPort` - The HTTP port the custom origin listens on.

    - #### withHTTPPort

          public CustomOrigin withHTTPPort(java.lang.Integer hTTPPort)

      The HTTP port the custom origin listens on.

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

      パラメータ:
        `hTTPPort` - The HTTP port the custom origin listens on.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getHTTPSPort

          public java.lang.Integer getHTTPSPort()

      The HTTPS port the custom origin listens on.
      戻り値:
        The HTTPS port the custom origin listens on.

    - #### setHTTPSPort

          public void setHTTPSPort(java.lang.Integer hTTPSPort)

      The HTTPS port the custom origin listens on.
      パラメータ:
        `hTTPSPort` - The HTTPS port the custom origin listens on.

    - #### withHTTPSPort

          public CustomOrigin withHTTPSPort(java.lang.Integer hTTPSPort)

      The HTTPS port the custom origin listens on.

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

      パラメータ:
        `hTTPSPort` - The HTTPS port the custom origin listens on.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getOriginProtocolPolicy

          public java.lang.String getOriginProtocolPolicy()

      The origin protocol policy to apply to your origin.

      Constraints:
      Allowed Values: http-only, match-viewer

      戻り値:
        The origin protocol policy to apply to your origin.
      関連項目:
        `OriginProtocolPolicy`

    - #### setOriginProtocolPolicy

          public void setOriginProtocolPolicy(java.lang.String originProtocolPolicy)

      The origin protocol policy to apply to your origin.

      Constraints:
      Allowed Values: http-only, match-viewer

      パラメータ:
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.
      関連項目:
        `OriginProtocolPolicy`

    - #### withOriginProtocolPolicy

          public CustomOrigin withOriginProtocolPolicy(java.lang.String originProtocolPolicy)

      The origin protocol policy to apply to your origin.

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

      Constraints:
      Allowed Values: http-only, match-viewer

      パラメータ:
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.
      戻り値:
        A reference to this updated object so that method calls can be chained together.
      関連項目:
        `OriginProtocolPolicy`

    - #### setOriginProtocolPolicy

          public void setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)

      The origin protocol policy to apply to your origin.

      Constraints:
      Allowed Values: http-only, match-viewer

      パラメータ:
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.
      関連項目:
        `OriginProtocolPolicy`

    - #### withOriginProtocolPolicy

          public CustomOrigin withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)

      The origin protocol policy to apply to your origin.

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

      Constraints:
      Allowed Values: http-only, match-viewer

      パラメータ:
        `originProtocolPolicy` - The origin protocol policy to apply to your origin.
      戻り値:
        A reference to this updated object so that method calls can be chained together.
      関連項目:
        `OriginProtocolPolicy`

    - #### 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`