AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
59 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
60 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
61 inline GetDataAccessRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
62 inline GetDataAccessRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
63 inline GetDataAccessRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
65
67
72 inline const Aws::String& GetTarget() const{ return m_target; }
73 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
74 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
75 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
76 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
77 inline GetDataAccessRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
78 inline GetDataAccessRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
79 inline GetDataAccessRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
81
83
90 inline const Permission& GetPermission() const{ return m_permission; }
91 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
92 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
93 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
94 inline GetDataAccessRequest& WithPermission(const Permission& value) { SetPermission(value); return *this;}
95 inline GetDataAccessRequest& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
97
99
106 inline int GetDurationSeconds() const{ return m_durationSeconds; }
107 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
108 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
109 inline GetDataAccessRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
111
113
122 inline const Privilege& GetPrivilege() const{ return m_privilege; }
123 inline bool PrivilegeHasBeenSet() const { return m_privilegeHasBeenSet; }
124 inline void SetPrivilege(const Privilege& value) { m_privilegeHasBeenSet = true; m_privilege = value; }
125 inline void SetPrivilege(Privilege&& value) { m_privilegeHasBeenSet = true; m_privilege = std::move(value); }
126 inline GetDataAccessRequest& WithPrivilege(const Privilege& value) { SetPrivilege(value); return *this;}
127 inline GetDataAccessRequest& WithPrivilege(Privilege&& value) { SetPrivilege(std::move(value)); return *this;}
129
131
137 inline const S3PrefixType& GetTargetType() const{ return m_targetType; }
138 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
139 inline void SetTargetType(const S3PrefixType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
140 inline void SetTargetType(S3PrefixType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
141 inline GetDataAccessRequest& WithTargetType(const S3PrefixType& value) { SetTargetType(value); return *this;}
142 inline GetDataAccessRequest& WithTargetType(S3PrefixType&& value) { SetTargetType(std::move(value)); return *this;}
144 private:
145
146 Aws::String m_accountId;
147 bool m_accountIdHasBeenSet = false;
148
149 Aws::String m_target;
150 bool m_targetHasBeenSet = false;
151
152 Permission m_permission;
153 bool m_permissionHasBeenSet = false;
154
155 int m_durationSeconds;
156 bool m_durationSecondsHasBeenSet = false;
157
158 Privilege m_privilege;
159 bool m_privilegeHasBeenSet = false;
160
161 S3PrefixType m_targetType;
162 bool m_targetTypeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace S3Control
167} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetDataAccessRequest & WithPermission(Permission &&value)
GetDataAccessRequest & WithPermission(const Permission &value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
GetDataAccessRequest & WithTarget(Aws::String &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDataAccessRequest & WithAccountId(Aws::String &&value)
GetDataAccessRequest & WithDurationSeconds(int value)
GetDataAccessRequest & WithPrivilege(Privilege &&value)
GetDataAccessRequest & WithTarget(const char *value)
GetDataAccessRequest & WithTarget(const Aws::String &value)
void SetTargetType(const S3PrefixType &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
GetDataAccessRequest & WithTargetType(S3PrefixType &&value)
GetDataAccessRequest & WithTargetType(const S3PrefixType &value)
GetDataAccessRequest & WithAccountId(const char *value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
GetDataAccessRequest & WithPrivilege(const Privilege &value)
GetDataAccessRequest & WithAccountId(const Aws::String &value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String