AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetDataAccessRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/Permission.h>
11#include <aws/s3control/model/Privilege.h>
12#include <aws/s3control/model/S3PrefixType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3Control {
21namespace Model {
22
26 public:
27 AWS_S3CONTROL_API GetDataAccessRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetDataAccess"; }
34
35 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
36
37 AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
42
46 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
47
49
52 inline const Aws::String& GetAccountId() const { return m_accountId; }
53 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 template <typename AccountIdT = Aws::String>
55 void SetAccountId(AccountIdT&& value) {
56 m_accountIdHasBeenSet = true;
57 m_accountId = std::forward<AccountIdT>(value);
58 }
59 template <typename AccountIdT = Aws::String>
60 GetDataAccessRequest& WithAccountId(AccountIdT&& value) {
61 SetAccountId(std::forward<AccountIdT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetTarget() const { return m_target; }
73 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
74 template <typename TargetT = Aws::String>
75 void SetTarget(TargetT&& value) {
76 m_targetHasBeenSet = true;
77 m_target = std::forward<TargetT>(value);
78 }
79 template <typename TargetT = Aws::String>
80 GetDataAccessRequest& WithTarget(TargetT&& value) {
81 SetTarget(std::forward<TargetT>(value));
82 return *this;
83 }
85
87
94 inline Permission GetPermission() const { return m_permission; }
95 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
96 inline void SetPermission(Permission value) {
97 m_permissionHasBeenSet = true;
98 m_permission = value;
99 }
101 SetPermission(value);
102 return *this;
103 }
105
107
114 inline int GetDurationSeconds() const { return m_durationSeconds; }
115 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
116 inline void SetDurationSeconds(int value) {
117 m_durationSecondsHasBeenSet = true;
118 m_durationSeconds = value;
119 }
121 SetDurationSeconds(value);
122 return *this;
123 }
125
127
136 inline Privilege GetPrivilege() const { return m_privilege; }
137 inline bool PrivilegeHasBeenSet() const { return m_privilegeHasBeenSet; }
138 inline void SetPrivilege(Privilege value) {
139 m_privilegeHasBeenSet = true;
140 m_privilege = value;
141 }
143 SetPrivilege(value);
144 return *this;
145 }
147
149
155 inline S3PrefixType GetTargetType() const { return m_targetType; }
156 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
157 inline void SetTargetType(S3PrefixType value) {
158 m_targetTypeHasBeenSet = true;
159 m_targetType = value;
160 }
162 SetTargetType(value);
163 return *this;
164 }
166 private:
167 Aws::String m_accountId;
168
169 Aws::String m_target;
170
171 Permission m_permission{Permission::NOT_SET};
172
173 int m_durationSeconds{0};
174
175 Privilege m_privilege{Privilege::NOT_SET};
176
178 bool m_accountIdHasBeenSet = false;
179 bool m_targetHasBeenSet = false;
180 bool m_permissionHasBeenSet = false;
181 bool m_durationSecondsHasBeenSet = false;
182 bool m_privilegeHasBeenSet = false;
183 bool m_targetTypeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace S3Control
188} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetDataAccessRequest & WithPrivilege(Privilege value)
GetDataAccessRequest & WithTarget(TargetT &&value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API GetDataAccessRequest()=default
GetDataAccessRequest & WithDurationSeconds(int value)
GetDataAccessRequest & WithAccountId(AccountIdT &&value)
GetDataAccessRequest & WithPermission(Permission value)
GetDataAccessRequest & WithTargetType(S3PrefixType value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String