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/Options.h>
23namespace LicenseManager {
33 AWS_LICENSEMANAGER_API
Grant() =
default;
44 template <
typename GrantArnT = Aws::String>
46 m_grantArnHasBeenSet =
true;
47 m_grantArn = std::forward<GrantArnT>(value);
49 template <
typename GrantArnT = Aws::String>
62 template <
typename GrantNameT = Aws::String>
64 m_grantNameHasBeenSet =
true;
65 m_grantName = std::forward<GrantNameT>(value);
67 template <
typename GrantNameT = Aws::String>
80 template <
typename ParentArnT = Aws::String>
82 m_parentArnHasBeenSet =
true;
83 m_parentArn = std::forward<ParentArnT>(value);
85 template <
typename ParentArnT = Aws::String>
98 template <
typename LicenseArnT = Aws::String>
100 m_licenseArnHasBeenSet =
true;
101 m_licenseArn = std::forward<LicenseArnT>(value);
103 template <
typename LicenseArnT = Aws::String>
116 template <
typename GranteePrincipalArnT = Aws::String>
118 m_granteePrincipalArnHasBeenSet =
true;
119 m_granteePrincipalArn = std::forward<GranteePrincipalArnT>(value);
121 template <
typename GranteePrincipalArnT = Aws::String>
134 template <
typename HomeRegionT = Aws::String>
136 m_homeRegionHasBeenSet =
true;
137 m_homeRegion = std::forward<HomeRegionT>(value);
139 template <
typename HomeRegionT = Aws::String>
153 m_grantStatusHasBeenSet =
true;
154 m_grantStatus = value;
168 template <
typename StatusReasonT = Aws::String>
170 m_statusReasonHasBeenSet =
true;
171 m_statusReason = std::forward<StatusReasonT>(value);
173 template <
typename StatusReasonT = Aws::String>
186 template <
typename VersionT = Aws::String>
188 m_versionHasBeenSet =
true;
189 m_version = std::forward<VersionT>(value);
191 template <
typename VersionT = Aws::String>
204 template <
typename GrantedOperationsT = Aws::Vector<AllowedOperation>>
206 m_grantedOperationsHasBeenSet =
true;
207 m_grantedOperations = std::forward<GrantedOperationsT>(value);
209 template <
typename GrantedOperationsT = Aws::Vector<AllowedOperation>>
215 m_grantedOperationsHasBeenSet =
true;
216 m_grantedOperations.push_back(value);
227 template <
typename OptionsT = Options>
229 m_optionsHasBeenSet =
true;
230 m_options = std::forward<OptionsT>(value);
232 template <
typename OptionsT = Options>
260 bool m_grantArnHasBeenSet =
false;
261 bool m_grantNameHasBeenSet =
false;
262 bool m_parentArnHasBeenSet =
false;
263 bool m_licenseArnHasBeenSet =
false;
264 bool m_granteePrincipalArnHasBeenSet =
false;
265 bool m_homeRegionHasBeenSet =
false;
266 bool m_grantStatusHasBeenSet =
false;
267 bool m_statusReasonHasBeenSet =
false;
268 bool m_versionHasBeenSet =
false;
269 bool m_grantedOperationsHasBeenSet =
false;
270 bool m_optionsHasBeenSet =
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
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
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
void SetGrantedOperations(GrantedOperationsT &&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