AWS SDK for C++  0.14.3
AWS SDK for C++
ListBucketsResult.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>
18 #include <aws/s3/model/Owner.h>
19 #include <aws/s3/model/Bucket.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 Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
46 
47 
48  inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
49 
50 
51  inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = value; }
52 
53 
54  inline ListBucketsResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
55 
56 
57  inline ListBucketsResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(value); return *this;}
58 
59 
60  inline ListBucketsResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
61 
62 
63  inline ListBucketsResult& AddBuckets(Bucket&& value) { m_buckets.push_back(value); return *this; }
64 
65 
66  inline const Owner& GetOwner() const{ return m_owner; }
67 
68 
69  inline void SetOwner(const Owner& value) { m_owner = value; }
70 
71 
72  inline void SetOwner(Owner&& value) { m_owner = value; }
73 
74 
75  inline ListBucketsResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
76 
77 
78  inline ListBucketsResult& WithOwner(Owner&& value) { SetOwner(value); return *this;}
79 
80  private:
81  Aws::Vector<Bucket> m_buckets;
82  Owner m_owner;
83  };
84 
85 } // namespace Model
86 } // namespace S3
87 } // namespace Aws
ListBucketsResult & WithBuckets(Aws::Vector< Bucket > &&value)
ListBucketsResult & AddBuckets(const Bucket &value)
void SetBuckets(const Aws::Vector< Bucket > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
ListBucketsResult & AddBuckets(Bucket &&value)
void SetBuckets(Aws::Vector< Bucket > &&value)
ListBucketsResult & WithOwner(Owner &&value)
ListBucketsResult & WithBuckets(const Aws::Vector< Bucket > &value)
const Aws::Vector< Bucket > & GetBuckets() const
void SetOwner(const Owner &value)
ListBucketsResult & WithOwner(const Owner &value)
JSON (JavaScript Object Notation).