AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
LicenseAssetRule.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/model/RuleStatement.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LicenseManager {
20namespace Model {
21
28 public:
29 AWS_LICENSEMANAGER_API LicenseAssetRule() = default;
30 AWS_LICENSEMANAGER_API LicenseAssetRule(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LICENSEMANAGER_API LicenseAssetRule& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const RuleStatement& GetRuleStatement() const { return m_ruleStatement; }
39 inline bool RuleStatementHasBeenSet() const { return m_ruleStatementHasBeenSet; }
40 template <typename RuleStatementT = RuleStatement>
41 void SetRuleStatement(RuleStatementT&& value) {
42 m_ruleStatementHasBeenSet = true;
43 m_ruleStatement = std::forward<RuleStatementT>(value);
44 }
45 template <typename RuleStatementT = RuleStatement>
46 LicenseAssetRule& WithRuleStatement(RuleStatementT&& value) {
47 SetRuleStatement(std::forward<RuleStatementT>(value));
48 return *this;
49 }
51 private:
52 RuleStatement m_ruleStatement;
53 bool m_ruleStatementHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace LicenseManager
58} // namespace Aws
const RuleStatement & GetRuleStatement() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseAssetRule & WithRuleStatement(RuleStatementT &&value)
AWS_LICENSEMANAGER_API LicenseAssetRule(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API LicenseAssetRule()=default
void SetRuleStatement(RuleStatementT &&value)
AWS_LICENSEMANAGER_API LicenseAssetRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue