AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AdminScope.h
1
6#pragma once
7#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
8#include <aws/network-security-manager/model/AdminFirewallTypeScope.h>
9#include <aws/network-security-manager/model/AdminScopeFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkSecurityManager {
21namespace Model {
22
30 public:
31 AWS_NETWORKSECURITYMANAGER_API AdminScope() = default;
32 AWS_NETWORKSECURITYMANAGER_API AdminScope(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API AdminScope& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const AdminScopeFilter& GetScopeFilter() const { return m_scopeFilter; }
42 inline bool ScopeFilterHasBeenSet() const { return m_scopeFilterHasBeenSet; }
43 template <typename ScopeFilterT = AdminScopeFilter>
44 void SetScopeFilter(ScopeFilterT&& value) {
45 m_scopeFilterHasBeenSet = true;
46 m_scopeFilter = std::forward<ScopeFilterT>(value);
47 }
48 template <typename ScopeFilterT = AdminScopeFilter>
49 AdminScope& WithScopeFilter(ScopeFilterT&& value) {
50 SetScopeFilter(std::forward<ScopeFilterT>(value));
51 return *this;
52 }
54
56
59 inline const AdminFirewallTypeScope& GetFirewallTypeScope() const { return m_firewallTypeScope; }
60 inline bool FirewallTypeScopeHasBeenSet() const { return m_firewallTypeScopeHasBeenSet; }
61 template <typename FirewallTypeScopeT = AdminFirewallTypeScope>
62 void SetFirewallTypeScope(FirewallTypeScopeT&& value) {
63 m_firewallTypeScopeHasBeenSet = true;
64 m_firewallTypeScope = std::forward<FirewallTypeScopeT>(value);
65 }
66 template <typename FirewallTypeScopeT = AdminFirewallTypeScope>
67 AdminScope& WithFirewallTypeScope(FirewallTypeScopeT&& value) {
68 SetFirewallTypeScope(std::forward<FirewallTypeScopeT>(value));
69 return *this;
70 }
72 private:
73 AdminScopeFilter m_scopeFilter;
74
75 AdminFirewallTypeScope m_firewallTypeScope;
76 bool m_scopeFilterHasBeenSet = false;
77 bool m_firewallTypeScopeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace NetworkSecurityManager
82} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API AdminScope(Aws::Utils::Json::JsonView jsonValue)
void SetScopeFilter(ScopeFilterT &&value)
Definition AdminScope.h:44
const AdminScopeFilter & GetScopeFilter() const
Definition AdminScope.h:41
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFirewallTypeScope(FirewallTypeScopeT &&value)
Definition AdminScope.h:62
const AdminFirewallTypeScope & GetFirewallTypeScope() const
Definition AdminScope.h:59
AWS_NETWORKSECURITYMANAGER_API AdminScope()=default
AdminScope & WithFirewallTypeScope(FirewallTypeScopeT &&value)
Definition AdminScope.h:67
AdminScope & WithScopeFilter(ScopeFilterT &&value)
Definition AdminScope.h:49
AWS_NETWORKSECURITYMANAGER_API AdminScope & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue