com.amazonaws.services.s3.model

## クラス DeleteObjectRequest

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

-     public class DeleteObjectRequest
      extends AmazonWebServiceRequest

  Provides options for deleting a specified object in a specified bucket. Once deleted, the object can only be restored if versioning was enabled when the object was deleted.

  Note: If deleting an object that does not exist, Amazon S3 returns a success message, not an error message.

  関連項目:
    `deleteObject(String bucketName, String key)`, `deleteObject(DeleteObjectRequest deleteObjectRequest)`

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

    コンストラクタ
    コンストラクタと説明
    `DeleteObjectRequest(java.lang.String bucketName, java.lang.String key)` Constructs a new `DeleteObjectRequest`, specifying the object's bucket name and key.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getBucketName()` Gets the name of the Amazon S3 bucket containing the object to delete.
    `java.lang.String` | `getKey()` Gets the key of the object to delete.
    `void` | `setBucketName(java.lang.String bucketName)` Sets the name of the Amazon S3 bucket containing the object to delete.
    `void` | `setKey(java.lang.String key)` Sets the key of the object to delete.
    `DeleteObjectRequest` | `withBucketName(java.lang.String bucketName)` Sets the name of the Amazon S3 bucket containing the object to delete and returns this object, enabling additional method calls to be chained together.
    `DeleteObjectRequest` | `withKey(java.lang.String key)` Sets the key of the object to delete and returns this object, enabling additional method calls to be chained together.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DeleteObjectRequest

          public DeleteObjectRequest(java.lang.String bucketName,
                             java.lang.String key)

      Constructs a new `DeleteObjectRequest`, specifying the object's bucket name and key.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket containing the object to delete.
        `key` - The key of the object to delete.

  - ### メソッドの詳細

    - #### getBucketName

          public java.lang.String getBucketName()

      Gets the name of the Amazon S3 bucket containing the object to delete.
      戻り値:
        The name of the Amazon S3 bucket containing the object to delete.
      関連項目:
        `setBucketName(String)`

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the Amazon S3 bucket containing the object to delete.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket containing the object to delete.
      関連項目:
        `getBucketName()`

    - #### withBucketName

          public DeleteObjectRequest withBucketName(java.lang.String bucketName)

      Sets the name of the Amazon S3 bucket containing the object to delete and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `bucketName` - The name of the Amazon S3 bucket containing the object to delete.
      戻り値:
        The updated `DeleteObjectRequest` object, enabling additional method calls to be chained together.

    - #### getKey

          public java.lang.String getKey()

      Gets the key of the object to delete.
      戻り値:
        The key of the object to delete.
      関連項目:
        `setKey(String)`

    - #### setKey

          public void setKey(java.lang.String key)

      Sets the key of the object to delete.
      パラメータ:
        `key` - The key of the object to delete.
      関連項目:
        `getKey()`

    - #### withKey

          public DeleteObjectRequest withKey(java.lang.String key)

      Sets the key of the object to delete and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `key` - The key of the object to delete.
      戻り値:
        The updated `DeleteObjectRequest` object, enabling additional method calls to chained together.