AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAccessGrantEntry.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/Grantee.h>
11#include <aws/s3control/model/Permission.h>
12#include <aws/s3control/model/AccessGrantsLocationConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3Control
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_S3CONTROL_API ListAccessGrantEntry();
38 AWS_S3CONTROL_API ListAccessGrantEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_S3CONTROL_API ListAccessGrantEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
49 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
51 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
52 inline ListAccessGrantEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
53 inline ListAccessGrantEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetAccessGrantId() const{ return m_accessGrantId; }
62 inline bool AccessGrantIdHasBeenSet() const { return m_accessGrantIdHasBeenSet; }
63 inline void SetAccessGrantId(const Aws::String& value) { m_accessGrantIdHasBeenSet = true; m_accessGrantId = value; }
64 inline void SetAccessGrantId(Aws::String&& value) { m_accessGrantIdHasBeenSet = true; m_accessGrantId = std::move(value); }
65 inline void SetAccessGrantId(const char* value) { m_accessGrantIdHasBeenSet = true; m_accessGrantId.assign(value); }
66 inline ListAccessGrantEntry& WithAccessGrantId(const Aws::String& value) { SetAccessGrantId(value); return *this;}
67 inline ListAccessGrantEntry& WithAccessGrantId(Aws::String&& value) { SetAccessGrantId(std::move(value)); return *this;}
68 inline ListAccessGrantEntry& WithAccessGrantId(const char* value) { SetAccessGrantId(value); return *this;}
70
72
75 inline const Aws::String& GetAccessGrantArn() const{ return m_accessGrantArn; }
76 inline bool AccessGrantArnHasBeenSet() const { return m_accessGrantArnHasBeenSet; }
77 inline void SetAccessGrantArn(const Aws::String& value) { m_accessGrantArnHasBeenSet = true; m_accessGrantArn = value; }
78 inline void SetAccessGrantArn(Aws::String&& value) { m_accessGrantArnHasBeenSet = true; m_accessGrantArn = std::move(value); }
79 inline void SetAccessGrantArn(const char* value) { m_accessGrantArnHasBeenSet = true; m_accessGrantArn.assign(value); }
80 inline ListAccessGrantEntry& WithAccessGrantArn(const Aws::String& value) { SetAccessGrantArn(value); return *this;}
81 inline ListAccessGrantEntry& WithAccessGrantArn(Aws::String&& value) { SetAccessGrantArn(std::move(value)); return *this;}
82 inline ListAccessGrantEntry& WithAccessGrantArn(const char* value) { SetAccessGrantArn(value); return *this;}
84
86
93 inline const Grantee& GetGrantee() const{ return m_grantee; }
94 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
95 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
96 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
97 inline ListAccessGrantEntry& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
98 inline ListAccessGrantEntry& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
100
102
109 inline const Permission& GetPermission() const{ return m_permission; }
110 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
111 inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
112 inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
113 inline ListAccessGrantEntry& WithPermission(const Permission& value) { SetPermission(value); return *this;}
114 inline ListAccessGrantEntry& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
116
118
124 inline const Aws::String& GetAccessGrantsLocationId() const{ return m_accessGrantsLocationId; }
125 inline bool AccessGrantsLocationIdHasBeenSet() const { return m_accessGrantsLocationIdHasBeenSet; }
126 inline void SetAccessGrantsLocationId(const Aws::String& value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId = value; }
127 inline void SetAccessGrantsLocationId(Aws::String&& value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId = std::move(value); }
128 inline void SetAccessGrantsLocationId(const char* value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId.assign(value); }
131 inline ListAccessGrantEntry& WithAccessGrantsLocationId(const char* value) { SetAccessGrantsLocationId(value); return *this;}
133
135
139 inline const AccessGrantsLocationConfiguration& GetAccessGrantsLocationConfiguration() const{ return m_accessGrantsLocationConfiguration; }
140 inline bool AccessGrantsLocationConfigurationHasBeenSet() const { return m_accessGrantsLocationConfigurationHasBeenSet; }
141 inline void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration& value) { m_accessGrantsLocationConfigurationHasBeenSet = true; m_accessGrantsLocationConfiguration = value; }
142 inline void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration&& value) { m_accessGrantsLocationConfigurationHasBeenSet = true; m_accessGrantsLocationConfiguration = std::move(value); }
146
148
152 inline const Aws::String& GetGrantScope() const{ return m_grantScope; }
153 inline bool GrantScopeHasBeenSet() const { return m_grantScopeHasBeenSet; }
154 inline void SetGrantScope(const Aws::String& value) { m_grantScopeHasBeenSet = true; m_grantScope = value; }
155 inline void SetGrantScope(Aws::String&& value) { m_grantScopeHasBeenSet = true; m_grantScope = std::move(value); }
156 inline void SetGrantScope(const char* value) { m_grantScopeHasBeenSet = true; m_grantScope.assign(value); }
157 inline ListAccessGrantEntry& WithGrantScope(const Aws::String& value) { SetGrantScope(value); return *this;}
158 inline ListAccessGrantEntry& WithGrantScope(Aws::String&& value) { SetGrantScope(std::move(value)); return *this;}
159 inline ListAccessGrantEntry& WithGrantScope(const char* value) { SetGrantScope(value); return *this;}
161
163
169 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
170 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
171 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
172 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
173 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
174 inline ListAccessGrantEntry& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
175 inline ListAccessGrantEntry& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
176 inline ListAccessGrantEntry& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
178 private:
179
180 Aws::Utils::DateTime m_createdAt;
181 bool m_createdAtHasBeenSet = false;
182
183 Aws::String m_accessGrantId;
184 bool m_accessGrantIdHasBeenSet = false;
185
186 Aws::String m_accessGrantArn;
187 bool m_accessGrantArnHasBeenSet = false;
188
189 Grantee m_grantee;
190 bool m_granteeHasBeenSet = false;
191
192 Permission m_permission;
193 bool m_permissionHasBeenSet = false;
194
195 Aws::String m_accessGrantsLocationId;
196 bool m_accessGrantsLocationIdHasBeenSet = false;
197
198 AccessGrantsLocationConfiguration m_accessGrantsLocationConfiguration;
199 bool m_accessGrantsLocationConfigurationHasBeenSet = false;
200
201 Aws::String m_grantScope;
202 bool m_grantScopeHasBeenSet = false;
203
204 Aws::String m_applicationArn;
205 bool m_applicationArnHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace S3Control
210} // namespace Aws
void SetAccessGrantArn(const char *value)
bool CreatedAtHasBeenSet() const
const Grantee & GetGrantee() const
ListAccessGrantEntry & WithGrantScope(Aws::String &&value)
void SetGrantScope(Aws::String &&value)
void SetPermission(const Permission &value)
AWS_S3CONTROL_API ListAccessGrantEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
ListAccessGrantEntry & WithAccessGrantArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ListAccessGrantEntry & WithAccessGrantsLocationId(const Aws::String &value)
ListAccessGrantEntry & WithAccessGrantId(const Aws::String &value)
ListAccessGrantEntry & WithGrantee(Grantee &&value)
ListAccessGrantEntry & WithAccessGrantId(const char *value)
void SetGrantScope(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
bool AccessGrantArnHasBeenSet() const
void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
ListAccessGrantEntry & WithGrantee(const Grantee &value)
bool AccessGrantIdHasBeenSet() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetAccessGrantId(const Aws::String &value)
AWS_S3CONTROL_API ListAccessGrantEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ListAccessGrantEntry & WithAccessGrantArn(const Aws::String &value)
void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
void SetAccessGrantId(Aws::String &&value)
bool AccessGrantsLocationIdHasBeenSet() const
ListAccessGrantEntry & WithAccessGrantId(Aws::String &&value)
ListAccessGrantEntry & WithAccessGrantArn(const char *value)
void SetApplicationArn(const Aws::String &value)
ListAccessGrantEntry & WithApplicationArn(const Aws::String &value)
ListAccessGrantEntry & WithCreatedAt(const Aws::Utils::DateTime &value)
ListAccessGrantEntry & WithAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
void SetAccessGrantId(const char *value)
void SetGrantee(const Grantee &value)
void SetAccessGrantArn(Aws::String &&value)
void SetAccessGrantsLocationId(const char *value)
ListAccessGrantEntry & WithGrantScope(const Aws::String &value)
void SetAccessGrantArn(const Aws::String &value)
const Aws::String & GetAccessGrantsLocationId() const
bool GranteeHasBeenSet() const
bool ApplicationArnHasBeenSet() const
ListAccessGrantEntry & WithApplicationArn(const char *value)
void SetGrantee(Grantee &&value)
ListAccessGrantEntry & WithPermission(const Permission &value)
void SetApplicationArn(Aws::String &&value)
ListAccessGrantEntry & WithAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
ListAccessGrantEntry & WithApplicationArn(Aws::String &&value)
void SetAccessGrantsLocationId(const Aws::String &value)
bool GrantScopeHasBeenSet() const
ListAccessGrantEntry & WithPermission(Permission &&value)
void SetGrantScope(const char *value)
ListAccessGrantEntry & WithGrantScope(const char *value)
bool AccessGrantsLocationConfigurationHasBeenSet() const
const AccessGrantsLocationConfiguration & GetAccessGrantsLocationConfiguration() const
ListAccessGrantEntry & WithAccessGrantsLocationId(Aws::String &&value)
AWS_S3CONTROL_API ListAccessGrantEntry()
const Aws::String & GetAccessGrantArn() const
const Aws::String & GetGrantScope() const
void SetAccessGrantsLocationId(Aws::String &&value)
ListAccessGrantEntry & WithAccessGrantsLocationId(const char *value)
const Aws::String & GetAccessGrantId() const
ListAccessGrantEntry & WithCreatedAt(Aws::Utils::DateTime &&value)
const Permission & GetPermission() const
void SetPermission(Permission &&value)
void SetApplicationArn(const char *value)
bool PermissionHasBeenSet() const
const Aws::String & GetApplicationArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String