AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateLicenseConfigurationRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/license-manager/model/LicenseConfigurationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/license-manager/model/ProductInformation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LicenseManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateLicenseConfiguration"; }
34
35 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
45 inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; }
46 template<typename LicenseConfigurationArnT = Aws::String>
47 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value); }
48 template<typename LicenseConfigurationArnT = Aws::String>
49 UpdateLicenseConfigurationRequest& WithLicenseConfigurationArn(LicenseConfigurationArnT&& value) { SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value)); return *this;}
51
53
56 inline LicenseConfigurationStatus GetLicenseConfigurationStatus() const { return m_licenseConfigurationStatus; }
57 inline bool LicenseConfigurationStatusHasBeenSet() const { return m_licenseConfigurationStatusHasBeenSet; }
58 inline void SetLicenseConfigurationStatus(LicenseConfigurationStatus value) { m_licenseConfigurationStatusHasBeenSet = true; m_licenseConfigurationStatus = value; }
61
63
67 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
68 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
69 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
70 void SetLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::forward<LicenseRulesT>(value); }
71 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
72 UpdateLicenseConfigurationRequest& WithLicenseRules(LicenseRulesT&& value) { SetLicenseRules(std::forward<LicenseRulesT>(value)); return *this;}
73 template<typename LicenseRulesT = Aws::String>
74 UpdateLicenseConfigurationRequest& AddLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value)); return *this; }
76
78
81 inline long long GetLicenseCount() const { return m_licenseCount; }
82 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
83 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
84 inline UpdateLicenseConfigurationRequest& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
86
88
91 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
92 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
93 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template<typename NameT = Aws::String>
104 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
105 template<typename NameT = Aws::String>
106 UpdateLicenseConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template<typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
117 template<typename DescriptionT = Aws::String>
118 UpdateLicenseConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
120
122
125 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
126 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
127 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
128 void SetProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::forward<ProductInformationListT>(value); }
129 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
130 UpdateLicenseConfigurationRequest& WithProductInformationList(ProductInformationListT&& value) { SetProductInformationList(std::forward<ProductInformationListT>(value)); return *this;}
131 template<typename ProductInformationListT = ProductInformation>
132 UpdateLicenseConfigurationRequest& AddProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value)); return *this; }
134
136
139 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
140 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
141 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
144 private:
145
146 Aws::String m_licenseConfigurationArn;
147 bool m_licenseConfigurationArnHasBeenSet = false;
148
150 bool m_licenseConfigurationStatusHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_licenseRules;
153 bool m_licenseRulesHasBeenSet = false;
154
155 long long m_licenseCount{0};
156 bool m_licenseCountHasBeenSet = false;
157
158 bool m_licenseCountHardLimit{false};
159 bool m_licenseCountHardLimitHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::Vector<ProductInformation> m_productInformationList;
168 bool m_productInformationListHasBeenSet = false;
169
170 bool m_disassociateWhenNotFound{false};
171 bool m_disassociateWhenNotFoundHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace LicenseManager
176} // namespace Aws
UpdateLicenseConfigurationRequest & AddProductInformationList(ProductInformationListT &&value)
UpdateLicenseConfigurationRequest & WithLicenseCount(long long value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationStatus(LicenseConfigurationStatus value)
AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest()=default
UpdateLicenseConfigurationRequest & WithLicenseRules(LicenseRulesT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLicenseConfigurationRequest & WithProductInformationList(ProductInformationListT &&value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationArn(LicenseConfigurationArnT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
UpdateLicenseConfigurationRequest & AddLicenseRules(LicenseRulesT &&value)
UpdateLicenseConfigurationRequest & WithDisassociateWhenNotFound(bool value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
UpdateLicenseConfigurationRequest & WithLicenseCountHardLimit(bool value)
UpdateLicenseConfigurationRequest & WithDescription(DescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector