AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetBucketAclResult.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
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3 {
25namespace Model {
27 public:
28 AWS_S3_API GetBucketAclResult() = default;
31
33
36 inline const Owner& GetOwner() const { return m_owner; }
37 template <typename OwnerT = Owner>
38 void SetOwner(OwnerT&& value) {
39 m_ownerHasBeenSet = true;
40 m_owner = std::forward<OwnerT>(value);
41 }
42 template <typename OwnerT = Owner>
43 GetBucketAclResult& WithOwner(OwnerT&& value) {
44 SetOwner(std::forward<OwnerT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Grant>& GetGrants() const { return m_grants; }
54 template <typename GrantsT = Aws::Vector<Grant>>
55 void SetGrants(GrantsT&& value) {
56 m_grantsHasBeenSet = true;
57 m_grants = std::forward<GrantsT>(value);
58 }
59 template <typename GrantsT = Aws::Vector<Grant>>
60 GetBucketAclResult& WithGrants(GrantsT&& value) {
61 SetGrants(std::forward<GrantsT>(value));
62 return *this;
63 }
64 template <typename GrantsT = Grant>
65 GetBucketAclResult& AddGrants(GrantsT&& value) {
66 m_grantsHasBeenSet = true;
67 m_grants.emplace_back(std::forward<GrantsT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 GetBucketAclResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 private:
87 Owner m_owner;
88
89 Aws::Vector<Grant> m_grants;
90
91 Aws::String m_requestId;
92 bool m_ownerHasBeenSet = false;
93 bool m_grantsHasBeenSet = false;
94 bool m_requestIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace S3
99} // namespace Aws
AWS_S3_API GetBucketAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetBucketAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetBucketAclResult()=default
GetBucketAclResult & WithGrants(GrantsT &&value)
GetBucketAclResult & AddGrants(GrantsT &&value)
GetBucketAclResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Vector< Grant > & GetGrants() const
GetBucketAclResult & WithOwner(OwnerT &&value)
const Aws::String & GetRequestId() 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