AWS SDK for C++  0.12.9
AWS SDK for C++
GetObjectAclRequest.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>
20 
21 namespace Aws
22 {
23 namespace Http
24 {
25  class URI;
26 } //namespace Http
27 namespace S3
28 {
29 namespace Model
30 {
31 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
45  inline const Aws::String& GetBucket() const{ return m_bucket; }
46 
47 
48  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
49 
50 
51  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
52 
53 
54  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
55 
56 
57  inline GetObjectAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
58 
59 
60  inline GetObjectAclRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
61 
62 
63  inline GetObjectAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
64 
65 
66  inline const Aws::String& GetKey() const{ return m_key; }
67 
68 
69  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
70 
71 
72  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
73 
74 
75  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
76 
77 
78  inline GetObjectAclRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
79 
80 
81  inline GetObjectAclRequest& WithKey(Aws::String&& value) { SetKey(value); return *this;}
82 
83 
84  inline GetObjectAclRequest& WithKey(const char* value) { SetKey(value); return *this;}
85 
89  inline const Aws::String& GetVersionId() const{ return m_versionId; }
90 
94  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
95 
99  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
100 
104  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
105 
109  inline GetObjectAclRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
110 
114  inline GetObjectAclRequest& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
115 
119  inline GetObjectAclRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
120 
121 
122  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
123 
124 
125  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
126 
127 
128  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
129 
130 
131  inline GetObjectAclRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
132 
133 
134  inline GetObjectAclRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(value); return *this;}
135 
136  private:
137  Aws::String m_bucket;
138  bool m_bucketHasBeenSet;
139  Aws::String m_key;
140  bool m_keyHasBeenSet;
141  Aws::String m_versionId;
142  bool m_versionIdHasBeenSet;
143  RequestPayer m_requestPayer;
144  bool m_requestPayerHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace S3
149 } // namespace Aws
GetObjectAclRequest & WithBucket(const char *value)
const Aws::String & GetBucket() const
void SetKey(const Aws::String &value)
GetObjectAclRequest & WithVersionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetBucket(const Aws::String &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
const Aws::String & GetVersionId() const
void SetBucket(Aws::String &&value)
GetObjectAclRequest & WithVersionId(const char *value)
GetObjectAclRequest & WithRequestPayer(RequestPayer &&value)
void SetVersionId(Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
GetObjectAclRequest & WithBucket(const Aws::String &value)
GetObjectAclRequest & WithVersionId(Aws::String &&value)
GetObjectAclRequest & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetObjectAclRequest & WithRequestPayer(const RequestPayer &value)
GetObjectAclRequest & WithBucket(Aws::String &&value)
const Aws::String & GetKey() const
const RequestPayer & GetRequestPayer() const
GetObjectAclRequest & WithKey(const char *value)
GetObjectAclRequest & WithKey(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetRequestPayer(RequestPayer &&value)
void SetVersionId(const Aws::String &value)