AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListBucketsResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/model/Owner.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3/model/Bucket.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3_API ListBucketsResult();
36
37
39
42 inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
43 inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
44 inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = std::move(value); }
45 inline ListBucketsResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
46 inline ListBucketsResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
47 inline ListBucketsResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
48 inline ListBucketsResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; }
50
52
55 inline const Owner& GetOwner() const{ return m_owner; }
56 inline void SetOwner(const Owner& value) { m_owner = value; }
57 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
58 inline ListBucketsResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
59 inline ListBucketsResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
61
63
70 inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; }
71 inline void SetContinuationToken(const Aws::String& value) { m_continuationToken = value; }
72 inline void SetContinuationToken(Aws::String&& value) { m_continuationToken = std::move(value); }
73 inline void SetContinuationToken(const char* value) { m_continuationToken.assign(value); }
74 inline ListBucketsResult& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;}
75 inline ListBucketsResult& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;}
76 inline ListBucketsResult& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;}
78
80
85 inline const Aws::String& GetPrefix() const{ return m_prefix; }
86 inline void SetPrefix(const Aws::String& value) { m_prefix = value; }
87 inline void SetPrefix(Aws::String&& value) { m_prefix = std::move(value); }
88 inline void SetPrefix(const char* value) { m_prefix.assign(value); }
89 inline ListBucketsResult& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
90 inline ListBucketsResult& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
91 inline ListBucketsResult& WithPrefix(const char* value) { SetPrefix(value); return *this;}
93
95
96 inline const Aws::String& GetRequestId() const{ return m_requestId; }
97 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
98 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
99 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
100 inline ListBucketsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
101 inline ListBucketsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
102 inline ListBucketsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
104 private:
105
106 Aws::Vector<Bucket> m_buckets;
107
108 Owner m_owner;
109
110 Aws::String m_continuationToken;
111
112 Aws::String m_prefix;
113
114 Aws::String m_requestId;
115 };
116
117} // namespace Model
118} // namespace S3
119} // namespace Aws
const Aws::String & GetPrefix() const
AWS_S3_API ListBucketsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetContinuationToken() const
const Aws::Vector< Bucket > & GetBuckets() const
void SetRequestId(const Aws::String &value)
ListBucketsResult & AddBuckets(const Bucket &value)
ListBucketsResult & WithOwner(const Owner &value)
ListBucketsResult & WithPrefix(Aws::String &&value)
ListBucketsResult & WithContinuationToken(const char *value)
ListBucketsResult & WithPrefix(const Aws::String &value)
ListBucketsResult & WithBuckets(const Aws::Vector< Bucket > &value)
AWS_S3_API ListBucketsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetPrefix(Aws::String &&value)
void SetContinuationToken(const char *value)
ListBucketsResult & WithBuckets(Aws::Vector< Bucket > &&value)
ListBucketsResult & WithContinuationToken(Aws::String &&value)
ListBucketsResult & WithRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
void SetPrefix(const char *value)
ListBucketsResult & WithContinuationToken(const Aws::String &value)
ListBucketsResult & WithRequestId(const char *value)
void SetContinuationToken(Aws::String &&value)
ListBucketsResult & WithOwner(Owner &&value)
void SetBuckets(const Aws::Vector< Bucket > &value)
void SetPrefix(const Aws::String &value)
ListBucketsResult & WithRequestId(Aws::String &&value)
ListBucketsResult & AddBuckets(Bucket &&value)
ListBucketsResult & WithPrefix(const char *value)
void SetBuckets(Aws::Vector< Bucket > &&value)
void SetRequestId(Aws::String &&value)
void SetRequestId(const char *value)
void SetContinuationToken(const Aws::String &value)
void SetOwner(const Owner &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument