AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
UpdateLicenseAssetRulesetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/LicenseAssetRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LicenseManager {
17namespace Model {
18
22 public:
23 AWS_LICENSEMANAGER_API UpdateLicenseAssetRulesetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateLicenseAssetRuleset"; }
30
31 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<LicenseAssetRule>& GetRules() const { return m_rules; }
76 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
77 template <typename RulesT = Aws::Vector<LicenseAssetRule>>
78 void SetRules(RulesT&& value) {
79 m_rulesHasBeenSet = true;
80 m_rules = std::forward<RulesT>(value);
81 }
82 template <typename RulesT = Aws::Vector<LicenseAssetRule>>
84 SetRules(std::forward<RulesT>(value));
85 return *this;
86 }
87 template <typename RulesT = LicenseAssetRule>
89 m_rulesHasBeenSet = true;
90 m_rules.emplace_back(std::forward<RulesT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetLicenseAssetRulesetArn() const { return m_licenseAssetRulesetArn; }
100 inline bool LicenseAssetRulesetArnHasBeenSet() const { return m_licenseAssetRulesetArnHasBeenSet; }
101 template <typename LicenseAssetRulesetArnT = Aws::String>
102 void SetLicenseAssetRulesetArn(LicenseAssetRulesetArnT&& value) {
103 m_licenseAssetRulesetArnHasBeenSet = true;
104 m_licenseAssetRulesetArn = std::forward<LicenseAssetRulesetArnT>(value);
105 }
106 template <typename LicenseAssetRulesetArnT = Aws::String>
108 SetLicenseAssetRulesetArn(std::forward<LicenseAssetRulesetArnT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template <typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) {
122 m_clientTokenHasBeenSet = true;
123 m_clientToken = std::forward<ClientTokenT>(value);
124 }
125 template <typename ClientTokenT = Aws::String>
127 SetClientToken(std::forward<ClientTokenT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_name;
133
134 Aws::String m_description;
135
137
138 Aws::String m_licenseAssetRulesetArn;
139
140 Aws::String m_clientToken;
141 bool m_nameHasBeenSet = false;
142 bool m_descriptionHasBeenSet = false;
143 bool m_rulesHasBeenSet = false;
144 bool m_licenseAssetRulesetArnHasBeenSet = false;
145 bool m_clientTokenHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace LicenseManager
150} // namespace Aws
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLicenseAssetRulesetRequest & WithLicenseAssetRulesetArn(LicenseAssetRulesetArnT &&value)
UpdateLicenseAssetRulesetRequest & WithDescription(DescriptionT &&value)
AWS_LICENSEMANAGER_API UpdateLicenseAssetRulesetRequest()=default
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
UpdateLicenseAssetRulesetRequest & WithClientToken(ClientTokenT &&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