AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectAclResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Grant.h>
11#include <aws/s3/model/Owner.h>
12#include <aws/s3/model/RequestCharged.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3 {
26namespace Model {
28 public:
29 AWS_S3_API GetObjectAclResult() = default;
32
34
37 inline const Owner& GetOwner() const { return m_owner; }
38 template <typename OwnerT = Owner>
39 void SetOwner(OwnerT&& value) {
40 m_ownerHasBeenSet = true;
41 m_owner = std::forward<OwnerT>(value);
42 }
43 template <typename OwnerT = Owner>
44 GetObjectAclResult& WithOwner(OwnerT&& value) {
45 SetOwner(std::forward<OwnerT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Grant>& GetGrants() const { return m_grants; }
55 template <typename GrantsT = Aws::Vector<Grant>>
56 void SetGrants(GrantsT&& value) {
57 m_grantsHasBeenSet = true;
58 m_grants = std::forward<GrantsT>(value);
59 }
60 template <typename GrantsT = Aws::Vector<Grant>>
61 GetObjectAclResult& WithGrants(GrantsT&& value) {
62 SetGrants(std::forward<GrantsT>(value));
63 return *this;
64 }
65 template <typename GrantsT = Grant>
66 GetObjectAclResult& AddGrants(GrantsT&& value) {
67 m_grantsHasBeenSet = true;
68 m_grants.emplace_back(std::forward<GrantsT>(value));
69 return *this;
70 }
72
74
75 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
76 inline void SetRequestCharged(RequestCharged value) {
77 m_requestChargedHasBeenSet = true;
78 m_requestCharged = value;
79 }
81 SetRequestCharged(value);
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
95 GetObjectAclResult& WithRequestId(RequestIdT&& value) {
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 private:
101 Owner m_owner;
102
103 Aws::Vector<Grant> m_grants;
104
105 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
106
107 Aws::String m_requestId;
108 bool m_ownerHasBeenSet = false;
109 bool m_grantsHasBeenSet = false;
110 bool m_requestChargedHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace S3
116} // namespace Aws
GetObjectAclResult & WithGrants(GrantsT &&value)
void SetRequestCharged(RequestCharged value)
AWS_S3_API GetObjectAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetObjectAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAclResult & WithRequestId(RequestIdT &&value)
GetObjectAclResult & WithOwner(OwnerT &&value)
GetObjectAclResult & AddGrants(GrantsT &&value)
const Aws::Vector< Grant > & GetGrants() const
void SetRequestId(RequestIdT &&value)
GetObjectAclResult & WithRequestCharged(RequestCharged value)
const Aws::String & GetRequestId() const
AWS_S3_API GetObjectAclResult()=default
RequestCharged GetRequestCharged() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument