AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OrRuleStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/license-manager/LicenseManager_EXPORTS.h>
9#include <aws/license-manager/model/MatchingRuleStatement.h>
10#include <aws/license-manager/model/ScriptRuleStatement.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 OrRuleStatement() = default;
32 AWS_LICENSEMANAGER_API OrRuleStatement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API OrRuleStatement& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<MatchingRuleStatement>& GetMatchingRuleStatements() const { return m_matchingRuleStatements; }
41 inline bool MatchingRuleStatementsHasBeenSet() const { return m_matchingRuleStatementsHasBeenSet; }
42 template <typename MatchingRuleStatementsT = Aws::Vector<MatchingRuleStatement>>
43 void SetMatchingRuleStatements(MatchingRuleStatementsT&& value) {
44 m_matchingRuleStatementsHasBeenSet = true;
45 m_matchingRuleStatements = std::forward<MatchingRuleStatementsT>(value);
46 }
47 template <typename MatchingRuleStatementsT = Aws::Vector<MatchingRuleStatement>>
48 OrRuleStatement& WithMatchingRuleStatements(MatchingRuleStatementsT&& value) {
49 SetMatchingRuleStatements(std::forward<MatchingRuleStatementsT>(value));
50 return *this;
51 }
52 template <typename MatchingRuleStatementsT = MatchingRuleStatement>
53 OrRuleStatement& AddMatchingRuleStatements(MatchingRuleStatementsT&& value) {
54 m_matchingRuleStatementsHasBeenSet = true;
55 m_matchingRuleStatements.emplace_back(std::forward<MatchingRuleStatementsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<ScriptRuleStatement>& GetScriptRuleStatements() const { return m_scriptRuleStatements; }
65 inline bool ScriptRuleStatementsHasBeenSet() const { return m_scriptRuleStatementsHasBeenSet; }
66 template <typename ScriptRuleStatementsT = Aws::Vector<ScriptRuleStatement>>
67 void SetScriptRuleStatements(ScriptRuleStatementsT&& value) {
68 m_scriptRuleStatementsHasBeenSet = true;
69 m_scriptRuleStatements = std::forward<ScriptRuleStatementsT>(value);
70 }
71 template <typename ScriptRuleStatementsT = Aws::Vector<ScriptRuleStatement>>
72 OrRuleStatement& WithScriptRuleStatements(ScriptRuleStatementsT&& value) {
73 SetScriptRuleStatements(std::forward<ScriptRuleStatementsT>(value));
74 return *this;
75 }
76 template <typename ScriptRuleStatementsT = ScriptRuleStatement>
77 OrRuleStatement& AddScriptRuleStatements(ScriptRuleStatementsT&& value) {
78 m_scriptRuleStatementsHasBeenSet = true;
79 m_scriptRuleStatements.emplace_back(std::forward<ScriptRuleStatementsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<MatchingRuleStatement> m_matchingRuleStatements;
85
86 Aws::Vector<ScriptRuleStatement> m_scriptRuleStatements;
87 bool m_matchingRuleStatementsHasBeenSet = false;
88 bool m_scriptRuleStatementsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace LicenseManager
93} // namespace Aws
AWS_LICENSEMANAGER_API OrRuleStatement()=default
AWS_LICENSEMANAGER_API OrRuleStatement(Aws::Utils::Json::JsonView jsonValue)
OrRuleStatement & WithMatchingRuleStatements(MatchingRuleStatementsT &&value)
OrRuleStatement & WithScriptRuleStatements(ScriptRuleStatementsT &&value)
const Aws::Vector< MatchingRuleStatement > & GetMatchingRuleStatements() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
OrRuleStatement & AddScriptRuleStatements(ScriptRuleStatementsT &&value)
AWS_LICENSEMANAGER_API OrRuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScriptRuleStatements(ScriptRuleStatementsT &&value)
OrRuleStatement & AddMatchingRuleStatements(MatchingRuleStatementsT &&value)
void SetMatchingRuleStatements(MatchingRuleStatementsT &&value)
const Aws::Vector< ScriptRuleStatement > & GetScriptRuleStatements() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue