AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetObjectAclResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/Owner.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/RequestCharged.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3/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 S3
28{
29namespace Model
30{
32 {
33 public:
34 AWS_S3_API GetObjectAclResult() = default;
37
38
40
43 inline const Owner& GetOwner() const { return m_owner; }
44 template<typename OwnerT = Owner>
45 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
46 template<typename OwnerT = Owner>
47 GetObjectAclResult& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
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) { m_grantsHasBeenSet = true; m_grants = std::forward<GrantsT>(value); }
57 template<typename GrantsT = Aws::Vector<Grant>>
58 GetObjectAclResult& WithGrants(GrantsT&& value) { SetGrants(std::forward<GrantsT>(value)); return *this;}
59 template<typename GrantsT = Grant>
60 GetObjectAclResult& AddGrants(GrantsT&& value) { m_grantsHasBeenSet = true; m_grants.emplace_back(std::forward<GrantsT>(value)); return *this; }
62
64
65 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
66 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 GetObjectAclResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
80 Owner m_owner;
81 bool m_ownerHasBeenSet = false;
82
83 Aws::Vector<Grant> m_grants;
84 bool m_grantsHasBeenSet = false;
85
87 bool m_requestChargedHasBeenSet = false;
88
89 Aws::String m_requestId;
90 bool m_requestIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace S3
95} // 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