AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetDataAccessResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/Credentials.h>
10#include <aws/s3control/model/Grantee.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Control {
24namespace Model {
26 public:
27 AWS_S3CONTROL_API GetDataAccessResult() = default;
30
32
35 inline const Credentials& GetCredentials() const { return m_credentials; }
36 template <typename CredentialsT = Credentials>
37 void SetCredentials(CredentialsT&& value) {
38 m_credentialsHasBeenSet = true;
39 m_credentials = std::forward<CredentialsT>(value);
40 }
41 template <typename CredentialsT = Credentials>
42 GetDataAccessResult& WithCredentials(CredentialsT&& value) {
43 SetCredentials(std::forward<CredentialsT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetMatchedGrantTarget() const { return m_matchedGrantTarget; }
54 template <typename MatchedGrantTargetT = Aws::String>
55 void SetMatchedGrantTarget(MatchedGrantTargetT&& value) {
56 m_matchedGrantTargetHasBeenSet = true;
57 m_matchedGrantTarget = std::forward<MatchedGrantTargetT>(value);
58 }
59 template <typename MatchedGrantTargetT = Aws::String>
60 GetDataAccessResult& WithMatchedGrantTarget(MatchedGrantTargetT&& value) {
61 SetMatchedGrantTarget(std::forward<MatchedGrantTargetT>(value));
62 return *this;
63 }
65
67
75 inline const Grantee& GetGrantee() const { return m_grantee; }
76 template <typename GranteeT = Grantee>
77 void SetGrantee(GranteeT&& value) {
78 m_granteeHasBeenSet = true;
79 m_grantee = std::forward<GranteeT>(value);
80 }
81 template <typename GranteeT = Grantee>
82 GetDataAccessResult& WithGrantee(GranteeT&& value) {
83 SetGrantee(std::forward<GranteeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 GetDataAccessResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetHostId() const { return m_hostId; }
110 template <typename HostIdT = Aws::String>
111 void SetHostId(HostIdT&& value) {
112 m_hostIdHasBeenSet = true;
113 m_hostId = std::forward<HostIdT>(value);
114 }
115 template <typename HostIdT = Aws::String>
116 GetDataAccessResult& WithHostId(HostIdT&& value) {
117 SetHostId(std::forward<HostIdT>(value));
118 return *this;
119 }
121 private:
122 Credentials m_credentials;
123
124 Aws::String m_matchedGrantTarget;
125
126 Grantee m_grantee;
127
128 Aws::String m_requestId;
129
130 Aws::String m_hostId;
131 bool m_credentialsHasBeenSet = false;
132 bool m_matchedGrantTargetHasBeenSet = false;
133 bool m_granteeHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135 bool m_hostIdHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace S3Control
140} // namespace Aws
void SetMatchedGrantTarget(MatchedGrantTargetT &&value)
GetDataAccessResult & WithMatchedGrantTarget(MatchedGrantTargetT &&value)
GetDataAccessResult & WithRequestId(RequestIdT &&value)
AWS_S3CONTROL_API GetDataAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetDataAccessResult & WithCredentials(CredentialsT &&value)
GetDataAccessResult & WithHostId(HostIdT &&value)
GetDataAccessResult & WithGrantee(GranteeT &&value)
AWS_S3CONTROL_API GetDataAccessResult()=default
const Aws::String & GetMatchedGrantTarget() const
AWS_S3CONTROL_API GetDataAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument