AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessGrantRequest.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/AccessGrantsLocationConfiguration.h>
11#include <aws/s3control/model/Grantee.h>
12#include <aws/s3control/model/Permission.h>
13#include <aws/s3control/model/S3PrefixType.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/s3control/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace S3Control
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_S3CONTROL_API CreateAccessGrantRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessGrant"; }
37
38 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
39
41
42 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
43
47 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
48
50
53 inline const Aws::String& GetAccountId() const{ return m_accountId; }
54 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
55 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
57 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
58 inline CreateAccessGrantRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
59 inline CreateAccessGrantRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
60 inline CreateAccessGrantRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
62
64
73 inline const Aws::String& GetAccessGrantsLocationId() const{ return m_accessGrantsLocationId; }
74 inline bool AccessGrantsLocationIdHasBeenSet() const { return m_accessGrantsLocationIdHasBeenSet; }
75 inline void SetAccessGrantsLocationId(const Aws::String& value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId = value; }
76 inline void SetAccessGrantsLocationId(Aws::String&& value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId = std::move(value); }
77 inline void SetAccessGrantsLocationId(const char* value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId.assign(value); }
80 inline CreateAccessGrantRequest& WithAccessGrantsLocationId(const char* value) { SetAccessGrantsLocationId(value); return *this;}
82
84
90 inline const AccessGrantsLocationConfiguration& GetAccessGrantsLocationConfiguration() const{ return m_accessGrantsLocationConfiguration; }
91 inline bool AccessGrantsLocationConfigurationHasBeenSet() const { return m_accessGrantsLocationConfigurationHasBeenSet; }
92 inline void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration& value) { m_accessGrantsLocationConfigurationHasBeenSet = true; m_accessGrantsLocationConfiguration = value; }
93 inline void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration&& value) { m_accessGrantsLocationConfigurationHasBeenSet = true; m_accessGrantsLocationConfiguration = std::move(value); }
97
99
106 inline const Grantee& GetGrantee() const{ return m_grantee; }
107 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
108 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
109 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
110 inline CreateAccessGrantRequest& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
111 inline CreateAccessGrantRequest& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
113
115
122 inline const Permission& GetPermission() const{ return m_permission; }
123 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
124 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
125 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
126 inline CreateAccessGrantRequest& WithPermission(const Permission& value) { SetPermission(value); return *this;}
127 inline CreateAccessGrantRequest& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
129
131
137 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
138 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
139 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
140 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
141 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
142 inline CreateAccessGrantRequest& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
143 inline CreateAccessGrantRequest& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
144 inline CreateAccessGrantRequest& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
146
148
154 inline const S3PrefixType& GetS3PrefixType() const{ return m_s3PrefixType; }
155 inline bool S3PrefixTypeHasBeenSet() const { return m_s3PrefixTypeHasBeenSet; }
156 inline void SetS3PrefixType(const S3PrefixType& value) { m_s3PrefixTypeHasBeenSet = true; m_s3PrefixType = value; }
157 inline void SetS3PrefixType(S3PrefixType&& value) { m_s3PrefixTypeHasBeenSet = true; m_s3PrefixType = std::move(value); }
158 inline CreateAccessGrantRequest& WithS3PrefixType(const S3PrefixType& value) { SetS3PrefixType(value); return *this;}
159 inline CreateAccessGrantRequest& WithS3PrefixType(S3PrefixType&& value) { SetS3PrefixType(std::move(value)); return *this;}
161
163
168 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 inline CreateAccessGrantRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
173 inline CreateAccessGrantRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
174 inline CreateAccessGrantRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
175 inline CreateAccessGrantRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
177 private:
178
179 Aws::String m_accountId;
180 bool m_accountIdHasBeenSet = false;
181
182 Aws::String m_accessGrantsLocationId;
183 bool m_accessGrantsLocationIdHasBeenSet = false;
184
185 AccessGrantsLocationConfiguration m_accessGrantsLocationConfiguration;
186 bool m_accessGrantsLocationConfigurationHasBeenSet = false;
187
188 Grantee m_grantee;
189 bool m_granteeHasBeenSet = false;
190
191 Permission m_permission;
192 bool m_permissionHasBeenSet = false;
193
194 Aws::String m_applicationArn;
195 bool m_applicationArnHasBeenSet = false;
196
197 S3PrefixType m_s3PrefixType;
198 bool m_s3PrefixTypeHasBeenSet = false;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_tagsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace S3Control
206} // namespace Aws
CreateAccessGrantRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAccessGrantRequest & AddTags(Tag &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessGrantRequest & WithAccessGrantsLocationId(const char *value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
CreateAccessGrantRequest & WithAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
CreateAccessGrantRequest & WithGrantee(const Grantee &value)
CreateAccessGrantRequest & WithApplicationArn(Aws::String &&value)
CreateAccessGrantRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAccessGrantRequest & WithAccountId(const Aws::String &value)
CreateAccessGrantRequest & WithGrantee(Grantee &&value)
CreateAccessGrantRequest & WithS3PrefixType(S3PrefixType &&value)
CreateAccessGrantRequest & WithAccessGrantsLocationId(Aws::String &&value)
CreateAccessGrantRequest & WithAccountId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessGrantRequest & WithApplicationArn(const Aws::String &value)
CreateAccessGrantRequest & WithAccountId(const char *value)
CreateAccessGrantRequest & WithAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
CreateAccessGrantRequest & AddTags(const Tag &value)
CreateAccessGrantRequest & WithPermission(const Permission &value)
void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
CreateAccessGrantRequest & WithS3PrefixType(const S3PrefixType &value)
const AccessGrantsLocationConfiguration & GetAccessGrantsLocationConfiguration() const
AWS_S3CONTROL_API Aws::String SerializePayload() const override
CreateAccessGrantRequest & WithPermission(Permission &&value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
CreateAccessGrantRequest & WithAccessGrantsLocationId(const Aws::String &value)
CreateAccessGrantRequest & WithApplicationArn(const char *value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector