AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PolicySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9#include <aws/fms/model/CustomerPolicyStatus.h>
10#include <aws/fms/model/SecurityServiceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS {
22namespace Model {
23
30 public:
31 AWS_FMS_API PolicySummary() = default;
35
37
40 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
41 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
42 template <typename PolicyArnT = Aws::String>
43 void SetPolicyArn(PolicyArnT&& value) {
44 m_policyArnHasBeenSet = true;
45 m_policyArn = std::forward<PolicyArnT>(value);
46 }
47 template <typename PolicyArnT = Aws::String>
48 PolicySummary& WithPolicyArn(PolicyArnT&& value) {
49 SetPolicyArn(std::forward<PolicyArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPolicyId() const { return m_policyId; }
59 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
60 template <typename PolicyIdT = Aws::String>
61 void SetPolicyId(PolicyIdT&& value) {
62 m_policyIdHasBeenSet = true;
63 m_policyId = std::forward<PolicyIdT>(value);
64 }
65 template <typename PolicyIdT = Aws::String>
66 PolicySummary& WithPolicyId(PolicyIdT&& value) {
67 SetPolicyId(std::forward<PolicyIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPolicyName() const { return m_policyName; }
77 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
78 template <typename PolicyNameT = Aws::String>
79 void SetPolicyName(PolicyNameT&& value) {
80 m_policyNameHasBeenSet = true;
81 m_policyName = std::forward<PolicyNameT>(value);
82 }
83 template <typename PolicyNameT = Aws::String>
84 PolicySummary& WithPolicyName(PolicyNameT&& value) {
85 SetPolicyName(std::forward<PolicyNameT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::String& GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
99 template <typename ResourceTypeT = Aws::String>
100 void SetResourceType(ResourceTypeT&& value) {
101 m_resourceTypeHasBeenSet = true;
102 m_resourceType = std::forward<ResourceTypeT>(value);
103 }
104 template <typename ResourceTypeT = Aws::String>
105 PolicySummary& WithResourceType(ResourceTypeT&& value) {
106 SetResourceType(std::forward<ResourceTypeT>(value));
107 return *this;
108 }
110
112
117 inline SecurityServiceType GetSecurityServiceType() const { return m_securityServiceType; }
118 inline bool SecurityServiceTypeHasBeenSet() const { return m_securityServiceTypeHasBeenSet; }
120 m_securityServiceTypeHasBeenSet = true;
121 m_securityServiceType = value;
122 }
125 return *this;
126 }
128
130
133 inline bool GetRemediationEnabled() const { return m_remediationEnabled; }
134 inline bool RemediationEnabledHasBeenSet() const { return m_remediationEnabledHasBeenSet; }
135 inline void SetRemediationEnabled(bool value) {
136 m_remediationEnabledHasBeenSet = true;
137 m_remediationEnabled = value;
138 }
141 return *this;
142 }
144
146
156 inline bool GetDeleteUnusedFMManagedResources() const { return m_deleteUnusedFMManagedResources; }
157 inline bool DeleteUnusedFMManagedResourcesHasBeenSet() const { return m_deleteUnusedFMManagedResourcesHasBeenSet; }
158 inline void SetDeleteUnusedFMManagedResources(bool value) {
159 m_deleteUnusedFMManagedResourcesHasBeenSet = true;
160 m_deleteUnusedFMManagedResources = value;
161 }
164 return *this;
165 }
167
169
177 inline CustomerPolicyStatus GetPolicyStatus() const { return m_policyStatus; }
178 inline bool PolicyStatusHasBeenSet() const { return m_policyStatusHasBeenSet; }
180 m_policyStatusHasBeenSet = true;
181 m_policyStatus = value;
182 }
184 SetPolicyStatus(value);
185 return *this;
186 }
188 private:
189 Aws::String m_policyArn;
190
191 Aws::String m_policyId;
192
193 Aws::String m_policyName;
194
195 Aws::String m_resourceType;
196
198
199 bool m_remediationEnabled{false};
200
201 bool m_deleteUnusedFMManagedResources{false};
202
204 bool m_policyArnHasBeenSet = false;
205 bool m_policyIdHasBeenSet = false;
206 bool m_policyNameHasBeenSet = false;
207 bool m_resourceTypeHasBeenSet = false;
208 bool m_securityServiceTypeHasBeenSet = false;
209 bool m_remediationEnabledHasBeenSet = false;
210 bool m_deleteUnusedFMManagedResourcesHasBeenSet = false;
211 bool m_policyStatusHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace FMS
216} // namespace Aws
void SetSecurityServiceType(SecurityServiceType value)
PolicySummary & WithPolicyId(PolicyIdT &&value)
const Aws::String & GetResourceType() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyName(PolicyNameT &&value)
PolicySummary & WithPolicyArn(PolicyArnT &&value)
void SetRemediationEnabled(bool value)
CustomerPolicyStatus GetPolicyStatus() const
const Aws::String & GetPolicyName() const
SecurityServiceType GetSecurityServiceType() const
const Aws::String & GetPolicyArn() const
PolicySummary & WithPolicyName(PolicyNameT &&value)
bool GetDeleteUnusedFMManagedResources() const
PolicySummary & WithPolicyStatus(CustomerPolicyStatus value)
bool DeleteUnusedFMManagedResourcesHasBeenSet() const
void SetPolicyId(PolicyIdT &&value)
PolicySummary & WithRemediationEnabled(bool value)
PolicySummary & WithSecurityServiceType(SecurityServiceType value)
void SetDeleteUnusedFMManagedResources(bool value)
AWS_FMS_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicySummary & WithResourceType(ResourceTypeT &&value)
PolicySummary & WithDeleteUnusedFMManagedResources(bool value)
void SetPolicyArn(PolicyArnT &&value)
void SetPolicyStatus(CustomerPolicyStatus value)
const Aws::String & GetPolicyId() const
void SetResourceType(ResourceTypeT &&value)
AWS_FMS_API PolicySummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue