AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDataAccessRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/Permission.h>
11#include <aws/s3control/model/Privilege.h>
12#include <aws/s3control/model/S3PrefixType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Control
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3CONTROL_API GetDataAccessRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetDataAccess"; }
38
39 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
40
41 AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
46
50 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
51
53
56 inline const Aws::String& GetAccountId() const { return m_accountId; }
57 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
58 template<typename AccountIdT = Aws::String>
59 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
60 template<typename AccountIdT = Aws::String>
61 GetDataAccessRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
63
65
70 inline const Aws::String& GetTarget() const { return m_target; }
71 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
72 template<typename TargetT = Aws::String>
73 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
74 template<typename TargetT = Aws::String>
75 GetDataAccessRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
77
79
86 inline Permission GetPermission() const { return m_permission; }
87 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
88 inline void SetPermission(Permission value) { m_permissionHasBeenSet = true; m_permission = value; }
89 inline GetDataAccessRequest& WithPermission(Permission value) { SetPermission(value); return *this;}
91
93
100 inline int GetDurationSeconds() const { return m_durationSeconds; }
101 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
102 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
103 inline GetDataAccessRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
105
107
116 inline Privilege GetPrivilege() const { return m_privilege; }
117 inline bool PrivilegeHasBeenSet() const { return m_privilegeHasBeenSet; }
118 inline void SetPrivilege(Privilege value) { m_privilegeHasBeenSet = true; m_privilege = value; }
119 inline GetDataAccessRequest& WithPrivilege(Privilege value) { SetPrivilege(value); return *this;}
121
123
129 inline S3PrefixType GetTargetType() const { return m_targetType; }
130 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
131 inline void SetTargetType(S3PrefixType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
132 inline GetDataAccessRequest& WithTargetType(S3PrefixType value) { SetTargetType(value); return *this;}
134 private:
135
136 Aws::String m_accountId;
137 bool m_accountIdHasBeenSet = false;
138
139 Aws::String m_target;
140 bool m_targetHasBeenSet = false;
141
142 Permission m_permission{Permission::NOT_SET};
143 bool m_permissionHasBeenSet = false;
144
145 int m_durationSeconds{0};
146 bool m_durationSecondsHasBeenSet = false;
147
148 Privilege m_privilege{Privilege::NOT_SET};
149 bool m_privilegeHasBeenSet = false;
150
152 bool m_targetTypeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace S3Control
157} // 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