AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LicenseAssetRuleset.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/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/LicenseAssetRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LicenseManager {
22namespace Model {
23
30 public:
31 AWS_LICENSEMANAGER_API LicenseAssetRuleset() = default;
32 AWS_LICENSEMANAGER_API LicenseAssetRuleset(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API LicenseAssetRuleset& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
48 LicenseAssetRuleset& WithName(NameT&& value) {
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>
66 LicenseAssetRuleset& WithDescription(DescriptionT&& value) {
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>>
84 LicenseAssetRuleset& WithRules(RulesT&& value) {
85 SetRules(std::forward<RulesT>(value));
86 return *this;
87 }
88 template <typename RulesT = LicenseAssetRule>
89 LicenseAssetRuleset& AddRules(RulesT&& value) {
90 m_rulesHasBeenSet = true;
91 m_rules.emplace_back(std::forward<RulesT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetLicenseAssetRulesetArn() const { return m_licenseAssetRulesetArn; }
101 inline bool LicenseAssetRulesetArnHasBeenSet() const { return m_licenseAssetRulesetArnHasBeenSet; }
102 template <typename LicenseAssetRulesetArnT = Aws::String>
103 void SetLicenseAssetRulesetArn(LicenseAssetRulesetArnT&& value) {
104 m_licenseAssetRulesetArnHasBeenSet = true;
105 m_licenseAssetRulesetArn = std::forward<LicenseAssetRulesetArnT>(value);
106 }
107 template <typename LicenseAssetRulesetArnT = Aws::String>
108 LicenseAssetRuleset& WithLicenseAssetRulesetArn(LicenseAssetRulesetArnT&& value) {
109 SetLicenseAssetRulesetArn(std::forward<LicenseAssetRulesetArnT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
116 Aws::String m_description;
117
119
120 Aws::String m_licenseAssetRulesetArn;
121 bool m_nameHasBeenSet = false;
122 bool m_descriptionHasBeenSet = false;
123 bool m_rulesHasBeenSet = false;
124 bool m_licenseAssetRulesetArnHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace LicenseManager
129} // namespace Aws
LicenseAssetRuleset & WithName(NameT &&value)
LicenseAssetRuleset & WithDescription(DescriptionT &&value)
LicenseAssetRuleset & WithRules(RulesT &&value)
AWS_LICENSEMANAGER_API LicenseAssetRuleset & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LicenseAssetRule > & GetRules() const
void SetLicenseAssetRulesetArn(LicenseAssetRulesetArnT &&value)
AWS_LICENSEMANAGER_API LicenseAssetRuleset()=default
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseAssetRuleset & AddRules(RulesT &&value)
AWS_LICENSEMANAGER_API LicenseAssetRuleset(Aws::Utils::Json::JsonView jsonValue)
LicenseAssetRuleset & WithLicenseAssetRulesetArn(LicenseAssetRulesetArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue