AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UpdateAccessGrantsLocationResult.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 UpdateAccessGrantsLocationResult() = 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
73 inline const Aws::String& GetAccessGrantsLocationArn() const { return m_accessGrantsLocationArn; }
74 template <typename AccessGrantsLocationArnT = Aws::String>
75 void SetAccessGrantsLocationArn(AccessGrantsLocationArnT&& value) {
76 m_accessGrantsLocationArnHasBeenSet = true;
77 m_accessGrantsLocationArn = std::forward<AccessGrantsLocationArnT>(value);
78 }
79 template <typename AccessGrantsLocationArnT = Aws::String>
81 SetAccessGrantsLocationArn(std::forward<AccessGrantsLocationArnT>(value));
82 return *this;
83 }
85
87
94 inline const Aws::String& GetLocationScope() const { return m_locationScope; }
95 template <typename LocationScopeT = Aws::String>
96 void SetLocationScope(LocationScopeT&& value) {
97 m_locationScopeHasBeenSet = true;
98 m_locationScope = std::forward<LocationScopeT>(value);
99 }
100 template <typename LocationScopeT = Aws::String>
102 SetLocationScope(std::forward<LocationScopeT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::String& GetIAMRoleArn() const { return m_iAMRoleArn; }
114 template <typename IAMRoleArnT = Aws::String>
115 void SetIAMRoleArn(IAMRoleArnT&& value) {
116 m_iAMRoleArnHasBeenSet = true;
117 m_iAMRoleArn = std::forward<IAMRoleArnT>(value);
118 }
119 template <typename IAMRoleArnT = Aws::String>
121 SetIAMRoleArn(std::forward<IAMRoleArnT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetHostId() const { return m_hostId; }
148 template <typename HostIdT = Aws::String>
149 void SetHostId(HostIdT&& value) {
150 m_hostIdHasBeenSet = true;
151 m_hostId = std::forward<HostIdT>(value);
152 }
153 template <typename HostIdT = Aws::String>
155 SetHostId(std::forward<HostIdT>(value));
156 return *this;
157 }
159 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
160
161 private:
162 Aws::Utils::DateTime m_createdAt{};
163
164 Aws::String m_accessGrantsLocationId;
165
166 Aws::String m_accessGrantsLocationArn;
167
168 Aws::String m_locationScope;
169
170 Aws::String m_iAMRoleArn;
171
172 Aws::String m_requestId;
173
174 Aws::String m_hostId;
175 Aws::Http::HttpResponseCode m_HttpResponseCode;
176 bool m_createdAtHasBeenSet = false;
177 bool m_accessGrantsLocationIdHasBeenSet = false;
178 bool m_accessGrantsLocationArnHasBeenSet = false;
179 bool m_locationScopeHasBeenSet = false;
180 bool m_iAMRoleArnHasBeenSet = false;
181 bool m_requestIdHasBeenSet = false;
182 bool m_hostIdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace S3Control
187} // namespace Aws
UpdateAccessGrantsLocationResult & WithIAMRoleArn(IAMRoleArnT &&value)
UpdateAccessGrantsLocationResult & WithAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
AWS_S3CONTROL_API UpdateAccessGrantsLocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API UpdateAccessGrantsLocationResult()=default
UpdateAccessGrantsLocationResult & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
UpdateAccessGrantsLocationResult & WithCreatedAt(CreatedAtT &&value)
UpdateAccessGrantsLocationResult & WithRequestId(RequestIdT &&value)
AWS_S3CONTROL_API UpdateAccessGrantsLocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
UpdateAccessGrantsLocationResult & WithHostId(HostIdT &&value)
UpdateAccessGrantsLocationResult & WithLocationScope(LocationScopeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument