AWS SDK for C++  0.14.3
AWS SDK for C++
GetBucketAclResult.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>
19 #include <aws/s3/model/Grant.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace S3
34 {
35 namespace Model
36 {
38  {
39  public:
43 
44 
45  inline const Owner& GetOwner() const{ return m_owner; }
46 
47 
48  inline void SetOwner(const Owner& value) { m_owner = value; }
49 
50 
51  inline void SetOwner(Owner&& value) { m_owner = value; }
52 
53 
54  inline GetBucketAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
55 
56 
57  inline GetBucketAclResult& WithOwner(Owner&& value) { SetOwner(value); return *this;}
58 
62  inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
63 
67  inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
68 
72  inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = value; }
73 
77  inline GetBucketAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
78 
82  inline GetBucketAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(value); return *this;}
83 
87  inline GetBucketAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
88 
92  inline GetBucketAclResult& AddGrants(Grant&& value) { m_grants.push_back(value); return *this; }
93 
94  private:
95  Owner m_owner;
96  Aws::Vector<Grant> m_grants;
97  };
98 
99 } // namespace Model
100 } // namespace S3
101 } // namespace Aws
GetBucketAclResult & AddGrants(const Grant &value)
void SetGrants(Aws::Vector< Grant > &&value)
GetBucketAclResult & WithGrants(const Aws::Vector< Grant > &value)
void SetGrants(const Aws::Vector< Grant > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetBucketAclResult & WithGrants(Aws::Vector< Grant > &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
const Aws::Vector< Grant > & GetGrants() const
GetBucketAclResult & WithOwner(const Owner &value)
void SetOwner(const Owner &value)
GetBucketAclResult & AddGrants(Grant &&value)
GetBucketAclResult & WithOwner(Owner &&value)
JSON (JavaScript Object Notation).