AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LicenseConfigurationUsage.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/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LicenseManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LICENSEMANAGER_API LicenseConfigurationUsage() = default;
38 AWS_LICENSEMANAGER_API LicenseConfigurationUsage(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 template<typename ResourceArnT = Aws::String>
50 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
51 template<typename ResourceArnT = Aws::String>
52 LicenseConfigurationUsage& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
54
56
59 inline ResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64
66
69 inline const Aws::String& GetResourceStatus() const { return m_resourceStatus; }
70 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
71 template<typename ResourceStatusT = Aws::String>
72 void SetResourceStatus(ResourceStatusT&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::forward<ResourceStatusT>(value); }
73 template<typename ResourceStatusT = Aws::String>
74 LicenseConfigurationUsage& WithResourceStatus(ResourceStatusT&& value) { SetResourceStatus(std::forward<ResourceStatusT>(value)); return *this;}
76
78
81 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
82 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
83 template<typename ResourceOwnerIdT = Aws::String>
84 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
85 template<typename ResourceOwnerIdT = Aws::String>
86 LicenseConfigurationUsage& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
95 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
96 template<typename AssociationTimeT = Aws::Utils::DateTime>
97 void SetAssociationTime(AssociationTimeT&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::forward<AssociationTimeT>(value); }
98 template<typename AssociationTimeT = Aws::Utils::DateTime>
99 LicenseConfigurationUsage& WithAssociationTime(AssociationTimeT&& value) { SetAssociationTime(std::forward<AssociationTimeT>(value)); return *this;}
101
103
106 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
107 inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
108 inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
109 inline LicenseConfigurationUsage& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
111 private:
112
113 Aws::String m_resourceArn;
114 bool m_resourceArnHasBeenSet = false;
115
116 ResourceType m_resourceType{ResourceType::NOT_SET};
117 bool m_resourceTypeHasBeenSet = false;
118
119 Aws::String m_resourceStatus;
120 bool m_resourceStatusHasBeenSet = false;
121
122 Aws::String m_resourceOwnerId;
123 bool m_resourceOwnerIdHasBeenSet = false;
124
125 Aws::Utils::DateTime m_associationTime{};
126 bool m_associationTimeHasBeenSet = false;
127
128 long long m_consumedLicenses{0};
129 bool m_consumedLicensesHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace LicenseManager
134} // namespace Aws
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfigurationUsage & WithResourceStatus(ResourceStatusT &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationUsage(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API LicenseConfigurationUsage()=default
LicenseConfigurationUsage & WithResourceOwnerId(ResourceOwnerIdT &&value)
LicenseConfigurationUsage & WithResourceType(ResourceType value)
LicenseConfigurationUsage & WithConsumedLicenses(long long value)
AWS_LICENSEMANAGER_API LicenseConfigurationUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationUsage & WithResourceArn(ResourceArnT &&value)
LicenseConfigurationUsage & WithAssociationTime(AssociationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue