AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
50 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
51 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
52 inline LicenseConfigurationUsage& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
53 inline LicenseConfigurationUsage& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
54 inline LicenseConfigurationUsage& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
56
58
61 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
65 inline LicenseConfigurationUsage& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
66 inline LicenseConfigurationUsage& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetResourceStatus() const{ return m_resourceStatus; }
74 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
75 inline void SetResourceStatus(const Aws::String& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
76 inline void SetResourceStatus(Aws::String&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
77 inline void SetResourceStatus(const char* value) { m_resourceStatusHasBeenSet = true; m_resourceStatus.assign(value); }
78 inline LicenseConfigurationUsage& WithResourceStatus(const Aws::String& value) { SetResourceStatus(value); return *this;}
79 inline LicenseConfigurationUsage& WithResourceStatus(Aws::String&& value) { SetResourceStatus(std::move(value)); return *this;}
80 inline LicenseConfigurationUsage& WithResourceStatus(const char* value) { SetResourceStatus(value); return *this;}
82
84
87 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
88 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
89 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
90 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
91 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
92 inline LicenseConfigurationUsage& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
93 inline LicenseConfigurationUsage& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
94 inline LicenseConfigurationUsage& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetAssociationTime() const{ return m_associationTime; }
103 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
104 inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; }
105 inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); }
109
111
114 inline long long GetConsumedLicenses() const{ return m_consumedLicenses; }
115 inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
116 inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
117 inline LicenseConfigurationUsage& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
119 private:
120
121 Aws::String m_resourceArn;
122 bool m_resourceArnHasBeenSet = false;
123
124 ResourceType m_resourceType;
125 bool m_resourceTypeHasBeenSet = false;
126
127 Aws::String m_resourceStatus;
128 bool m_resourceStatusHasBeenSet = false;
129
130 Aws::String m_resourceOwnerId;
131 bool m_resourceOwnerIdHasBeenSet = false;
132
133 Aws::Utils::DateTime m_associationTime;
134 bool m_associationTimeHasBeenSet = false;
135
136 long long m_consumedLicenses;
137 bool m_consumedLicensesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace LicenseManager
142} // namespace Aws
LicenseConfigurationUsage & WithResourceOwnerId(const Aws::String &value)
LicenseConfigurationUsage & WithResourceArn(Aws::String &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API LicenseConfigurationUsage(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationUsage & WithResourceStatus(Aws::String &&value)
LicenseConfigurationUsage & WithAssociationTime(const Aws::Utils::DateTime &value)
LicenseConfigurationUsage & WithResourceOwnerId(Aws::String &&value)
LicenseConfigurationUsage & WithAssociationTime(Aws::Utils::DateTime &&value)
LicenseConfigurationUsage & WithResourceArn(const char *value)
LicenseConfigurationUsage & WithResourceType(ResourceType &&value)
LicenseConfigurationUsage & WithResourceArn(const Aws::String &value)
LicenseConfigurationUsage & WithResourceOwnerId(const char *value)
LicenseConfigurationUsage & WithResourceType(const ResourceType &value)
LicenseConfigurationUsage & WithConsumedLicenses(long long value)
AWS_LICENSEMANAGER_API LicenseConfigurationUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationUsage & WithResourceStatus(const Aws::String &value)
LicenseConfigurationUsage & WithResourceStatus(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue