AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetAccessGrantsLocationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/S3Control_EXPORTS.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 GetAccessGrantsLocationResult() = default;
30
32
35 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
36 template <typename CreatedAtT = Aws::Utils::DateTime>
37 void SetCreatedAt(CreatedAtT&& value) {
38 m_createdAtHasBeenSet = true;
39 m_createdAt = std::forward<CreatedAtT>(value);
40 }
41 template <typename CreatedAtT = Aws::Utils::DateTime>
43 SetCreatedAt(std::forward<CreatedAtT>(value));
44 return *this;
45 }
47
49
55 inline const Aws::String& GetAccessGrantsLocationId() const { return m_accessGrantsLocationId; }
56 template <typename AccessGrantsLocationIdT = Aws::String>
57 void SetAccessGrantsLocationId(AccessGrantsLocationIdT&& value) {
58 m_accessGrantsLocationIdHasBeenSet = true;
59 m_accessGrantsLocationId = std::forward<AccessGrantsLocationIdT>(value);
60 }
61 template <typename AccessGrantsLocationIdT = Aws::String>
63 SetAccessGrantsLocationId(std::forward<AccessGrantsLocationIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetAccessGrantsLocationArn() const { return m_accessGrantsLocationArn; }
73 template <typename AccessGrantsLocationArnT = Aws::String>
74 void SetAccessGrantsLocationArn(AccessGrantsLocationArnT&& value) {
75 m_accessGrantsLocationArnHasBeenSet = true;
76 m_accessGrantsLocationArn = std::forward<AccessGrantsLocationArnT>(value);
77 }
78 template <typename AccessGrantsLocationArnT = Aws::String>
80 SetAccessGrantsLocationArn(std::forward<AccessGrantsLocationArnT>(value));
81 return *this;
82 }
84
86
95 inline const Aws::String& GetLocationScope() const { return m_locationScope; }
96 template <typename LocationScopeT = Aws::String>
97 void SetLocationScope(LocationScopeT&& value) {
98 m_locationScopeHasBeenSet = true;
99 m_locationScope = std::forward<LocationScopeT>(value);
100 }
101 template <typename LocationScopeT = Aws::String>
103 SetLocationScope(std::forward<LocationScopeT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetIAMRoleArn() const { return m_iAMRoleArn; }
115 template <typename IAMRoleArnT = Aws::String>
116 void SetIAMRoleArn(IAMRoleArnT&& value) {
117 m_iAMRoleArnHasBeenSet = true;
118 m_iAMRoleArn = std::forward<IAMRoleArnT>(value);
119 }
120 template <typename IAMRoleArnT = Aws::String>
122 SetIAMRoleArn(std::forward<IAMRoleArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetRequestId() const { return m_requestId; }
132 template <typename RequestIdT = Aws::String>
133 void SetRequestId(RequestIdT&& value) {
134 m_requestIdHasBeenSet = true;
135 m_requestId = std::forward<RequestIdT>(value);
136 }
137 template <typename RequestIdT = Aws::String>
139 SetRequestId(std::forward<RequestIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetHostId() const { return m_hostId; }
149 template <typename HostIdT = Aws::String>
150 void SetHostId(HostIdT&& value) {
151 m_hostIdHasBeenSet = true;
152 m_hostId = std::forward<HostIdT>(value);
153 }
154 template <typename HostIdT = Aws::String>
156 SetHostId(std::forward<HostIdT>(value));
157 return *this;
158 }
160 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
161
162 private:
163 Aws::Utils::DateTime m_createdAt{};
164
165 Aws::String m_accessGrantsLocationId;
166
167 Aws::String m_accessGrantsLocationArn;
168
169 Aws::String m_locationScope;
170
171 Aws::String m_iAMRoleArn;
172
173 Aws::String m_requestId;
174
175 Aws::String m_hostId;
176 Aws::Http::HttpResponseCode m_HttpResponseCode;
177 bool m_createdAtHasBeenSet = false;
178 bool m_accessGrantsLocationIdHasBeenSet = false;
179 bool m_accessGrantsLocationArnHasBeenSet = false;
180 bool m_locationScopeHasBeenSet = false;
181 bool m_iAMRoleArnHasBeenSet = false;
182 bool m_requestIdHasBeenSet = false;
183 bool m_hostIdHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace S3Control
188} // namespace Aws
GetAccessGrantsLocationResult & WithLocationScope(LocationScopeT &&value)
GetAccessGrantsLocationResult & WithCreatedAt(CreatedAtT &&value)
GetAccessGrantsLocationResult & WithRequestId(RequestIdT &&value)
GetAccessGrantsLocationResult & WithAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
GetAccessGrantsLocationResult & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
GetAccessGrantsLocationResult & WithIAMRoleArn(IAMRoleArnT &&value)
void SetAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
AWS_S3CONTROL_API GetAccessGrantsLocationResult()=default
AWS_S3CONTROL_API GetAccessGrantsLocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessGrantsLocationResult & WithHostId(HostIdT &&value)
AWS_S3CONTROL_API GetAccessGrantsLocationResult(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