com.amazonaws.services.cloudfront.model

## クラス Origin

- java.lang.Object
- - com.amazonaws.services.cloudfront.model.Origin

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

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

  A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `CustomOriginConfig` | `getCustomOriginConfig()` A complex type that contains information about a custom origin.
    `java.lang.String` | `getDomainName()` Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com.
    `java.lang.String` | `getId()` A unique identifier for the origin.
    `S3OriginConfig` | `getS3OriginConfig()` A complex type that contains information about the Amazon S3 origin.
    `int` | `hashCode()`
    `void` | `setCustomOriginConfig(CustomOriginConfig customOriginConfig)` A complex type that contains information about a custom origin.
    `void` | `setDomainName(java.lang.String domainName)` Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com.
    `void` | `setId(java.lang.String id)` A unique identifier for the origin.
    `void` | `setS3OriginConfig(S3OriginConfig s3OriginConfig)` A complex type that contains information about the Amazon S3 origin.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Origin` | `withCustomOriginConfig(CustomOriginConfig customOriginConfig)` A complex type that contains information about a custom origin.
    `Origin` | `withDomainName(java.lang.String domainName)` Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com.
    `Origin` | `withId(java.lang.String id)` A unique identifier for the origin.
    `Origin` | `withS3OriginConfig(S3OriginConfig s3OriginConfig)` A complex type that contains information about the Amazon S3 origin.

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

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

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

    - #### Origin

          public Origin()

  - ### メソッドの詳細

    - #### getId

          public java.lang.String getId()

      A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.
      戻り値:
        A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.

    - #### setId

          public void setId(java.lang.String id)

      A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.
      パラメータ:
        `id` - A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.

    - #### withId

          public Origin withId(java.lang.String id)

      A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.

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

      パラメータ:
        `id` - A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.

    - #### getDomainName

          public java.lang.String getDomainName()

      Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.
      戻り値:
        Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

    - #### setDomainName

          public void setDomainName(java.lang.String domainName)

      Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.
      パラメータ:
        `domainName` - Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

    - #### withDomainName

          public Origin withDomainName(java.lang.String domainName)

      Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

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

      パラメータ:
        `domainName` - Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

    - #### getS3OriginConfig

          public S3OriginConfig getS3OriginConfig()

      A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
      戻り値:
        A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

    - #### setS3OriginConfig

          public void setS3OriginConfig(S3OriginConfig s3OriginConfig)

      A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
      パラメータ:
        `s3OriginConfig` - A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

    - #### withS3OriginConfig

          public Origin withS3OriginConfig(S3OriginConfig s3OriginConfig)

      A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

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

      パラメータ:
        `s3OriginConfig` - A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

    - #### getCustomOriginConfig

          public CustomOriginConfig getCustomOriginConfig()

      A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
      戻り値:
        A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

    - #### setCustomOriginConfig

          public void setCustomOriginConfig(CustomOriginConfig customOriginConfig)

      A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
      パラメータ:
        `customOriginConfig` - A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

    - #### withCustomOriginConfig

          public Origin withCustomOriginConfig(CustomOriginConfig customOriginConfig)

      A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

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

      パラメータ:
        `customOriginConfig` - A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

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