AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CreateLicenseAssetRulesetRequest.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#include <aws/license-manager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LicenseManager {
18namespace Model {
19
23 public:
24 AWS_LICENSEMANAGER_API CreateLicenseAssetRulesetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLicenseAssetRuleset"; }
31
32 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<LicenseAssetRule>& GetRules() const { return m_rules; }
77 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
78 template <typename RulesT = Aws::Vector<LicenseAssetRule>>
79 void SetRules(RulesT&& value) {
80 m_rulesHasBeenSet = true;
81 m_rules = std::forward<RulesT>(value);
82 }
83 template <typename RulesT = Aws::Vector<LicenseAssetRule>>
85 SetRules(std::forward<RulesT>(value));
86 return *this;
87 }
88 template <typename RulesT = LicenseAssetRule>
90 m_rulesHasBeenSet = true;
91 m_rules.emplace_back(std::forward<RulesT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template <typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Vector<Tag>>
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsT = Tag>
114 m_tagsHasBeenSet = true;
115 m_tags.emplace_back(std::forward<TagsT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetClientToken() const { return m_clientToken; }
126 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
127 template <typename ClientTokenT = Aws::String>
128 void SetClientToken(ClientTokenT&& value) {
129 m_clientTokenHasBeenSet = true;
130 m_clientToken = std::forward<ClientTokenT>(value);
131 }
132 template <typename ClientTokenT = Aws::String>
134 SetClientToken(std::forward<ClientTokenT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
144
145 Aws::Vector<Tag> m_tags;
146
147 Aws::String m_clientToken;
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_rulesHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152 bool m_clientTokenHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace LicenseManager
157} // namespace Aws
CreateLicenseAssetRulesetRequest & WithClientToken(ClientTokenT &&value)
CreateLicenseAssetRulesetRequest & WithDescription(DescriptionT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
AWS_LICENSEMANAGER_API CreateLicenseAssetRulesetRequest()=default
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