com.amazonaws.services.s3.model

## クラス CORSRule

- java.lang.Object
- - com.amazonaws.services.s3.model.CORSRule

-     public class CORSRule
      extends java.lang.Object

  Container for rules of cross origin configuration.

- - ### ネストされたクラスの概要

    ネストされたクラス
    修飾子とタイプ | クラスと説明
    --- | ---
    `static class` | `CORSRule.AllowedMethods` Enumeration of names of the all the allowed methods.

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.util.List<java.lang.String>` | `getAllowedHeaders()` Returns allowed headers of this rule.
    `java.util.List<CORSRule.AllowedMethods>` | `getAllowedMethods()` Returns the allowed methods of this rule.
    `java.util.List<java.lang.String>` | `getAllowedOrigins()` Returns the allowed origins of this rule and returns a reference to this object for method chaining.
    `java.util.List<java.lang.String>` | `getExposedHeaders()` Returns expose headers of this rule and returns a reference to this object for method chaining.
    `java.lang.String` | `getId()` Returns the Id of this rule.
    `int` | `getMaxAgeSeconds()` Sets the ID of this rule and returns a reference to this object for method chaining.
    `void` | `setAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)` Sets the allowed headers for the rule.
    `void` | `setAllowedHeaders(java.lang.String... allowedHeaders)` Convenience array style method for `BucketCrossOriginConfiguration#setAllowedHeaders(List)`
    `void` | `setAllowedMethods(CORSRule.AllowedMethods... allowedMethods)` Convenience array style method for `BucketCrossOriginConfiguration#setAllowedMethods(List)`
    `void` | `setAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)` Sets the allowed methods of the rule.
    `void` | `setAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)` Sets the allowed origins of the rule.
    `void` | `setAllowedOrigins(java.lang.String... allowedOrigins)` Convenience array style method for `BucketCrossOriginConfiguration#setAllowedOrigins(List)`
    `void` | `setExposedHeaders(java.util.List<java.lang.String> exposedHeaders)` Sets the expose headers of the rule.
    `void` | `setExposedHeaders(java.lang.String... exposedHeaders)` Convenience array style method for `BucketCrossOriginConfiguration#setExposeHeaders(List)`
    `void` | `setId(java.lang.String id)` Sets the ID of this rule.
    `void` | `setMaxAgeSeconds(int maxAgeSeconds)` Sets the max age in seconds of the rule.
    `CORSRule` | `withAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)` Sets the allowed headers of this rule and returns a reference to this object for method chaining.
    `CORSRule` | `withAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)` Sets the allowed methods of this rule and returns a reference to this object for method chaining.
    `CORSRule` | `withAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)` Sets the allowed origins of this rule and returns a reference to this object for method chaining.
    `CORSRule` | `withExposedHeaders(java.util.List<java.lang.String> exposedHeaders)` Sets the exposeHeaders of this rule and returns a reference to this object for method chaining.
    `CORSRule` | `withId(java.lang.String id)` Sets the ID of this rule and returns a reference to this object for method chaining.
    `CORSRule` | `withMaxAgeSeconds(int maxAgeSeconds)` Sets the max age in seconds of this rule and returns a reference to this object for method chaining.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### CORSRule

          public CORSRule()

  - ### メソッドの詳細

    - #### setId

          public void setId(java.lang.String id)

      Sets the ID of this rule. Rules must be less than 255 alphanumeric characters, and must be unique for a bucket. If you do not assign an ID, one will be generated.

    - #### getId

          public java.lang.String getId()

      Returns the Id of this rule.

    - #### withId

          public CORSRule withId(java.lang.String id)

      Sets the ID of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setId(String)`

    - #### setAllowedMethods

          public void setAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)

      Sets the allowed methods of the rule.

    - #### setAllowedMethods

          public void setAllowedMethods(CORSRule.AllowedMethods... allowedMethods)

      Convenience array style method for `BucketCrossOriginConfiguration#setAllowedMethods(List)`

    - #### getAllowedMethods

          public java.util.List<CORSRule.AllowedMethods> getAllowedMethods()

      Returns the allowed methods of this rule.

    - #### withAllowedMethods

          public CORSRule withAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)

      Sets the allowed methods of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setAllowedMethods(List)`

    - #### setAllowedOrigins

          public void setAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)

      Sets the allowed origins of the rule.

    - #### setAllowedOrigins

          public void setAllowedOrigins(java.lang.String... allowedOrigins)

      Convenience array style method for `BucketCrossOriginConfiguration#setAllowedOrigins(List)`

    - #### getAllowedOrigins

          public java.util.List<java.lang.String> getAllowedOrigins()

      Returns the allowed origins of this rule and returns a reference to this object for method chaining.

    - #### withAllowedOrigins

          public CORSRule withAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)

      Sets the allowed origins of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setAllowedOrigins(List)`

    - #### setMaxAgeSeconds

          public void setMaxAgeSeconds(int maxAgeSeconds)

      Sets the max age in seconds of the rule.

    - #### getMaxAgeSeconds

          public int getMaxAgeSeconds()

      Sets the ID of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setId(String)`

    - #### withMaxAgeSeconds

          public CORSRule withMaxAgeSeconds(int maxAgeSeconds)

      Sets the max age in seconds of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setMaxAgeSeconds(int)`

    - #### setExposedHeaders

          public void setExposedHeaders(java.util.List<java.lang.String> exposedHeaders)

      Sets the expose headers of the rule.

    - #### setExposedHeaders

          public void setExposedHeaders(java.lang.String... exposedHeaders)

      Convenience array style method for `BucketCrossOriginConfiguration#setExposeHeaders(List)`

    - #### getExposedHeaders

          public java.util.List<java.lang.String> getExposedHeaders()

      Returns expose headers of this rule and returns a reference to this object for method chaining.

    - #### withExposedHeaders

          public CORSRule withExposedHeaders(java.util.List<java.lang.String> exposedHeaders)

      Sets the exposeHeaders of this rule and returns a reference to this object for method chaining.
      関連項目:
        `CORSRule#setExposeHeaders(List)`

    - #### setAllowedHeaders

          public void setAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)

      Sets the allowed headers for the rule.

    - #### setAllowedHeaders

          public void setAllowedHeaders(java.lang.String... allowedHeaders)

      Convenience array style method for `BucketCrossOriginConfiguration#setAllowedHeaders(List)`

    - #### getAllowedHeaders

          public java.util.List<java.lang.String> getAllowedHeaders()

      Returns allowed headers of this rule.

    - #### withAllowedHeaders

          public CORSRule withAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)

      Sets the allowed headers of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setAllowedHeaders(List)`