com.amazonaws.services.s3.model

## クラス ResponseHeaderOverrides

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.s3.model.ResponseHeaderOverrides

-     public class ResponseHeaderOverrides
      extends AmazonWebServiceRequest

  Container object for overriding headers on a `GetObjectRequest` or `GeneratePresignedUrlRequest` response. Response headers can be set on a `GetObjectRequest` or a `GeneratePresignedUrlRequest` in order to control particular HTTP headers in the service response from those service interfaces.

  For example, a client could dynamically change the apparent Content-Disposition header of a single object, so that it appears to have a different file name for different callers. One client could be configured return the object with

       Content-Disposition: attachment; filename=FileName1.exe

  while another could return that same object with headers

       Content-Disposition: attachment; filename=FileName2.pdf

  関連項目:
    `GetObjectRequest.setResponseHeaders(ResponseHeaderOverrides)`, `GeneratePresignedUrlRequest.setResponseHeaders(ResponseHeaderOverrides)`

- - ### フィールドの概要

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `static java.lang.String` | `RESPONSE_HEADER_CACHE_CONTROL`
    `static java.lang.String` | `RESPONSE_HEADER_CONTENT_DISPOSITION`
    `static java.lang.String` | `RESPONSE_HEADER_CONTENT_ENCODING`
    `static java.lang.String` | `RESPONSE_HEADER_CONTENT_LANGUAGE`
    `static java.lang.String` | `RESPONSE_HEADER_CONTENT_TYPE`
    `static java.lang.String` | `RESPONSE_HEADER_EXPIRES`

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getCacheControl()` Returns the cache control response header override if it has been specified, or null otherwise.
    `java.lang.String` | `getContentDisposition()` Returns the content disposition response header override if it has been specified, or null otherwise.
    `java.lang.String` | `getContentEncoding()` Returns the content encoding response header override if it has been specified, or null otherwise.
    `java.lang.String` | `getContentLanguage()` Returns the content language response header override if it has been specified, or null otherwise.
    `java.lang.String` | `getContentType()` Returns the content type response header override if it has been specified, or null otherwise.
    `java.lang.String` | `getExpires()` Returns the expires response header override if it has been specified, or null otherwise.
    `void` | `setCacheControl(java.lang.String cacheControl)` Sets the cache control response header.
    `void` | `setContentDisposition(java.lang.String contentDisposition)` Sets the content disposition response header override.
    `void` | `setContentEncoding(java.lang.String contentEncoding)` Sets the content encoding response header override.
    `void` | `setContentLanguage(java.lang.String contentLanguage)` Sets the content language response header override
    `void` | `setContentType(java.lang.String contentType)` Sets the content type response header override.
    `void` | `setExpires(java.lang.String expires)` Sets the expires response header override.
    `ResponseHeaderOverrides` | `withCacheControl(java.lang.String cacheControl)` Sets the cache control response header.
    `ResponseHeaderOverrides` | `withContentDisposition(java.lang.String contentDisposition)` Sets the content disposition response header override.
    `ResponseHeaderOverrides` | `withContentEncoding(java.lang.String contentEncoding)` Sets the content encoding response header override.
    `ResponseHeaderOverrides` | `withContentLanguage(java.lang.String contentLanguage)` Sets the content language response header override
    `ResponseHeaderOverrides` | `withContentType(java.lang.String contentType)` Sets the content type response header override.
    `ResponseHeaderOverrides` | `withExpires(java.lang.String expires)` Sets the expires response header override.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

- - ### フィールドの詳細

    - #### RESPONSE_HEADER_CONTENT_TYPE

          public static final java.lang.String RESPONSE_HEADER_CONTENT_TYPE

      関連項目:
        定数フィールド値

    - #### RESPONSE_HEADER_CONTENT_LANGUAGE

          public static final java.lang.String RESPONSE_HEADER_CONTENT_LANGUAGE

      関連項目:
        定数フィールド値

    - #### RESPONSE_HEADER_EXPIRES

          public static final java.lang.String RESPONSE_HEADER_EXPIRES

      関連項目:
        定数フィールド値

    - #### RESPONSE_HEADER_CACHE_CONTROL

          public static final java.lang.String RESPONSE_HEADER_CACHE_CONTROL

      関連項目:
        定数フィールド値

    - #### RESPONSE_HEADER_CONTENT_DISPOSITION

          public static final java.lang.String RESPONSE_HEADER_CONTENT_DISPOSITION

      関連項目:
        定数フィールド値

    - #### RESPONSE_HEADER_CONTENT_ENCODING

          public static final java.lang.String RESPONSE_HEADER_CONTENT_ENCODING

      関連項目:
        定数フィールド値

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

    - #### ResponseHeaderOverrides

          public ResponseHeaderOverrides()

  - ### メソッドの詳細

    - #### getContentType

          public java.lang.String getContentType()

      Returns the content type response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the content type response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_CONTENT_TYPE`

    - #### setContentType

          public void setContentType(java.lang.String contentType)

      Sets the content type response header override.
      関連項目:
        `RESPONSE_HEADER_CONTENT_TYPE`

    - #### withContentType

          public ResponseHeaderOverrides withContentType(java.lang.String contentType)

      Sets the content type response header override.
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_CONTENT_TYPE`

    - #### getContentLanguage

          public java.lang.String getContentLanguage()

      Returns the content language response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the content language response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_CONTENT_LANGUAGE`

    - #### setContentLanguage

          public void setContentLanguage(java.lang.String contentLanguage)

      Sets the content language response header override
      関連項目:
        `RESPONSE_HEADER_CONTENT_LANGUAGE`

    - #### withContentLanguage

          public ResponseHeaderOverrides withContentLanguage(java.lang.String contentLanguage)

      Sets the content language response header override
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_CONTENT_LANGUAGE`

    - #### getExpires

          public java.lang.String getExpires()

      Returns the expires response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the expires response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_EXPIRES`

    - #### setExpires

          public void setExpires(java.lang.String expires)

      Sets the expires response header override.
      関連項目:
        `RESPONSE_HEADER_EXPIRES`

    - #### withExpires

          public ResponseHeaderOverrides withExpires(java.lang.String expires)

      Sets the expires response header override.
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_EXPIRES`

    - #### getCacheControl

          public java.lang.String getCacheControl()

      Returns the cache control response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the cache control response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_CACHE_CONTROL`

    - #### setCacheControl

          public void setCacheControl(java.lang.String cacheControl)

      Sets the cache control response header.
      関連項目:
        `RESPONSE_HEADER_CACHE_CONTROL`

    - #### withCacheControl

          public ResponseHeaderOverrides withCacheControl(java.lang.String cacheControl)

      Sets the cache control response header.
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_CACHE_CONTROL`

    - #### getContentDisposition

          public java.lang.String getContentDisposition()

      Returns the content disposition response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the content disposition response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_CONTENT_DISPOSITION`

    - #### setContentDisposition

          public void setContentDisposition(java.lang.String contentDisposition)

      Sets the content disposition response header override.
      関連項目:
        `RESPONSE_HEADER_CONTENT_DISPOSITION`

    - #### withContentDisposition

          public ResponseHeaderOverrides withContentDisposition(java.lang.String contentDisposition)

      Sets the content disposition response header override.
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_CONTENT_DISPOSITION`

    - #### getContentEncoding

          public java.lang.String getContentEncoding()

      Returns the content encoding response header override if it has been specified, or null otherwise.
      戻り値:
        Returns the content encoding response header override if it has been specified, or null otherwise.
      関連項目:
        `RESPONSE_HEADER_CONTENT_ENCODING`

    - #### setContentEncoding

          public void setContentEncoding(java.lang.String contentEncoding)

      Sets the content encoding response header override.
      関連項目:
        `RESPONSE_HEADER_CONTENT_ENCODING`

    - #### withContentEncoding

          public ResponseHeaderOverrides withContentEncoding(java.lang.String contentEncoding)

      Sets the content encoding response header override.
      戻り値:
        This `ResponseHeaderOverrides` object for method chaining.
      関連項目:
        `RESPONSE_HEADER_CONTENT_ENCODING`