AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CreateLicenseAssetGroupRequest.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/LicenseAssetGroupConfiguration.h>
12#include <aws/license-manager/model/LicenseAssetGroupProperty.h>
13#include <aws/license-manager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LicenseManager {
19namespace Model {
20
24 public:
25 AWS_LICENSEMANAGER_API CreateLicenseAssetGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateLicenseAssetGroup"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 return m_licenseAssetGroupConfigurations;
79 }
80 inline bool LicenseAssetGroupConfigurationsHasBeenSet() const { return m_licenseAssetGroupConfigurationsHasBeenSet; }
81 template <typename LicenseAssetGroupConfigurationsT = Aws::Vector<LicenseAssetGroupConfiguration>>
82 void SetLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
83 m_licenseAssetGroupConfigurationsHasBeenSet = true;
84 m_licenseAssetGroupConfigurations = std::forward<LicenseAssetGroupConfigurationsT>(value);
85 }
86 template <typename LicenseAssetGroupConfigurationsT = Aws::Vector<LicenseAssetGroupConfiguration>>
87 CreateLicenseAssetGroupRequest& WithLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
88 SetLicenseAssetGroupConfigurations(std::forward<LicenseAssetGroupConfigurationsT>(value));
89 return *this;
90 }
91 template <typename LicenseAssetGroupConfigurationsT = LicenseAssetGroupConfiguration>
92 CreateLicenseAssetGroupRequest& AddLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
93 m_licenseAssetGroupConfigurationsHasBeenSet = true;
94 m_licenseAssetGroupConfigurations.emplace_back(std::forward<LicenseAssetGroupConfigurationsT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Aws::String>& GetAssociatedLicenseAssetRulesetARNs() const { return m_associatedLicenseAssetRulesetARNs; }
104 inline bool AssociatedLicenseAssetRulesetARNsHasBeenSet() const { return m_associatedLicenseAssetRulesetARNsHasBeenSet; }
105 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::Vector<Aws::String>>
106 void SetAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
107 m_associatedLicenseAssetRulesetARNsHasBeenSet = true;
108 m_associatedLicenseAssetRulesetARNs = std::forward<AssociatedLicenseAssetRulesetARNsT>(value);
109 }
110 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::Vector<Aws::String>>
111 CreateLicenseAssetGroupRequest& WithAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
112 SetAssociatedLicenseAssetRulesetARNs(std::forward<AssociatedLicenseAssetRulesetARNsT>(value));
113 return *this;
114 }
115 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::String>
116 CreateLicenseAssetGroupRequest& AddAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
117 m_associatedLicenseAssetRulesetARNsHasBeenSet = true;
118 m_associatedLicenseAssetRulesetARNs.emplace_back(std::forward<AssociatedLicenseAssetRulesetARNsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<LicenseAssetGroupProperty>& GetProperties() const { return m_properties; }
128 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
129 template <typename PropertiesT = Aws::Vector<LicenseAssetGroupProperty>>
130 void SetProperties(PropertiesT&& value) {
131 m_propertiesHasBeenSet = true;
132 m_properties = std::forward<PropertiesT>(value);
133 }
134 template <typename PropertiesT = Aws::Vector<LicenseAssetGroupProperty>>
136 SetProperties(std::forward<PropertiesT>(value));
137 return *this;
138 }
139 template <typename PropertiesT = LicenseAssetGroupProperty>
141 m_propertiesHasBeenSet = true;
142 m_properties.emplace_back(std::forward<PropertiesT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template <typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags = std::forward<TagsT>(value);
157 }
158 template <typename TagsT = Aws::Vector<Tag>>
160 SetTags(std::forward<TagsT>(value));
161 return *this;
162 }
163 template <typename TagsT = Tag>
165 m_tagsHasBeenSet = true;
166 m_tags.emplace_back(std::forward<TagsT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetClientToken() const { return m_clientToken; }
177 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 template <typename ClientTokenT = Aws::String>
179 void SetClientToken(ClientTokenT&& value) {
180 m_clientTokenHasBeenSet = true;
181 m_clientToken = std::forward<ClientTokenT>(value);
182 }
183 template <typename ClientTokenT = Aws::String>
185 SetClientToken(std::forward<ClientTokenT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_name;
191
192 Aws::String m_description;
193
194 Aws::Vector<LicenseAssetGroupConfiguration> m_licenseAssetGroupConfigurations;
195
196 Aws::Vector<Aws::String> m_associatedLicenseAssetRulesetARNs;
197
199
200 Aws::Vector<Tag> m_tags;
201
202 Aws::String m_clientToken;
203 bool m_nameHasBeenSet = false;
204 bool m_descriptionHasBeenSet = false;
205 bool m_licenseAssetGroupConfigurationsHasBeenSet = false;
206 bool m_associatedLicenseAssetRulesetARNsHasBeenSet = false;
207 bool m_propertiesHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace LicenseManager
214} // namespace Aws
void SetAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
AWS_LICENSEMANAGER_API CreateLicenseAssetGroupRequest()=default
CreateLicenseAssetGroupRequest & WithAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetAssociatedLicenseAssetRulesetARNs() const
CreateLicenseAssetGroupRequest & WithClientToken(ClientTokenT &&value)
CreateLicenseAssetGroupRequest & AddLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
const Aws::Vector< LicenseAssetGroupProperty > & GetProperties() const
const Aws::Vector< LicenseAssetGroupConfiguration > & GetLicenseAssetGroupConfigurations() const
CreateLicenseAssetGroupRequest & WithProperties(PropertiesT &&value)
CreateLicenseAssetGroupRequest & WithDescription(DescriptionT &&value)
CreateLicenseAssetGroupRequest & WithLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
CreateLicenseAssetGroupRequest & AddAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
void SetLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseAssetGroupRequest & AddProperties(PropertiesT &&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