AWS SDK for C++  0.14.3
AWS SDK for C++
GetObjectAclResult.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/model/Owner.h>
20 #include <aws/s3/model/Grant.h>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace S3
35 {
36 namespace Model
37 {
39  {
40  public:
44 
45 
46  inline const Owner& GetOwner() const{ return m_owner; }
47 
48 
49  inline void SetOwner(const Owner& value) { m_owner = value; }
50 
51 
52  inline void SetOwner(Owner&& value) { m_owner = value; }
53 
54 
55  inline GetObjectAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
56 
57 
58  inline GetObjectAclResult& WithOwner(Owner&& value) { SetOwner(value); return *this;}
59 
63  inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
64 
68  inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
69 
73  inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = value; }
74 
78  inline GetObjectAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
79 
83  inline GetObjectAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(value); return *this;}
84 
88  inline GetObjectAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
89 
93  inline GetObjectAclResult& AddGrants(Grant&& value) { m_grants.push_back(value); return *this; }
94 
95 
96  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
97 
98 
99  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
100 
101 
102  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
103 
104 
105  inline GetObjectAclResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
106 
107 
108  inline GetObjectAclResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
109 
110  private:
111  Owner m_owner;
112  Aws::Vector<Grant> m_grants;
113  RequestCharged m_requestCharged;
114  };
115 
116 } // namespace Model
117 } // namespace S3
118 } // namespace Aws
void SetGrants(Aws::Vector< Grant > &&value)
const RequestCharged & GetRequestCharged() const
GetObjectAclResult & WithRequestCharged(const RequestCharged &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetObjectAclResult & AddGrants(Grant &&value)
GetObjectAclResult & WithGrants(const Aws::Vector< Grant > &value)
GetObjectAclResult & WithOwner(const Owner &value)
GetObjectAclResult & WithRequestCharged(RequestCharged &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
void SetGrants(const Aws::Vector< Grant > &value)
GetObjectAclResult & WithOwner(Owner &&value)
const Aws::Vector< Grant > & GetGrants() const
void SetRequestCharged(RequestCharged &&value)
void SetOwner(const Owner &value)
GetObjectAclResult & AddGrants(const Grant &value)
GetObjectAclResult & WithGrants(Aws::Vector< Grant > &&value)
JSON (JavaScript Object Notation).
void SetRequestCharged(const RequestCharged &value)