AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InstanceRuleStatement.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/model/AndRuleStatement.h>
9#include <aws/license-manager/model/MatchingRuleStatement.h>
10#include <aws/license-manager/model/OrRuleStatement.h>
11#include <aws/license-manager/model/ScriptRuleStatement.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LicenseManager {
23namespace Model {
24
31 public:
32 AWS_LICENSEMANAGER_API InstanceRuleStatement() = default;
33 AWS_LICENSEMANAGER_API InstanceRuleStatement(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const AndRuleStatement& GetAndRuleStatement() const { return m_andRuleStatement; }
42 inline bool AndRuleStatementHasBeenSet() const { return m_andRuleStatementHasBeenSet; }
43 template <typename AndRuleStatementT = AndRuleStatement>
44 void SetAndRuleStatement(AndRuleStatementT&& value) {
45 m_andRuleStatementHasBeenSet = true;
46 m_andRuleStatement = std::forward<AndRuleStatementT>(value);
47 }
48 template <typename AndRuleStatementT = AndRuleStatement>
49 InstanceRuleStatement& WithAndRuleStatement(AndRuleStatementT&& value) {
50 SetAndRuleStatement(std::forward<AndRuleStatementT>(value));
51 return *this;
52 }
54
56
59 inline const OrRuleStatement& GetOrRuleStatement() const { return m_orRuleStatement; }
60 inline bool OrRuleStatementHasBeenSet() const { return m_orRuleStatementHasBeenSet; }
61 template <typename OrRuleStatementT = OrRuleStatement>
62 void SetOrRuleStatement(OrRuleStatementT&& value) {
63 m_orRuleStatementHasBeenSet = true;
64 m_orRuleStatement = std::forward<OrRuleStatementT>(value);
65 }
66 template <typename OrRuleStatementT = OrRuleStatement>
67 InstanceRuleStatement& WithOrRuleStatement(OrRuleStatementT&& value) {
68 SetOrRuleStatement(std::forward<OrRuleStatementT>(value));
69 return *this;
70 }
72
74
77 inline const MatchingRuleStatement& GetMatchingRuleStatement() const { return m_matchingRuleStatement; }
78 inline bool MatchingRuleStatementHasBeenSet() const { return m_matchingRuleStatementHasBeenSet; }
79 template <typename MatchingRuleStatementT = MatchingRuleStatement>
80 void SetMatchingRuleStatement(MatchingRuleStatementT&& value) {
81 m_matchingRuleStatementHasBeenSet = true;
82 m_matchingRuleStatement = std::forward<MatchingRuleStatementT>(value);
83 }
84 template <typename MatchingRuleStatementT = MatchingRuleStatement>
85 InstanceRuleStatement& WithMatchingRuleStatement(MatchingRuleStatementT&& value) {
86 SetMatchingRuleStatement(std::forward<MatchingRuleStatementT>(value));
87 return *this;
88 }
90
92
95 inline const ScriptRuleStatement& GetScriptRuleStatement() const { return m_scriptRuleStatement; }
96 inline bool ScriptRuleStatementHasBeenSet() const { return m_scriptRuleStatementHasBeenSet; }
97 template <typename ScriptRuleStatementT = ScriptRuleStatement>
98 void SetScriptRuleStatement(ScriptRuleStatementT&& value) {
99 m_scriptRuleStatementHasBeenSet = true;
100 m_scriptRuleStatement = std::forward<ScriptRuleStatementT>(value);
101 }
102 template <typename ScriptRuleStatementT = ScriptRuleStatement>
103 InstanceRuleStatement& WithScriptRuleStatement(ScriptRuleStatementT&& value) {
104 SetScriptRuleStatement(std::forward<ScriptRuleStatementT>(value));
105 return *this;
106 }
108 private:
109 AndRuleStatement m_andRuleStatement;
110
111 OrRuleStatement m_orRuleStatement;
112
113 MatchingRuleStatement m_matchingRuleStatement;
114
115 ScriptRuleStatement m_scriptRuleStatement;
116 bool m_andRuleStatementHasBeenSet = false;
117 bool m_orRuleStatementHasBeenSet = false;
118 bool m_matchingRuleStatementHasBeenSet = false;
119 bool m_scriptRuleStatementHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace LicenseManager
124} // namespace Aws
InstanceRuleStatement & WithAndRuleStatement(AndRuleStatementT &&value)
const MatchingRuleStatement & GetMatchingRuleStatement() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceRuleStatement & WithScriptRuleStatement(ScriptRuleStatementT &&value)
const ScriptRuleStatement & GetScriptRuleStatement() const
void SetMatchingRuleStatement(MatchingRuleStatementT &&value)
AWS_LICENSEMANAGER_API InstanceRuleStatement()=default
InstanceRuleStatement & WithMatchingRuleStatement(MatchingRuleStatementT &&value)
AWS_LICENSEMANAGER_API InstanceRuleStatement(Aws::Utils::Json::JsonView jsonValue)
void SetScriptRuleStatement(ScriptRuleStatementT &&value)
InstanceRuleStatement & WithOrRuleStatement(OrRuleStatementT &&value)
AWS_LICENSEMANAGER_API InstanceRuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue