AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectAclResult.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/s3-crt/model/RequestCharged.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3-crt/model/Grant.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace S3Crt
28{
29namespace Model
30{
32 {
33 public:
34 AWS_S3CRT_API GetObjectAclResult();
37
38
40
43 inline const Owner& GetOwner() const{ return m_owner; }
44 inline void SetOwner(const Owner& value) { m_owner = value; }
45 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
46 inline GetObjectAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
47 inline GetObjectAclResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
49
51
54 inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
55 inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
56 inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = std::move(value); }
57 inline GetObjectAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
58 inline GetObjectAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(std::move(value)); return *this;}
59 inline GetObjectAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
60 inline GetObjectAclResult& AddGrants(Grant&& value) { m_grants.push_back(std::move(value)); return *this; }
62
64
65 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
66 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
67 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
68 inline GetObjectAclResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
69 inline GetObjectAclResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
71
73
74 inline const Aws::String& GetRequestId() const{ return m_requestId; }
75 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
76 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
77 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
78 inline GetObjectAclResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
79 inline GetObjectAclResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
80 inline GetObjectAclResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
82 private:
83
84 Owner m_owner;
85
86 Aws::Vector<Grant> m_grants;
87
88 RequestCharged m_requestCharged;
89
90 Aws::String m_requestId;
91 };
92
93} // namespace Model
94} // namespace S3Crt
95} // namespace Aws
AWS_S3CRT_API GetObjectAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAclResult & WithRequestId(const char *value)
GetObjectAclResult & WithGrants(const Aws::Vector< Grant > &value)
GetObjectAclResult & WithRequestCharged(RequestCharged &&value)
GetObjectAclResult & WithRequestId(Aws::String &&value)
void SetGrants(Aws::Vector< Grant > &&value)
void SetRequestCharged(const RequestCharged &value)
GetObjectAclResult & AddGrants(Grant &&value)
GetObjectAclResult & WithOwner(const Owner &value)
void SetGrants(const Aws::Vector< Grant > &value)
GetObjectAclResult & WithRequestCharged(const RequestCharged &value)
const Aws::String & GetRequestId() const
GetObjectAclResult & AddGrants(const Grant &value)
void SetRequestId(const Aws::String &value)
const RequestCharged & GetRequestCharged() const
const Aws::Vector< Grant > & GetGrants() const
GetObjectAclResult & WithGrants(Aws::Vector< Grant > &&value)
AWS_S3CRT_API GetObjectAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAclResult & WithRequestId(const Aws::String &value)
void SetRequestCharged(RequestCharged &&value)
GetObjectAclResult & WithOwner(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