AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/UsersAndGroups.h>
9#include <aws/qbusiness/model/RuleType.h>
10#include <aws/qbusiness/model/RuleConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
34 class Rule
35 {
36 public:
37 AWS_QBUSINESS_API Rule();
38 AWS_QBUSINESS_API Rule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const UsersAndGroups& GetIncludedUsersAndGroups() const{ return m_includedUsersAndGroups; }
48 inline bool IncludedUsersAndGroupsHasBeenSet() const { return m_includedUsersAndGroupsHasBeenSet; }
49 inline void SetIncludedUsersAndGroups(const UsersAndGroups& value) { m_includedUsersAndGroupsHasBeenSet = true; m_includedUsersAndGroups = value; }
50 inline void SetIncludedUsersAndGroups(UsersAndGroups&& value) { m_includedUsersAndGroupsHasBeenSet = true; m_includedUsersAndGroups = std::move(value); }
51 inline Rule& WithIncludedUsersAndGroups(const UsersAndGroups& value) { SetIncludedUsersAndGroups(value); return *this;}
52 inline Rule& WithIncludedUsersAndGroups(UsersAndGroups&& value) { SetIncludedUsersAndGroups(std::move(value)); return *this;}
54
56
59 inline const UsersAndGroups& GetExcludedUsersAndGroups() const{ return m_excludedUsersAndGroups; }
60 inline bool ExcludedUsersAndGroupsHasBeenSet() const { return m_excludedUsersAndGroupsHasBeenSet; }
61 inline void SetExcludedUsersAndGroups(const UsersAndGroups& value) { m_excludedUsersAndGroupsHasBeenSet = true; m_excludedUsersAndGroups = value; }
62 inline void SetExcludedUsersAndGroups(UsersAndGroups&& value) { m_excludedUsersAndGroupsHasBeenSet = true; m_excludedUsersAndGroups = std::move(value); }
63 inline Rule& WithExcludedUsersAndGroups(const UsersAndGroups& value) { SetExcludedUsersAndGroups(value); return *this;}
64 inline Rule& WithExcludedUsersAndGroups(UsersAndGroups&& value) { SetExcludedUsersAndGroups(std::move(value)); return *this;}
66
68
71 inline const RuleType& GetRuleType() const{ return m_ruleType; }
72 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
73 inline void SetRuleType(const RuleType& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
74 inline void SetRuleType(RuleType&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); }
75 inline Rule& WithRuleType(const RuleType& value) { SetRuleType(value); return *this;}
76 inline Rule& WithRuleType(RuleType&& value) { SetRuleType(std::move(value)); return *this;}
78
80
83 inline const RuleConfiguration& GetRuleConfiguration() const{ return m_ruleConfiguration; }
84 inline bool RuleConfigurationHasBeenSet() const { return m_ruleConfigurationHasBeenSet; }
85 inline void SetRuleConfiguration(const RuleConfiguration& value) { m_ruleConfigurationHasBeenSet = true; m_ruleConfiguration = value; }
86 inline void SetRuleConfiguration(RuleConfiguration&& value) { m_ruleConfigurationHasBeenSet = true; m_ruleConfiguration = std::move(value); }
87 inline Rule& WithRuleConfiguration(const RuleConfiguration& value) { SetRuleConfiguration(value); return *this;}
88 inline Rule& WithRuleConfiguration(RuleConfiguration&& value) { SetRuleConfiguration(std::move(value)); return *this;}
90 private:
91
92 UsersAndGroups m_includedUsersAndGroups;
93 bool m_includedUsersAndGroupsHasBeenSet = false;
94
95 UsersAndGroups m_excludedUsersAndGroups;
96 bool m_excludedUsersAndGroupsHasBeenSet = false;
97
98 RuleType m_ruleType;
99 bool m_ruleTypeHasBeenSet = false;
100
101 RuleConfiguration m_ruleConfiguration;
102 bool m_ruleConfigurationHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QBusiness
107} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API Rule()
AWS_QBUSINESS_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithIncludedUsersAndGroups(UsersAndGroups &&value)
Definition Rule.h:52
bool IncludedUsersAndGroupsHasBeenSet() const
Definition Rule.h:48
const UsersAndGroups & GetExcludedUsersAndGroups() const
Definition Rule.h:59
void SetRuleType(const RuleType &value)
Definition Rule.h:73
Rule & WithRuleType(RuleType &&value)
Definition Rule.h:76
const RuleType & GetRuleType() const
Definition Rule.h:71
void SetIncludedUsersAndGroups(const UsersAndGroups &value)
Definition Rule.h:49
void SetExcludedUsersAndGroups(const UsersAndGroups &value)
Definition Rule.h:61
Rule & WithIncludedUsersAndGroups(const UsersAndGroups &value)
Definition Rule.h:51
bool RuleTypeHasBeenSet() const
Definition Rule.h:72
AWS_QBUSINESS_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithExcludedUsersAndGroups(const UsersAndGroups &value)
Definition Rule.h:63
void SetExcludedUsersAndGroups(UsersAndGroups &&value)
Definition Rule.h:62
void SetRuleType(RuleType &&value)
Definition Rule.h:74
bool ExcludedUsersAndGroupsHasBeenSet() const
Definition Rule.h:60
Rule & WithRuleConfiguration(const RuleConfiguration &value)
Definition Rule.h:87
Rule & WithExcludedUsersAndGroups(UsersAndGroups &&value)
Definition Rule.h:64
void SetIncludedUsersAndGroups(UsersAndGroups &&value)
Definition Rule.h:50
void SetRuleConfiguration(const RuleConfiguration &value)
Definition Rule.h:85
bool RuleConfigurationHasBeenSet() const
Definition Rule.h:84
void SetRuleConfiguration(RuleConfiguration &&value)
Definition Rule.h:86
Rule & WithRuleConfiguration(RuleConfiguration &&value)
Definition Rule.h:88
const RuleConfiguration & GetRuleConfiguration() const
Definition Rule.h:83
Rule & WithRuleType(const RuleType &value)
Definition Rule.h:75
const UsersAndGroups & GetIncludedUsersAndGroups() const
Definition Rule.h:47
Aws::Utils::Json::JsonValue JsonValue