AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LicenseUsage.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/model/EntitlementUsage.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LICENSEMANAGER_API LicenseUsage();
37 AWS_LICENSEMANAGER_API LicenseUsage(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API LicenseUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<EntitlementUsage>& GetEntitlementUsages() const{ return m_entitlementUsages; }
47 inline bool EntitlementUsagesHasBeenSet() const { return m_entitlementUsagesHasBeenSet; }
48 inline void SetEntitlementUsages(const Aws::Vector<EntitlementUsage>& value) { m_entitlementUsagesHasBeenSet = true; m_entitlementUsages = value; }
49 inline void SetEntitlementUsages(Aws::Vector<EntitlementUsage>&& value) { m_entitlementUsagesHasBeenSet = true; m_entitlementUsages = std::move(value); }
51 inline LicenseUsage& WithEntitlementUsages(Aws::Vector<EntitlementUsage>&& value) { SetEntitlementUsages(std::move(value)); return *this;}
52 inline LicenseUsage& AddEntitlementUsages(const EntitlementUsage& value) { m_entitlementUsagesHasBeenSet = true; m_entitlementUsages.push_back(value); return *this; }
53 inline LicenseUsage& AddEntitlementUsages(EntitlementUsage&& value) { m_entitlementUsagesHasBeenSet = true; m_entitlementUsages.push_back(std::move(value)); return *this; }
55 private:
56
57 Aws::Vector<EntitlementUsage> m_entitlementUsages;
58 bool m_entitlementUsagesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace LicenseManager
63} // namespace Aws
void SetEntitlementUsages(Aws::Vector< EntitlementUsage > &&value)
const Aws::Vector< EntitlementUsage > & GetEntitlementUsages() const
AWS_LICENSEMANAGER_API LicenseUsage()
AWS_LICENSEMANAGER_API LicenseUsage(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseUsage & AddEntitlementUsages(const EntitlementUsage &value)
LicenseUsage & WithEntitlementUsages(const Aws::Vector< EntitlementUsage > &value)
LicenseUsage & AddEntitlementUsages(EntitlementUsage &&value)
AWS_LICENSEMANAGER_API LicenseUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEntitlementUsages(const Aws::Vector< EntitlementUsage > &value)
LicenseUsage & WithEntitlementUsages(Aws::Vector< EntitlementUsage > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue