AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketAclResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/Owner.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3-crt/model/Grant.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 S3Crt
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3CRT_API GetBucketAclResult();
36
37
39
42 inline const Owner& GetOwner() const{ return m_owner; }
43 inline void SetOwner(const Owner& value) { m_owner = value; }
44 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
45 inline GetBucketAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
46 inline GetBucketAclResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
48
50
53 inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
54 inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
55 inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = std::move(value); }
56 inline GetBucketAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
57 inline GetBucketAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(std::move(value)); return *this;}
58 inline GetBucketAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
59 inline GetBucketAclResult& AddGrants(Grant&& value) { m_grants.push_back(std::move(value)); return *this; }
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline GetBucketAclResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline GetBucketAclResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline GetBucketAclResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 Owner m_owner;
75
76 Aws::Vector<Grant> m_grants;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace S3Crt
83} // namespace Aws
GetBucketAclResult & AddGrants(Grant &&value)
GetBucketAclResult & WithRequestId(const char *value)
GetBucketAclResult & WithOwner(Owner &&value)
AWS_S3CRT_API GetBucketAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(const Aws::String &value)
void SetGrants(Aws::Vector< Grant > &&value)
GetBucketAclResult & WithGrants(Aws::Vector< Grant > &&value)
const Aws::Vector< Grant > & GetGrants() const
GetBucketAclResult & WithOwner(const Owner &value)
GetBucketAclResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
GetBucketAclResult & WithGrants(const Aws::Vector< Grant > &value)
void SetGrants(const Aws::Vector< Grant > &value)
AWS_S3CRT_API GetBucketAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetBucketAclResult & AddGrants(const Grant &value)
GetBucketAclResult & WithRequestId(const Aws::String &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