AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RuleStatement.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/model/InstanceRuleStatement.h>
9#include <aws/license-manager/model/LicenseConfigurationRuleStatement.h>
10#include <aws/license-manager/model/LicenseRuleStatement.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 RuleStatement() = default;
32 AWS_LICENSEMANAGER_API RuleStatement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API RuleStatement& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 return m_licenseConfigurationRuleStatement;
42 }
43 inline bool LicenseConfigurationRuleStatementHasBeenSet() const { return m_licenseConfigurationRuleStatementHasBeenSet; }
44 template <typename LicenseConfigurationRuleStatementT = LicenseConfigurationRuleStatement>
45 void SetLicenseConfigurationRuleStatement(LicenseConfigurationRuleStatementT&& value) {
46 m_licenseConfigurationRuleStatementHasBeenSet = true;
47 m_licenseConfigurationRuleStatement = std::forward<LicenseConfigurationRuleStatementT>(value);
48 }
49 template <typename LicenseConfigurationRuleStatementT = LicenseConfigurationRuleStatement>
50 RuleStatement& WithLicenseConfigurationRuleStatement(LicenseConfigurationRuleStatementT&& value) {
51 SetLicenseConfigurationRuleStatement(std::forward<LicenseConfigurationRuleStatementT>(value));
52 return *this;
53 }
55
57
60 inline const LicenseRuleStatement& GetLicenseRuleStatement() const { return m_licenseRuleStatement; }
61 inline bool LicenseRuleStatementHasBeenSet() const { return m_licenseRuleStatementHasBeenSet; }
62 template <typename LicenseRuleStatementT = LicenseRuleStatement>
63 void SetLicenseRuleStatement(LicenseRuleStatementT&& value) {
64 m_licenseRuleStatementHasBeenSet = true;
65 m_licenseRuleStatement = std::forward<LicenseRuleStatementT>(value);
66 }
67 template <typename LicenseRuleStatementT = LicenseRuleStatement>
68 RuleStatement& WithLicenseRuleStatement(LicenseRuleStatementT&& value) {
69 SetLicenseRuleStatement(std::forward<LicenseRuleStatementT>(value));
70 return *this;
71 }
73
75
78 inline const InstanceRuleStatement& GetInstanceRuleStatement() const { return m_instanceRuleStatement; }
79 inline bool InstanceRuleStatementHasBeenSet() const { return m_instanceRuleStatementHasBeenSet; }
80 template <typename InstanceRuleStatementT = InstanceRuleStatement>
81 void SetInstanceRuleStatement(InstanceRuleStatementT&& value) {
82 m_instanceRuleStatementHasBeenSet = true;
83 m_instanceRuleStatement = std::forward<InstanceRuleStatementT>(value);
84 }
85 template <typename InstanceRuleStatementT = InstanceRuleStatement>
86 RuleStatement& WithInstanceRuleStatement(InstanceRuleStatementT&& value) {
87 SetInstanceRuleStatement(std::forward<InstanceRuleStatementT>(value));
88 return *this;
89 }
91 private:
92 LicenseConfigurationRuleStatement m_licenseConfigurationRuleStatement;
93
94 LicenseRuleStatement m_licenseRuleStatement;
95
96 InstanceRuleStatement m_instanceRuleStatement;
97 bool m_licenseConfigurationRuleStatementHasBeenSet = false;
98 bool m_licenseRuleStatementHasBeenSet = false;
99 bool m_instanceRuleStatementHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace LicenseManager
104} // namespace Aws
const LicenseConfigurationRuleStatement & GetLicenseConfigurationRuleStatement() const
RuleStatement & WithLicenseRuleStatement(LicenseRuleStatementT &&value)
RuleStatement & WithInstanceRuleStatement(InstanceRuleStatementT &&value)
void SetInstanceRuleStatement(InstanceRuleStatementT &&value)
const LicenseRuleStatement & GetLicenseRuleStatement() const
AWS_LICENSEMANAGER_API RuleStatement()=default
AWS_LICENSEMANAGER_API RuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleStatement & WithLicenseConfigurationRuleStatement(LicenseConfigurationRuleStatementT &&value)
void SetLicenseConfigurationRuleStatement(LicenseConfigurationRuleStatementT &&value)
AWS_LICENSEMANAGER_API RuleStatement(Aws::Utils::Json::JsonView jsonValue)
void SetLicenseRuleStatement(LicenseRuleStatementT &&value)
const InstanceRuleStatement & GetInstanceRuleStatement() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue