AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetDataAccessResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/Credentials.h>
11#include <aws/s3control/model/Grantee.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 S3Control {
25namespace Model {
27 public:
28 AWS_S3CONTROL_API GetDataAccessResult() = default;
31
33
36 inline const Credentials& GetCredentials() const { return m_credentials; }
37 template <typename CredentialsT = Credentials>
38 void SetCredentials(CredentialsT&& value) {
39 m_credentialsHasBeenSet = true;
40 m_credentials = std::forward<CredentialsT>(value);
41 }
42 template <typename CredentialsT = Credentials>
43 GetDataAccessResult& WithCredentials(CredentialsT&& value) {
44 SetCredentials(std::forward<CredentialsT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetMatchedGrantTarget() const { return m_matchedGrantTarget; }
55 template <typename MatchedGrantTargetT = Aws::String>
56 void SetMatchedGrantTarget(MatchedGrantTargetT&& value) {
57 m_matchedGrantTargetHasBeenSet = true;
58 m_matchedGrantTarget = std::forward<MatchedGrantTargetT>(value);
59 }
60 template <typename MatchedGrantTargetT = Aws::String>
61 GetDataAccessResult& WithMatchedGrantTarget(MatchedGrantTargetT&& value) {
62 SetMatchedGrantTarget(std::forward<MatchedGrantTargetT>(value));
63 return *this;
64 }
66
68
76 inline const Grantee& GetGrantee() const { return m_grantee; }
77 template <typename GranteeT = Grantee>
78 void SetGrantee(GranteeT&& value) {
79 m_granteeHasBeenSet = true;
80 m_grantee = std::forward<GranteeT>(value);
81 }
82 template <typename GranteeT = Grantee>
83 GetDataAccessResult& WithGrantee(GranteeT&& value) {
84 SetGrantee(std::forward<GranteeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 GetDataAccessResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetHostId() const { return m_hostId; }
111 template <typename HostIdT = Aws::String>
112 void SetHostId(HostIdT&& value) {
113 m_hostIdHasBeenSet = true;
114 m_hostId = std::forward<HostIdT>(value);
115 }
116 template <typename HostIdT = Aws::String>
117 GetDataAccessResult& WithHostId(HostIdT&& value) {
118 SetHostId(std::forward<HostIdT>(value));
119 return *this;
120 }
122 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
123
124 private:
125 Credentials m_credentials;
126
127 Aws::String m_matchedGrantTarget;
128
129 Grantee m_grantee;
130
131 Aws::String m_requestId;
132
133 Aws::String m_hostId;
134 Aws::Http::HttpResponseCode m_HttpResponseCode;
135 bool m_credentialsHasBeenSet = false;
136 bool m_matchedGrantTargetHasBeenSet = false;
137 bool m_granteeHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139 bool m_hostIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace S3Control
144} // namespace Aws
void SetMatchedGrantTarget(MatchedGrantTargetT &&value)
GetDataAccessResult & WithMatchedGrantTarget(MatchedGrantTargetT &&value)
GetDataAccessResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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