AWS SDK for C++

AWS SDK for C++ Version 1.11.936

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
94 inline const Aws::String& GetMatchedInstanceArn() const { return m_matchedInstanceArn; }
95 template <typename MatchedInstanceArnT = Aws::String>
96 void SetMatchedInstanceArn(MatchedInstanceArnT&& value) {
97 m_matchedInstanceArnHasBeenSet = true;
98 m_matchedInstanceArn = std::forward<MatchedInstanceArnT>(value);
99 }
100 template <typename MatchedInstanceArnT = Aws::String>
101 GetDataAccessResult& WithMatchedInstanceArn(MatchedInstanceArnT&& value) {
102 SetMatchedInstanceArn(std::forward<MatchedInstanceArnT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
118 GetDataAccessResult& WithRequestId(RequestIdT&& value) {
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetHostId() const { return m_hostId; }
129 template <typename HostIdT = Aws::String>
130 void SetHostId(HostIdT&& value) {
131 m_hostIdHasBeenSet = true;
132 m_hostId = std::forward<HostIdT>(value);
133 }
134 template <typename HostIdT = Aws::String>
135 GetDataAccessResult& WithHostId(HostIdT&& value) {
136 SetHostId(std::forward<HostIdT>(value));
137 return *this;
138 }
140 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
141
142 private:
143 Credentials m_credentials;
144
145 Aws::String m_matchedGrantTarget;
146
147 Grantee m_grantee;
148
149 Aws::String m_matchedInstanceArn;
150
151 Aws::String m_requestId;
152
153 Aws::String m_hostId;
154 Aws::Http::HttpResponseCode m_HttpResponseCode;
155 bool m_credentialsHasBeenSet = false;
156 bool m_matchedGrantTargetHasBeenSet = false;
157 bool m_granteeHasBeenSet = false;
158 bool m_matchedInstanceArnHasBeenSet = false;
159 bool m_requestIdHasBeenSet = false;
160 bool m_hostIdHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace S3Control
165} // namespace Aws
void SetMatchedGrantTarget(MatchedGrantTargetT &&value)
GetDataAccessResult & WithMatchedGrantTarget(MatchedGrantTargetT &&value)
void SetMatchedInstanceArn(MatchedInstanceArnT &&value)
GetDataAccessResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3CONTROL_API GetDataAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetMatchedInstanceArn() const
GetDataAccessResult & WithCredentials(CredentialsT &&value)
GetDataAccessResult & WithHostId(HostIdT &&value)
GetDataAccessResult & WithGrantee(GranteeT &&value)
AWS_S3CONTROL_API GetDataAccessResult()=default
GetDataAccessResult & WithMatchedInstanceArn(MatchedInstanceArnT &&value)
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