AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteObjectsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
17 #include <aws/s3/S3Request.h>
19 #include <aws/s3/model/Delete.h>
21 
22 namespace Aws
23 {
24 namespace S3
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39  inline bool ShouldComputeContentMd5() const override { return true; }
40 
41 
42  inline const Aws::String& GetBucket() const{ return m_bucket; }
43 
44 
45  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
46 
47 
48  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
49 
50 
51  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
52 
53 
54  inline DeleteObjectsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
55 
56 
57  inline DeleteObjectsRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
58 
59 
60  inline DeleteObjectsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
61 
62 
63  inline const Delete& GetDelete() const{ return m_delete; }
64 
65 
66  inline void SetDelete(const Delete& value) { m_deleteHasBeenSet = true; m_delete = value; }
67 
68 
69  inline void SetDelete(Delete&& value) { m_deleteHasBeenSet = true; m_delete = value; }
70 
71 
72  inline DeleteObjectsRequest& WithDelete(const Delete& value) { SetDelete(value); return *this;}
73 
74 
75  inline DeleteObjectsRequest& WithDelete(Delete&& value) { SetDelete(value); return *this;}
76 
81  inline const Aws::String& GetMFA() const{ return m_mFA; }
82 
87  inline void SetMFA(const Aws::String& value) { m_mFAHasBeenSet = true; m_mFA = value; }
88 
93  inline void SetMFA(Aws::String&& value) { m_mFAHasBeenSet = true; m_mFA = value; }
94 
99  inline void SetMFA(const char* value) { m_mFAHasBeenSet = true; m_mFA.assign(value); }
100 
105  inline DeleteObjectsRequest& WithMFA(const Aws::String& value) { SetMFA(value); return *this;}
106 
111  inline DeleteObjectsRequest& WithMFA(Aws::String&& value) { SetMFA(value); return *this;}
112 
117  inline DeleteObjectsRequest& WithMFA(const char* value) { SetMFA(value); return *this;}
118 
119 
120  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
121 
122 
123  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
124 
125 
126  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
127 
128 
129  inline DeleteObjectsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
130 
131 
132  inline DeleteObjectsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(value); return *this;}
133 
134  private:
135  Aws::String m_bucket;
136  bool m_bucketHasBeenSet;
137  Delete m_delete;
138  bool m_deleteHasBeenSet;
139  Aws::String m_mFA;
140  bool m_mFAHasBeenSet;
141  RequestPayer m_requestPayer;
142  bool m_requestPayerHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace S3
147 } // namespace Aws
DeleteObjectsRequest & WithBucket(const Aws::String &value)
void SetMFA(const Aws::String &value)
DeleteObjectsRequest & WithDelete(const Delete &value)
void SetRequestPayer(const RequestPayer &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
const Aws::String & GetBucket() const
DeleteObjectsRequest & WithDelete(Delete &&value)
const RequestPayer & GetRequestPayer() const
DeleteObjectsRequest & WithMFA(const Aws::String &value)
DeleteObjectsRequest & WithRequestPayer(const RequestPayer &value)
DeleteObjectsRequest & WithMFA(const char *value)
DeleteObjectsRequest & WithBucket(Aws::String &&value)
DeleteObjectsRequest & WithMFA(Aws::String &&value)
DeleteObjectsRequest & WithBucket(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetMFA() const
DeleteObjectsRequest & WithRequestPayer(RequestPayer &&value)
void SetRequestPayer(RequestPayer &&value)
void SetBucket(const Aws::String &value)
JSON (JavaScript Object Notation).