AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAccessGrantsLocationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control {
23namespace Model {
25 public:
26 AWS_S3CONTROL_API CreateAccessGrantsLocationResult() = default;
29
31
34 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
35 template <typename CreatedAtT = Aws::Utils::DateTime>
36 void SetCreatedAt(CreatedAtT&& value) {
37 m_createdAtHasBeenSet = true;
38 m_createdAt = std::forward<CreatedAtT>(value);
39 }
40 template <typename CreatedAtT = Aws::Utils::DateTime>
42 SetCreatedAt(std::forward<CreatedAtT>(value));
43 return *this;
44 }
46
48
54 inline const Aws::String& GetAccessGrantsLocationId() const { return m_accessGrantsLocationId; }
55 template <typename AccessGrantsLocationIdT = Aws::String>
56 void SetAccessGrantsLocationId(AccessGrantsLocationIdT&& value) {
57 m_accessGrantsLocationIdHasBeenSet = true;
58 m_accessGrantsLocationId = std::forward<AccessGrantsLocationIdT>(value);
59 }
60 template <typename AccessGrantsLocationIdT = Aws::String>
62 SetAccessGrantsLocationId(std::forward<AccessGrantsLocationIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetAccessGrantsLocationArn() const { return m_accessGrantsLocationArn; }
72 template <typename AccessGrantsLocationArnT = Aws::String>
73 void SetAccessGrantsLocationArn(AccessGrantsLocationArnT&& value) {
74 m_accessGrantsLocationArnHasBeenSet = true;
75 m_accessGrantsLocationArn = std::forward<AccessGrantsLocationArnT>(value);
76 }
77 template <typename AccessGrantsLocationArnT = Aws::String>
79 SetAccessGrantsLocationArn(std::forward<AccessGrantsLocationArnT>(value));
80 return *this;
81 }
83
85
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 private:
160 Aws::Utils::DateTime m_createdAt{};
161
162 Aws::String m_accessGrantsLocationId;
163
164 Aws::String m_accessGrantsLocationArn;
165
166 Aws::String m_locationScope;
167
168 Aws::String m_iAMRoleArn;
169
170 Aws::String m_requestId;
171
172 Aws::String m_hostId;
173 bool m_createdAtHasBeenSet = false;
174 bool m_accessGrantsLocationIdHasBeenSet = false;
175 bool m_accessGrantsLocationArnHasBeenSet = false;
176 bool m_locationScopeHasBeenSet = false;
177 bool m_iAMRoleArnHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179 bool m_hostIdHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace S3Control
184} // namespace Aws
CreateAccessGrantsLocationResult & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
CreateAccessGrantsLocationResult & WithIAMRoleArn(IAMRoleArnT &&value)
AWS_S3CONTROL_API CreateAccessGrantsLocationResult()=default
CreateAccessGrantsLocationResult & WithHostId(HostIdT &&value)
CreateAccessGrantsLocationResult & WithCreatedAt(CreatedAtT &&value)
CreateAccessGrantsLocationResult & WithAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
CreateAccessGrantsLocationResult & WithLocationScope(LocationScopeT &&value)
AWS_S3CONTROL_API CreateAccessGrantsLocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CONTROL_API CreateAccessGrantsLocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateAccessGrantsLocationResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument