AWS SDK for C++  0.12.9
AWS SDK for C++
PutBucketAclRequest.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>
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 
42  inline const BucketCannedACL& GetACL() const{ return m_aCL; }
43 
47  inline void SetACL(const BucketCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
48 
52  inline void SetACL(BucketCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = value; }
53 
57  inline PutBucketAclRequest& WithACL(const BucketCannedACL& value) { SetACL(value); return *this;}
58 
62  inline PutBucketAclRequest& WithACL(BucketCannedACL&& value) { SetACL(value); return *this;}
63 
64 
65  inline const AccessControlPolicy& GetAccessControlPolicy() const{ return m_accessControlPolicy; }
66 
67 
68  inline void SetAccessControlPolicy(const AccessControlPolicy& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
69 
70 
71  inline void SetAccessControlPolicy(AccessControlPolicy&& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
72 
73 
74  inline PutBucketAclRequest& WithAccessControlPolicy(const AccessControlPolicy& value) { SetAccessControlPolicy(value); return *this;}
75 
76 
77  inline PutBucketAclRequest& WithAccessControlPolicy(AccessControlPolicy&& value) { SetAccessControlPolicy(value); return *this;}
78 
79 
80  inline const Aws::String& GetBucket() const{ return m_bucket; }
81 
82 
83  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
84 
85 
86  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
87 
88 
89  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
90 
91 
92  inline PutBucketAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
93 
94 
95  inline PutBucketAclRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
96 
97 
98  inline PutBucketAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
99 
100 
101  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
102 
103 
104  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
105 
106 
107  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
108 
109 
110  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
111 
112 
113  inline PutBucketAclRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
114 
115 
116  inline PutBucketAclRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(value); return *this;}
117 
118 
119  inline PutBucketAclRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
120 
125  inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
126 
131  inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
132 
137  inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
138 
143  inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
144 
149  inline PutBucketAclRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
150 
155  inline PutBucketAclRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(value); return *this;}
156 
161  inline PutBucketAclRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
162 
166  inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
167 
171  inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
172 
176  inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
177 
181  inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
182 
186  inline PutBucketAclRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
187 
191  inline PutBucketAclRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(value); return *this;}
192 
196  inline PutBucketAclRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
197 
201  inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
202 
206  inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
207 
211  inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
212 
216  inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
217 
221  inline PutBucketAclRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
222 
226  inline PutBucketAclRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(value); return *this;}
227 
231  inline PutBucketAclRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
232 
236  inline const Aws::String& GetGrantWrite() const{ return m_grantWrite; }
237 
241  inline void SetGrantWrite(const Aws::String& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
242 
246  inline void SetGrantWrite(Aws::String&& value) { m_grantWriteHasBeenSet = true; m_grantWrite = value; }
247 
251  inline void SetGrantWrite(const char* value) { m_grantWriteHasBeenSet = true; m_grantWrite.assign(value); }
252 
256  inline PutBucketAclRequest& WithGrantWrite(const Aws::String& value) { SetGrantWrite(value); return *this;}
257 
261  inline PutBucketAclRequest& WithGrantWrite(Aws::String&& value) { SetGrantWrite(value); return *this;}
262 
266  inline PutBucketAclRequest& WithGrantWrite(const char* value) { SetGrantWrite(value); return *this;}
267 
271  inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
272 
276  inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
277 
281  inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
282 
286  inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
287 
291  inline PutBucketAclRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
292 
296  inline PutBucketAclRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(value); return *this;}
297 
301  inline PutBucketAclRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
302 
303  private:
304  BucketCannedACL m_aCL;
305  bool m_aCLHasBeenSet;
306  AccessControlPolicy m_accessControlPolicy;
307  bool m_accessControlPolicyHasBeenSet;
308  Aws::String m_bucket;
309  bool m_bucketHasBeenSet;
310  Aws::String m_contentMD5;
311  bool m_contentMD5HasBeenSet;
312  Aws::String m_grantFullControl;
313  bool m_grantFullControlHasBeenSet;
314  Aws::String m_grantRead;
315  bool m_grantReadHasBeenSet;
316  Aws::String m_grantReadACP;
317  bool m_grantReadACPHasBeenSet;
318  Aws::String m_grantWrite;
319  bool m_grantWriteHasBeenSet;
320  Aws::String m_grantWriteACP;
321  bool m_grantWriteACPHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace S3
326 } // namespace Aws
PutBucketAclRequest & WithGrantReadACP(Aws::String &&value)
const Aws::String & GetGrantReadACP() const
void SetContentMD5(Aws::String &&value)
void SetGrantFullControl(const char *value)
PutBucketAclRequest & WithACL(BucketCannedACL &&value)
PutBucketAclRequest & WithContentMD5(const char *value)
PutBucketAclRequest & WithBucket(const char *value)
const BucketCannedACL & GetACL() const
void SetContentMD5(const Aws::String &value)
void SetGrantRead(const Aws::String &value)
PutBucketAclRequest & WithGrantRead(Aws::String &&value)
const Aws::String & GetGrantRead() const
const AccessControlPolicy & GetAccessControlPolicy() const
void SetGrantWrite(Aws::String &&value)
void SetBucket(Aws::String &&value)
PutBucketAclRequest & WithGrantRead(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::String & GetGrantWrite() const
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
PutBucketAclRequest & WithAccessControlPolicy(AccessControlPolicy &&value)
const Aws::String & GetContentMD5() const
void SetGrantReadACP(const Aws::String &value)
void SetGrantRead(Aws::String &&value)
PutBucketAclRequest & WithGrantFullControl(const char *value)
PutBucketAclRequest & WithBucket(Aws::String &&value)
void SetGrantFullControl(const Aws::String &value)
PutBucketAclRequest & WithContentMD5(Aws::String &&value)
PutBucketAclRequest & WithGrantWriteACP(const char *value)
PutBucketAclRequest & WithGrantWrite(Aws::String &&value)
PutBucketAclRequest & WithGrantFullControl(Aws::String &&value)
void SetGrantReadACP(Aws::String &&value)
PutBucketAclRequest & WithGrantRead(const char *value)
PutBucketAclRequest & WithContentMD5(const Aws::String &value)
const Aws::String & GetGrantWriteACP() const
void SetAccessControlPolicy(AccessControlPolicy &&value)
void SetGrantWriteACP(const Aws::String &value)
PutBucketAclRequest & WithGrantFullControl(const Aws::String &value)
void SetAccessControlPolicy(const AccessControlPolicy &value)
void SetACL(BucketCannedACL &&value)
PutBucketAclRequest & WithGrantWrite(const char *value)
PutBucketAclRequest & WithBucket(const Aws::String &value)
PutBucketAclRequest & WithGrantWriteACP(Aws::String &&value)
void SetGrantFullControl(Aws::String &&value)
PutBucketAclRequest & WithAccessControlPolicy(const AccessControlPolicy &value)
PutBucketAclRequest & WithGrantReadACP(const char *value)
PutBucketAclRequest & WithGrantWriteACP(const Aws::String &value)
const Aws::String & GetGrantFullControl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetGrantWriteACP(Aws::String &&value)
const Aws::String & GetBucket() const
PutBucketAclRequest & WithGrantReadACP(const Aws::String &value)
void SetBucket(const Aws::String &value)
PutBucketAclRequest & WithGrantWrite(const Aws::String &value)
PutBucketAclRequest & WithACL(const BucketCannedACL &value)
void SetGrantWriteACP(const char *value)
void SetGrantWrite(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetACL(const BucketCannedACL &value)