AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Grant.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/GrantStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/Options.h>
12#include <aws/license-manager/model/AllowedOperation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LicenseManager
26{
27namespace Model
28{
29
35 class Grant
36 {
37 public:
38 AWS_LICENSEMANAGER_API Grant();
39 AWS_LICENSEMANAGER_API Grant(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API Grant& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetGrantArn() const{ return m_grantArn; }
49 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
50 inline void SetGrantArn(const Aws::String& value) { m_grantArnHasBeenSet = true; m_grantArn = value; }
51 inline void SetGrantArn(Aws::String&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::move(value); }
52 inline void SetGrantArn(const char* value) { m_grantArnHasBeenSet = true; m_grantArn.assign(value); }
53 inline Grant& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;}
54 inline Grant& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;}
55 inline Grant& WithGrantArn(const char* value) { SetGrantArn(value); return *this;}
57
59
62 inline const Aws::String& GetGrantName() const{ return m_grantName; }
63 inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; }
64 inline void SetGrantName(const Aws::String& value) { m_grantNameHasBeenSet = true; m_grantName = value; }
65 inline void SetGrantName(Aws::String&& value) { m_grantNameHasBeenSet = true; m_grantName = std::move(value); }
66 inline void SetGrantName(const char* value) { m_grantNameHasBeenSet = true; m_grantName.assign(value); }
67 inline Grant& WithGrantName(const Aws::String& value) { SetGrantName(value); return *this;}
68 inline Grant& WithGrantName(Aws::String&& value) { SetGrantName(std::move(value)); return *this;}
69 inline Grant& WithGrantName(const char* value) { SetGrantName(value); return *this;}
71
73
76 inline const Aws::String& GetParentArn() const{ return m_parentArn; }
77 inline bool ParentArnHasBeenSet() const { return m_parentArnHasBeenSet; }
78 inline void SetParentArn(const Aws::String& value) { m_parentArnHasBeenSet = true; m_parentArn = value; }
79 inline void SetParentArn(Aws::String&& value) { m_parentArnHasBeenSet = true; m_parentArn = std::move(value); }
80 inline void SetParentArn(const char* value) { m_parentArnHasBeenSet = true; m_parentArn.assign(value); }
81 inline Grant& WithParentArn(const Aws::String& value) { SetParentArn(value); return *this;}
82 inline Grant& WithParentArn(Aws::String&& value) { SetParentArn(std::move(value)); return *this;}
83 inline Grant& WithParentArn(const char* value) { SetParentArn(value); return *this;}
85
87
90 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
91 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
92 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
93 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
94 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
95 inline Grant& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
96 inline Grant& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
97 inline Grant& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
99
101
104 inline const Aws::String& GetGranteePrincipalArn() const{ return m_granteePrincipalArn; }
105 inline bool GranteePrincipalArnHasBeenSet() const { return m_granteePrincipalArnHasBeenSet; }
106 inline void SetGranteePrincipalArn(const Aws::String& value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn = value; }
107 inline void SetGranteePrincipalArn(Aws::String&& value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn = std::move(value); }
108 inline void SetGranteePrincipalArn(const char* value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn.assign(value); }
109 inline Grant& WithGranteePrincipalArn(const Aws::String& value) { SetGranteePrincipalArn(value); return *this;}
110 inline Grant& WithGranteePrincipalArn(Aws::String&& value) { SetGranteePrincipalArn(std::move(value)); return *this;}
111 inline Grant& WithGranteePrincipalArn(const char* value) { SetGranteePrincipalArn(value); return *this;}
113
115
118 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
119 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
120 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
121 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
122 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
123 inline Grant& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
124 inline Grant& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
125 inline Grant& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
127
129
132 inline const GrantStatus& GetGrantStatus() const{ return m_grantStatus; }
133 inline bool GrantStatusHasBeenSet() const { return m_grantStatusHasBeenSet; }
134 inline void SetGrantStatus(const GrantStatus& value) { m_grantStatusHasBeenSet = true; m_grantStatus = value; }
135 inline void SetGrantStatus(GrantStatus&& value) { m_grantStatusHasBeenSet = true; m_grantStatus = std::move(value); }
136 inline Grant& WithGrantStatus(const GrantStatus& value) { SetGrantStatus(value); return *this;}
137 inline Grant& WithGrantStatus(GrantStatus&& value) { SetGrantStatus(std::move(value)); return *this;}
139
141
144 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
145 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
146 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
147 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
148 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
149 inline Grant& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
150 inline Grant& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
151 inline Grant& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
153
155
158 inline const Aws::String& GetVersion() const{ return m_version; }
159 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
160 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
161 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
162 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
163 inline Grant& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
164 inline Grant& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
165 inline Grant& WithVersion(const char* value) { SetVersion(value); return *this;}
167
169
172 inline const Aws::Vector<AllowedOperation>& GetGrantedOperations() const{ return m_grantedOperations; }
173 inline bool GrantedOperationsHasBeenSet() const { return m_grantedOperationsHasBeenSet; }
174 inline void SetGrantedOperations(const Aws::Vector<AllowedOperation>& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations = value; }
175 inline void SetGrantedOperations(Aws::Vector<AllowedOperation>&& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations = std::move(value); }
177 inline Grant& WithGrantedOperations(Aws::Vector<AllowedOperation>&& value) { SetGrantedOperations(std::move(value)); return *this;}
178 inline Grant& AddGrantedOperations(const AllowedOperation& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations.push_back(value); return *this; }
179 inline Grant& AddGrantedOperations(AllowedOperation&& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations.push_back(std::move(value)); return *this; }
181
183
186 inline const Options& GetOptions() const{ return m_options; }
187 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
188 inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
189 inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
190 inline Grant& WithOptions(const Options& value) { SetOptions(value); return *this;}
191 inline Grant& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
193 private:
194
195 Aws::String m_grantArn;
196 bool m_grantArnHasBeenSet = false;
197
198 Aws::String m_grantName;
199 bool m_grantNameHasBeenSet = false;
200
201 Aws::String m_parentArn;
202 bool m_parentArnHasBeenSet = false;
203
204 Aws::String m_licenseArn;
205 bool m_licenseArnHasBeenSet = false;
206
207 Aws::String m_granteePrincipalArn;
208 bool m_granteePrincipalArnHasBeenSet = false;
209
210 Aws::String m_homeRegion;
211 bool m_homeRegionHasBeenSet = false;
212
213 GrantStatus m_grantStatus;
214 bool m_grantStatusHasBeenSet = false;
215
216 Aws::String m_statusReason;
217 bool m_statusReasonHasBeenSet = false;
218
219 Aws::String m_version;
220 bool m_versionHasBeenSet = false;
221
222 Aws::Vector<AllowedOperation> m_grantedOperations;
223 bool m_grantedOperationsHasBeenSet = false;
224
225 Options m_options;
226 bool m_optionsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace LicenseManager
231} // namespace Aws
void SetGrantStatus(GrantStatus &&value)
Definition Grant.h:135
Grant & WithGranteePrincipalArn(const Aws::String &value)
Definition Grant.h:109
Grant & WithGrantName(const char *value)
Definition Grant.h:69
void SetGrantArn(const char *value)
Definition Grant.h:52
Grant & WithVersion(const Aws::String &value)
Definition Grant.h:163
const Aws::String & GetLicenseArn() const
Definition Grant.h:90
Grant & WithLicenseArn(const char *value)
Definition Grant.h:97
void SetLicenseArn(const char *value)
Definition Grant.h:94
const Aws::String & GetParentArn() const
Definition Grant.h:76
void SetOptions(const Options &value)
Definition Grant.h:188
Grant & WithHomeRegion(const char *value)
Definition Grant.h:125
void SetHomeRegion(const char *value)
Definition Grant.h:122
Grant & AddGrantedOperations(AllowedOperation &&value)
Definition Grant.h:179
bool LicenseArnHasBeenSet() const
Definition Grant.h:91
void SetGrantArn(const Aws::String &value)
Definition Grant.h:50
const Aws::Vector< AllowedOperation > & GetGrantedOperations() const
Definition Grant.h:172
void SetVersion(const Aws::String &value)
Definition Grant.h:160
Grant & WithVersion(Aws::String &&value)
Definition Grant.h:164
const GrantStatus & GetGrantStatus() const
Definition Grant.h:132
const Aws::String & GetGrantName() const
Definition Grant.h:62
void SetGrantName(const char *value)
Definition Grant.h:66
Grant & WithOptions(const Options &value)
Definition Grant.h:190
void SetLicenseArn(const Aws::String &value)
Definition Grant.h:92
Grant & WithGrantedOperations(const Aws::Vector< AllowedOperation > &value)
Definition Grant.h:176
void SetParentArn(Aws::String &&value)
Definition Grant.h:79
void SetGrantStatus(const GrantStatus &value)
Definition Grant.h:134
AWS_LICENSEMANAGER_API Grant(Aws::Utils::Json::JsonView jsonValue)
void SetGrantedOperations(Aws::Vector< AllowedOperation > &&value)
Definition Grant.h:175
Grant & WithGrantArn(const Aws::String &value)
Definition Grant.h:53
void SetGrantName(const Aws::String &value)
Definition Grant.h:64
void SetGrantArn(Aws::String &&value)
Definition Grant.h:51
Grant & WithGranteePrincipalArn(Aws::String &&value)
Definition Grant.h:110
void SetGranteePrincipalArn(const char *value)
Definition Grant.h:108
Grant & WithParentArn(const char *value)
Definition Grant.h:83
Grant & WithLicenseArn(const Aws::String &value)
Definition Grant.h:95
void SetGranteePrincipalArn(Aws::String &&value)
Definition Grant.h:107
Grant & WithGranteePrincipalArn(const char *value)
Definition Grant.h:111
Grant & WithLicenseArn(Aws::String &&value)
Definition Grant.h:96
bool GrantStatusHasBeenSet() const
Definition Grant.h:133
void SetVersion(Aws::String &&value)
Definition Grant.h:161
Grant & WithGrantedOperations(Aws::Vector< AllowedOperation > &&value)
Definition Grant.h:177
AWS_LICENSEMANAGER_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
Grant & WithStatusReason(Aws::String &&value)
Definition Grant.h:150
Grant & WithGrantArn(const char *value)
Definition Grant.h:55
void SetGrantName(Aws::String &&value)
Definition Grant.h:65
Grant & WithGrantName(Aws::String &&value)
Definition Grant.h:68
Grant & WithGrantName(const Aws::String &value)
Definition Grant.h:67
bool GrantArnHasBeenSet() const
Definition Grant.h:49
void SetStatusReason(const char *value)
Definition Grant.h:148
void SetOptions(Options &&value)
Definition Grant.h:189
void SetStatusReason(Aws::String &&value)
Definition Grant.h:147
Grant & WithGrantStatus(const GrantStatus &value)
Definition Grant.h:136
bool HomeRegionHasBeenSet() const
Definition Grant.h:119
Grant & WithGrantArn(Aws::String &&value)
Definition Grant.h:54
Grant & AddGrantedOperations(const AllowedOperation &value)
Definition Grant.h:178
Grant & WithStatusReason(const Aws::String &value)
Definition Grant.h:149
void SetVersion(const char *value)
Definition Grant.h:162
Grant & WithOptions(Options &&value)
Definition Grant.h:191
void SetLicenseArn(Aws::String &&value)
Definition Grant.h:93
bool StatusReasonHasBeenSet() const
Definition Grant.h:145
const Aws::String & GetHomeRegion() const
Definition Grant.h:118
AWS_LICENSEMANAGER_API Grant()
void SetStatusReason(const Aws::String &value)
Definition Grant.h:146
bool GrantNameHasBeenSet() const
Definition Grant.h:63
Grant & WithVersion(const char *value)
Definition Grant.h:165
const Aws::String & GetGranteePrincipalArn() const
Definition Grant.h:104
Grant & WithGrantStatus(GrantStatus &&value)
Definition Grant.h:137
const Aws::String & GetStatusReason() const
Definition Grant.h:144
const Options & GetOptions() const
Definition Grant.h:186
void SetGranteePrincipalArn(const Aws::String &value)
Definition Grant.h:106
Grant & WithParentArn(Aws::String &&value)
Definition Grant.h:82
void SetParentArn(const Aws::String &value)
Definition Grant.h:78
Grant & WithHomeRegion(Aws::String &&value)
Definition Grant.h:124
void SetHomeRegion(Aws::String &&value)
Definition Grant.h:121
bool GranteePrincipalArnHasBeenSet() const
Definition Grant.h:105
void SetParentArn(const char *value)
Definition Grant.h:80
Grant & WithHomeRegion(const Aws::String &value)
Definition Grant.h:123
void SetHomeRegion(const Aws::String &value)
Definition Grant.h:120
void SetGrantedOperations(const Aws::Vector< AllowedOperation > &value)
Definition Grant.h:174
Grant & WithStatusReason(const char *value)
Definition Grant.h:151
bool ParentArnHasBeenSet() const
Definition Grant.h:77
Grant & WithParentArn(const Aws::String &value)
Definition Grant.h:81
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool GrantedOperationsHasBeenSet() const
Definition Grant.h:173
const Aws::String & GetGrantArn() const
Definition Grant.h:48
const Aws::String & GetVersion() const
Definition Grant.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue