AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
DeploymentCoverageEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/PolicyFirewallType.h>
11#include <aws/network-security-manager/model/ScopeResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkSecurityManager {
23namespace Model {
24
34 public:
35 AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry() = default;
36 AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline PolicyFirewallType GetFirewallType() const { return m_firewallType; }
45 inline bool FirewallTypeHasBeenSet() const { return m_firewallTypeHasBeenSet; }
47 m_firewallTypeHasBeenSet = true;
48 m_firewallType = value;
49 }
51 SetFirewallType(value);
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetPolicyArns() const { return m_policyArns; }
62 inline bool PolicyArnsHasBeenSet() const { return m_policyArnsHasBeenSet; }
63 template <typename PolicyArnsT = Aws::Vector<Aws::String>>
64 void SetPolicyArns(PolicyArnsT&& value) {
65 m_policyArnsHasBeenSet = true;
66 m_policyArns = std::forward<PolicyArnsT>(value);
67 }
68 template <typename PolicyArnsT = Aws::Vector<Aws::String>>
70 SetPolicyArns(std::forward<PolicyArnsT>(value));
71 return *this;
72 }
73 template <typename PolicyArnsT = Aws::String>
74 DeploymentCoverageEntry& AddPolicyArns(PolicyArnsT&& value) {
75 m_policyArnsHasBeenSet = true;
76 m_policyArns.emplace_back(std::forward<PolicyArnsT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<ScopeResourceType>& GetInScopeResourceTypes() const { return m_inScopeResourceTypes; }
88 inline bool InScopeResourceTypesHasBeenSet() const { return m_inScopeResourceTypesHasBeenSet; }
89 template <typename InScopeResourceTypesT = Aws::Vector<ScopeResourceType>>
90 void SetInScopeResourceTypes(InScopeResourceTypesT&& value) {
91 m_inScopeResourceTypesHasBeenSet = true;
92 m_inScopeResourceTypes = std::forward<InScopeResourceTypesT>(value);
93 }
94 template <typename InScopeResourceTypesT = Aws::Vector<ScopeResourceType>>
95 DeploymentCoverageEntry& WithInScopeResourceTypes(InScopeResourceTypesT&& value) {
96 SetInScopeResourceTypes(std::forward<InScopeResourceTypesT>(value));
97 return *this;
98 }
100 m_inScopeResourceTypesHasBeenSet = true;
101 m_inScopeResourceTypes.push_back(value);
102 return *this;
103 }
105 private:
107
108 Aws::Vector<Aws::String> m_policyArns;
109
110 Aws::Vector<ScopeResourceType> m_inScopeResourceTypes;
111 bool m_firewallTypeHasBeenSet = false;
112 bool m_policyArnsHasBeenSet = false;
113 bool m_inScopeResourceTypesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace NetworkSecurityManager
118} // namespace Aws
DeploymentCoverageEntry & WithFirewallType(PolicyFirewallType value)
AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry()=default
void SetPolicyArns(PolicyArnsT &&value)
PolicyFirewallType GetFirewallType() const
const Aws::Vector< ScopeResourceType > & GetInScopeResourceTypes() const
AWS_NETWORKSECURITYMANAGER_API DeploymentCoverageEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyArnsHasBeenSet() const
DeploymentCoverageEntry & WithPolicyArns(PolicyArnsT &&value)
void SetFirewallType(PolicyFirewallType value)
DeploymentCoverageEntry & AddPolicyArns(PolicyArnsT &&value)
DeploymentCoverageEntry & AddInScopeResourceTypes(ScopeResourceType value)
void SetInScopeResourceTypes(InScopeResourceTypesT &&value)
bool InScopeResourceTypesHasBeenSet() const
bool FirewallTypeHasBeenSet() const
const Aws::Vector< Aws::String > & GetPolicyArns() const
DeploymentCoverageEntry & WithInScopeResourceTypes(InScopeResourceTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue