AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LicenseConfigurationRuleStatement.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
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 LicenseConfigurationRuleStatement() = default;
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AndRuleStatement& GetAndRuleStatement() const { return m_andRuleStatement; }
41 inline bool AndRuleStatementHasBeenSet() const { return m_andRuleStatementHasBeenSet; }
42 template <typename AndRuleStatementT = AndRuleStatement>
43 void SetAndRuleStatement(AndRuleStatementT&& value) {
44 m_andRuleStatementHasBeenSet = true;
45 m_andRuleStatement = std::forward<AndRuleStatementT>(value);
46 }
47 template <typename AndRuleStatementT = AndRuleStatement>
49 SetAndRuleStatement(std::forward<AndRuleStatementT>(value));
50 return *this;
51 }
53
55
58 inline const OrRuleStatement& GetOrRuleStatement() const { return m_orRuleStatement; }
59 inline bool OrRuleStatementHasBeenSet() const { return m_orRuleStatementHasBeenSet; }
60 template <typename OrRuleStatementT = OrRuleStatement>
61 void SetOrRuleStatement(OrRuleStatementT&& value) {
62 m_orRuleStatementHasBeenSet = true;
63 m_orRuleStatement = std::forward<OrRuleStatementT>(value);
64 }
65 template <typename OrRuleStatementT = OrRuleStatement>
67 SetOrRuleStatement(std::forward<OrRuleStatementT>(value));
68 return *this;
69 }
71
73
76 inline const MatchingRuleStatement& GetMatchingRuleStatement() const { return m_matchingRuleStatement; }
77 inline bool MatchingRuleStatementHasBeenSet() const { return m_matchingRuleStatementHasBeenSet; }
78 template <typename MatchingRuleStatementT = MatchingRuleStatement>
79 void SetMatchingRuleStatement(MatchingRuleStatementT&& value) {
80 m_matchingRuleStatementHasBeenSet = true;
81 m_matchingRuleStatement = std::forward<MatchingRuleStatementT>(value);
82 }
83 template <typename MatchingRuleStatementT = MatchingRuleStatement>
85 SetMatchingRuleStatement(std::forward<MatchingRuleStatementT>(value));
86 return *this;
87 }
89 private:
90 AndRuleStatement m_andRuleStatement;
91
92 OrRuleStatement m_orRuleStatement;
93
94 MatchingRuleStatement m_matchingRuleStatement;
95 bool m_andRuleStatementHasBeenSet = false;
96 bool m_orRuleStatementHasBeenSet = false;
97 bool m_matchingRuleStatementHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace LicenseManager
102} // namespace Aws
AWS_LICENSEMANAGER_API LicenseConfigurationRuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfigurationRuleStatement & WithMatchingRuleStatement(MatchingRuleStatementT &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationRuleStatement()=default
LicenseConfigurationRuleStatement & WithAndRuleStatement(AndRuleStatementT &&value)
AWS_LICENSEMANAGER_API LicenseConfigurationRuleStatement(Aws::Utils::Json::JsonView jsonValue)
LicenseConfigurationRuleStatement & WithOrRuleStatement(OrRuleStatementT &&value)
Aws::Utils::Json::JsonValue JsonValue