AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceScope.h
1
6#pragma once
7#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
8#include <aws/network-security-manager/model/ResourceSet.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkSecurityManager {
20namespace Model {
21
30 public:
31 AWS_NETWORKSECURITYMANAGER_API ResourceScope() = default;
32 AWS_NETWORKSECURITYMANAGER_API ResourceScope(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API ResourceScope& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetIncludeAll() const { return m_includeAll; }
41 inline bool IncludeAllHasBeenSet() const { return m_includeAllHasBeenSet; }
42 inline void SetIncludeAll(bool value) {
43 m_includeAllHasBeenSet = true;
44 m_includeAll = value;
45 }
46 inline ResourceScope& WithIncludeAll(bool value) {
47 SetIncludeAll(value);
48 return *this;
49 }
51
53
57 inline const ResourceSet& GetInclude() const { return m_include; }
58 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
59 template <typename IncludeT = ResourceSet>
60 void SetInclude(IncludeT&& value) {
61 m_includeHasBeenSet = true;
62 m_include = std::forward<IncludeT>(value);
63 }
64 template <typename IncludeT = ResourceSet>
65 ResourceScope& WithInclude(IncludeT&& value) {
66 SetInclude(std::forward<IncludeT>(value));
67 return *this;
68 }
70
72
76 inline const ResourceSet& GetExclude() const { return m_exclude; }
77 inline bool ExcludeHasBeenSet() const { return m_excludeHasBeenSet; }
78 template <typename ExcludeT = ResourceSet>
79 void SetExclude(ExcludeT&& value) {
80 m_excludeHasBeenSet = true;
81 m_exclude = std::forward<ExcludeT>(value);
82 }
83 template <typename ExcludeT = ResourceSet>
84 ResourceScope& WithExclude(ExcludeT&& value) {
85 SetExclude(std::forward<ExcludeT>(value));
86 return *this;
87 }
89 private:
90 bool m_includeAll{false};
91
92 ResourceSet m_include;
93
94 ResourceSet m_exclude;
95 bool m_includeAllHasBeenSet = false;
96 bool m_includeHasBeenSet = false;
97 bool m_excludeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace NetworkSecurityManager
102} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API ResourceScope(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API ResourceScope()=default
ResourceScope & WithExclude(ExcludeT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API ResourceScope & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceScope & WithInclude(IncludeT &&value)
Aws::Utils::Json::JsonValue JsonValue