7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/AllowedOperation.h>
11#include <aws/license-manager/model/GrantStatus.h>
12#include <aws/license-manager/model/GrantType.h>
13#include <aws/license-manager/model/Options.h>
24namespace LicenseManager {
34 AWS_LICENSEMANAGER_API
Grant() =
default;
45 template <
typename GrantArnT = Aws::String>
47 m_grantArnHasBeenSet =
true;
48 m_grantArn = std::forward<GrantArnT>(value);
50 template <
typename GrantArnT = Aws::String>
63 template <
typename GrantNameT = Aws::String>
65 m_grantNameHasBeenSet =
true;
66 m_grantName = std::forward<GrantNameT>(value);
68 template <
typename GrantNameT = Aws::String>
81 template <
typename ParentArnT = Aws::String>
83 m_parentArnHasBeenSet =
true;
84 m_parentArn = std::forward<ParentArnT>(value);
86 template <
typename ParentArnT = Aws::String>
99 template <
typename LicenseArnT = Aws::String>
101 m_licenseArnHasBeenSet =
true;
102 m_licenseArn = std::forward<LicenseArnT>(value);
104 template <
typename LicenseArnT = Aws::String>
117 template <
typename GranteePrincipalArnT = Aws::String>
119 m_granteePrincipalArnHasBeenSet =
true;
120 m_granteePrincipalArn = std::forward<GranteePrincipalArnT>(value);
122 template <
typename GranteePrincipalArnT = Aws::String>
135 template <
typename HomeRegionT = Aws::String>
137 m_homeRegionHasBeenSet =
true;
138 m_homeRegion = std::forward<HomeRegionT>(value);
140 template <
typename HomeRegionT = Aws::String>
154 m_grantStatusHasBeenSet =
true;
155 m_grantStatus = value;
169 template <
typename StatusReasonT = Aws::String>
171 m_statusReasonHasBeenSet =
true;
172 m_statusReason = std::forward<StatusReasonT>(value);
174 template <
typename StatusReasonT = Aws::String>
187 template <
typename VersionT = Aws::String>
189 m_versionHasBeenSet =
true;
190 m_version = std::forward<VersionT>(value);
192 template <
typename VersionT = Aws::String>
205 template <
typename GrantedOperationsT = Aws::Vector<AllowedOperation>>
207 m_grantedOperationsHasBeenSet =
true;
208 m_grantedOperations = std::forward<GrantedOperationsT>(value);
210 template <
typename GrantedOperationsT = Aws::Vector<AllowedOperation>>
216 m_grantedOperationsHasBeenSet =
true;
217 m_grantedOperations.push_back(value);
228 template <
typename OptionsT = Options>
230 m_optionsHasBeenSet =
true;
231 m_options = std::forward<OptionsT>(value);
233 template <
typename OptionsT = Options>
251 m_grantTypeHasBeenSet =
true;
283 bool m_grantArnHasBeenSet =
false;
284 bool m_grantNameHasBeenSet =
false;
285 bool m_parentArnHasBeenSet =
false;
286 bool m_licenseArnHasBeenSet =
false;
287 bool m_granteePrincipalArnHasBeenSet =
false;
288 bool m_homeRegionHasBeenSet =
false;
289 bool m_grantStatusHasBeenSet =
false;
290 bool m_statusReasonHasBeenSet =
false;
291 bool m_versionHasBeenSet =
false;
292 bool m_grantedOperationsHasBeenSet =
false;
293 bool m_optionsHasBeenSet =
false;
294 bool m_grantTypeHasBeenSet =
false;
Grant & AddGrantedOperations(AllowedOperation value)
Grant & WithOptions(OptionsT &&value)
void SetLicenseArn(LicenseArnT &&value)
Grant & WithGrantArn(GrantArnT &&value)
const Aws::String & GetLicenseArn() const
Grant & WithHomeRegion(HomeRegionT &&value)
const Aws::String & GetParentArn() const
bool LicenseArnHasBeenSet() const
const Aws::Vector< AllowedOperation > & GetGrantedOperations() const
void SetVersion(VersionT &&value)
void SetGranteePrincipalArn(GranteePrincipalArnT &&value)
const Aws::String & GetGrantName() const
void SetGrantType(GrantType value)
Grant & WithGrantName(GrantNameT &&value)
void SetGrantArn(GrantArnT &&value)
void SetParentArn(ParentArnT &&value)
AWS_LICENSEMANAGER_API Grant(Aws::Utils::Json::JsonView jsonValue)
Grant & WithStatusReason(StatusReasonT &&value)
Grant & WithVersion(VersionT &&value)
void SetGrantName(GrantNameT &&value)
Grant & WithGrantStatus(GrantStatus value)
bool GrantStatusHasBeenSet() const
AWS_LICENSEMANAGER_API Grant & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GrantArnHasBeenSet() const
bool HomeRegionHasBeenSet() const
bool VersionHasBeenSet() const
Grant & WithLicenseArn(LicenseArnT &&value)
Grant & WithGranteePrincipalArn(GranteePrincipalArnT &&value)
bool StatusReasonHasBeenSet() const
const Aws::String & GetHomeRegion() const
GrantType GetGrantType() const
bool GrantNameHasBeenSet() const
GrantStatus GetGrantStatus() const
const Aws::String & GetGranteePrincipalArn() const
void SetGrantStatus(GrantStatus value)
const Aws::String & GetStatusReason() const
bool OptionsHasBeenSet() const
AWS_LICENSEMANAGER_API Grant()=default
const Options & GetOptions() const
bool GrantTypeHasBeenSet() const
void SetGrantedOperations(GrantedOperationsT &&value)
Grant & WithGrantType(GrantType value)
Grant & WithGrantedOperations(GrantedOperationsT &&value)
bool GranteePrincipalArnHasBeenSet() const
void SetOptions(OptionsT &&value)
void SetHomeRegion(HomeRegionT &&value)
Grant & WithParentArn(ParentArnT &&value)
bool ParentArnHasBeenSet() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool GrantedOperationsHasBeenSet() const
const Aws::String & GetGrantArn() const
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue