AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicySummary.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/model/SecurityServiceType.h>
10#include <aws/fms/model/CustomerPolicyStatus.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 FMS
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_FMS_API PolicySummary() = default;
40
41
43
46 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
47 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
48 template<typename PolicyArnT = Aws::String>
49 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
50 template<typename PolicyArnT = Aws::String>
51 PolicySummary& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
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) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
62 template<typename PolicyIdT = Aws::String>
63 PolicySummary& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPolicyName() const { return m_policyName; }
71 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
72 template<typename PolicyNameT = Aws::String>
73 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
74 template<typename PolicyNameT = Aws::String>
75 PolicySummary& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
77
79
85 inline const Aws::String& GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 template<typename ResourceTypeT = Aws::String>
88 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
89 template<typename ResourceTypeT = Aws::String>
90 PolicySummary& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
92
94
99 inline SecurityServiceType GetSecurityServiceType() const { return m_securityServiceType; }
100 inline bool SecurityServiceTypeHasBeenSet() const { return m_securityServiceTypeHasBeenSet; }
101 inline void SetSecurityServiceType(SecurityServiceType value) { m_securityServiceTypeHasBeenSet = true; m_securityServiceType = value; }
104
106
109 inline bool GetRemediationEnabled() const { return m_remediationEnabled; }
110 inline bool RemediationEnabledHasBeenSet() const { return m_remediationEnabledHasBeenSet; }
111 inline void SetRemediationEnabled(bool value) { m_remediationEnabledHasBeenSet = true; m_remediationEnabled = value; }
112 inline PolicySummary& WithRemediationEnabled(bool value) { SetRemediationEnabled(value); return *this;}
114
116
126 inline bool GetDeleteUnusedFMManagedResources() const { return m_deleteUnusedFMManagedResources; }
127 inline bool DeleteUnusedFMManagedResourcesHasBeenSet() const { return m_deleteUnusedFMManagedResourcesHasBeenSet; }
128 inline void SetDeleteUnusedFMManagedResources(bool value) { m_deleteUnusedFMManagedResourcesHasBeenSet = true; m_deleteUnusedFMManagedResources = value; }
131
133
141 inline CustomerPolicyStatus GetPolicyStatus() const { return m_policyStatus; }
142 inline bool PolicyStatusHasBeenSet() const { return m_policyStatusHasBeenSet; }
143 inline void SetPolicyStatus(CustomerPolicyStatus value) { m_policyStatusHasBeenSet = true; m_policyStatus = value; }
146 private:
147
148 Aws::String m_policyArn;
149 bool m_policyArnHasBeenSet = false;
150
151 Aws::String m_policyId;
152 bool m_policyIdHasBeenSet = false;
153
154 Aws::String m_policyName;
155 bool m_policyNameHasBeenSet = false;
156
157 Aws::String m_resourceType;
158 bool m_resourceTypeHasBeenSet = false;
159
161 bool m_securityServiceTypeHasBeenSet = false;
162
163 bool m_remediationEnabled{false};
164 bool m_remediationEnabledHasBeenSet = false;
165
166 bool m_deleteUnusedFMManagedResources{false};
167 bool m_deleteUnusedFMManagedResourcesHasBeenSet = false;
168
170 bool m_policyStatusHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace FMS
175} // 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