AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessGrantResult.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/AccessGrantsLocationConfiguration.h>
12#include <aws/s3control/model/Permission.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace S3Control
28{
29namespace Model
30{
32 {
33 public:
34 AWS_S3CONTROL_API CreateAccessGrantResult();
37
38
40
43 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
44 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
45 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
46 inline CreateAccessGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
47 inline CreateAccessGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
49
51
55 inline const Aws::String& GetAccessGrantId() const{ return m_accessGrantId; }
56 inline void SetAccessGrantId(const Aws::String& value) { m_accessGrantId = value; }
57 inline void SetAccessGrantId(Aws::String&& value) { m_accessGrantId = std::move(value); }
58 inline void SetAccessGrantId(const char* value) { m_accessGrantId.assign(value); }
59 inline CreateAccessGrantResult& WithAccessGrantId(const Aws::String& value) { SetAccessGrantId(value); return *this;}
60 inline CreateAccessGrantResult& WithAccessGrantId(Aws::String&& value) { SetAccessGrantId(std::move(value)); return *this;}
61 inline CreateAccessGrantResult& WithAccessGrantId(const char* value) { SetAccessGrantId(value); return *this;}
63
65
68 inline const Aws::String& GetAccessGrantArn() const{ return m_accessGrantArn; }
69 inline void SetAccessGrantArn(const Aws::String& value) { m_accessGrantArn = value; }
70 inline void SetAccessGrantArn(Aws::String&& value) { m_accessGrantArn = std::move(value); }
71 inline void SetAccessGrantArn(const char* value) { m_accessGrantArn.assign(value); }
72 inline CreateAccessGrantResult& WithAccessGrantArn(const Aws::String& value) { SetAccessGrantArn(value); return *this;}
73 inline CreateAccessGrantResult& WithAccessGrantArn(Aws::String&& value) { SetAccessGrantArn(std::move(value)); return *this;}
74 inline CreateAccessGrantResult& WithAccessGrantArn(const char* value) { SetAccessGrantArn(value); return *this;}
76
78
85 inline const Grantee& GetGrantee() const{ return m_grantee; }
86 inline void SetGrantee(const Grantee& value) { m_grantee = value; }
87 inline void SetGrantee(Grantee&& value) { m_grantee = std::move(value); }
88 inline CreateAccessGrantResult& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
89 inline CreateAccessGrantResult& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
91
93
99 inline const Aws::String& GetAccessGrantsLocationId() const{ return m_accessGrantsLocationId; }
100 inline void SetAccessGrantsLocationId(const Aws::String& value) { m_accessGrantsLocationId = value; }
101 inline void SetAccessGrantsLocationId(Aws::String&& value) { m_accessGrantsLocationId = std::move(value); }
102 inline void SetAccessGrantsLocationId(const char* value) { m_accessGrantsLocationId.assign(value); }
105 inline CreateAccessGrantResult& WithAccessGrantsLocationId(const char* value) { SetAccessGrantsLocationId(value); return *this;}
107
109
113 inline const AccessGrantsLocationConfiguration& GetAccessGrantsLocationConfiguration() const{ return m_accessGrantsLocationConfiguration; }
114 inline void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration& value) { m_accessGrantsLocationConfiguration = value; }
115 inline void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration&& value) { m_accessGrantsLocationConfiguration = std::move(value); }
119
121
128 inline const Permission& GetPermission() const{ return m_permission; }
129 inline void SetPermission(const Permission& value) { m_permission = value; }
130 inline void SetPermission(Permission&& value) { m_permission = std::move(value); }
131 inline CreateAccessGrantResult& WithPermission(const Permission& value) { SetPermission(value); return *this;}
132 inline CreateAccessGrantResult& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
134
136
142 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
143 inline void SetApplicationArn(const Aws::String& value) { m_applicationArn = value; }
144 inline void SetApplicationArn(Aws::String&& value) { m_applicationArn = std::move(value); }
145 inline void SetApplicationArn(const char* value) { m_applicationArn.assign(value); }
146 inline CreateAccessGrantResult& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
147 inline CreateAccessGrantResult& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
148 inline CreateAccessGrantResult& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
150
152
156 inline const Aws::String& GetGrantScope() const{ return m_grantScope; }
157 inline void SetGrantScope(const Aws::String& value) { m_grantScope = value; }
158 inline void SetGrantScope(Aws::String&& value) { m_grantScope = std::move(value); }
159 inline void SetGrantScope(const char* value) { m_grantScope.assign(value); }
160 inline CreateAccessGrantResult& WithGrantScope(const Aws::String& value) { SetGrantScope(value); return *this;}
161 inline CreateAccessGrantResult& WithGrantScope(Aws::String&& value) { SetGrantScope(std::move(value)); return *this;}
162 inline CreateAccessGrantResult& WithGrantScope(const char* value) { SetGrantScope(value); return *this;}
164
166
167 inline const Aws::String& GetRequestId() const{ return m_requestId; }
168 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
169 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
170 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
171 inline CreateAccessGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
172 inline CreateAccessGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
173 inline CreateAccessGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
175 private:
176
177 Aws::Utils::DateTime m_createdAt;
178
179 Aws::String m_accessGrantId;
180
181 Aws::String m_accessGrantArn;
182
183 Grantee m_grantee;
184
185 Aws::String m_accessGrantsLocationId;
186
187 AccessGrantsLocationConfiguration m_accessGrantsLocationConfiguration;
188
189 Permission m_permission;
190
191 Aws::String m_applicationArn;
192
193 Aws::String m_grantScope;
194
195 Aws::String m_requestId;
196 };
197
198} // namespace Model
199} // namespace S3Control
200} // namespace Aws
CreateAccessGrantResult & WithPermission(Permission &&value)
CreateAccessGrantResult & WithGrantScope(const char *value)
CreateAccessGrantResult & WithAccessGrantId(Aws::String &&value)
CreateAccessGrantResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_S3CONTROL_API CreateAccessGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateAccessGrantResult & WithCreatedAt(Aws::Utils::DateTime &&value)
CreateAccessGrantResult & WithAccessGrantArn(const Aws::String &value)
CreateAccessGrantResult & WithAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
CreateAccessGrantResult & WithGrantee(const Grantee &value)
CreateAccessGrantResult & WithAccessGrantArn(const char *value)
AWS_S3CONTROL_API CreateAccessGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateAccessGrantResult & WithAccessGrantId(const Aws::String &value)
CreateAccessGrantResult & WithAccessGrantId(const char *value)
CreateAccessGrantResult & WithApplicationArn(Aws::String &&value)
CreateAccessGrantResult & WithAccessGrantsLocationId(Aws::String &&value)
CreateAccessGrantResult & WithRequestId(const Aws::String &value)
CreateAccessGrantResult & WithRequestId(const char *value)
CreateAccessGrantResult & WithApplicationArn(const Aws::String &value)
CreateAccessGrantResult & WithAccessGrantsLocationId(const Aws::String &value)
CreateAccessGrantResult & WithAccessGrantsLocationId(const char *value)
CreateAccessGrantResult & WithRequestId(Aws::String &&value)
CreateAccessGrantResult & WithGrantee(Grantee &&value)
CreateAccessGrantResult & WithAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
CreateAccessGrantResult & WithGrantScope(Aws::String &&value)
CreateAccessGrantResult & WithGrantScope(const Aws::String &value)
CreateAccessGrantResult & WithAccessGrantArn(Aws::String &&value)
void SetAccessGrantsLocationConfiguration(const AccessGrantsLocationConfiguration &value)
const AccessGrantsLocationConfiguration & GetAccessGrantsLocationConfiguration() const
const Aws::Utils::DateTime & GetCreatedAt() const
CreateAccessGrantResult & WithApplicationArn(const char *value)
CreateAccessGrantResult & WithPermission(const Permission &value)
void SetAccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument