AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
47 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
48 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
49 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
50 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
51 inline PolicySummary& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
52 inline PolicySummary& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
53 inline PolicySummary& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
55
57
60 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
61 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
62 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
63 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
64 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
65 inline PolicySummary& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
66 inline PolicySummary& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
67 inline PolicySummary& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
69
71
74 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
75 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
76 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
77 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
78 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
79 inline PolicySummary& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
80 inline PolicySummary& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
81 inline PolicySummary& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
83
85
91 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
92 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
93 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
94 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
95 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
96 inline PolicySummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
97 inline PolicySummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
98 inline PolicySummary& WithResourceType(const char* value) { SetResourceType(value); return *this;}
100
102
107 inline const SecurityServiceType& GetSecurityServiceType() const{ return m_securityServiceType; }
108 inline bool SecurityServiceTypeHasBeenSet() const { return m_securityServiceTypeHasBeenSet; }
109 inline void SetSecurityServiceType(const SecurityServiceType& value) { m_securityServiceTypeHasBeenSet = true; m_securityServiceType = value; }
110 inline void SetSecurityServiceType(SecurityServiceType&& value) { m_securityServiceTypeHasBeenSet = true; m_securityServiceType = std::move(value); }
112 inline PolicySummary& WithSecurityServiceType(SecurityServiceType&& value) { SetSecurityServiceType(std::move(value)); return *this;}
114
116
119 inline bool GetRemediationEnabled() const{ return m_remediationEnabled; }
120 inline bool RemediationEnabledHasBeenSet() const { return m_remediationEnabledHasBeenSet; }
121 inline void SetRemediationEnabled(bool value) { m_remediationEnabledHasBeenSet = true; m_remediationEnabled = value; }
122 inline PolicySummary& WithRemediationEnabled(bool value) { SetRemediationEnabled(value); return *this;}
124
126
136 inline bool GetDeleteUnusedFMManagedResources() const{ return m_deleteUnusedFMManagedResources; }
137 inline bool DeleteUnusedFMManagedResourcesHasBeenSet() const { return m_deleteUnusedFMManagedResourcesHasBeenSet; }
138 inline void SetDeleteUnusedFMManagedResources(bool value) { m_deleteUnusedFMManagedResourcesHasBeenSet = true; m_deleteUnusedFMManagedResources = value; }
141
143
151 inline const CustomerPolicyStatus& GetPolicyStatus() const{ return m_policyStatus; }
152 inline bool PolicyStatusHasBeenSet() const { return m_policyStatusHasBeenSet; }
153 inline void SetPolicyStatus(const CustomerPolicyStatus& value) { m_policyStatusHasBeenSet = true; m_policyStatus = value; }
154 inline void SetPolicyStatus(CustomerPolicyStatus&& value) { m_policyStatusHasBeenSet = true; m_policyStatus = std::move(value); }
155 inline PolicySummary& WithPolicyStatus(const CustomerPolicyStatus& value) { SetPolicyStatus(value); return *this;}
156 inline PolicySummary& WithPolicyStatus(CustomerPolicyStatus&& value) { SetPolicyStatus(std::move(value)); return *this;}
158 private:
159
160 Aws::String m_policyArn;
161 bool m_policyArnHasBeenSet = false;
162
163 Aws::String m_policyId;
164 bool m_policyIdHasBeenSet = false;
165
166 Aws::String m_policyName;
167 bool m_policyNameHasBeenSet = false;
168
169 Aws::String m_resourceType;
170 bool m_resourceTypeHasBeenSet = false;
171
172 SecurityServiceType m_securityServiceType;
173 bool m_securityServiceTypeHasBeenSet = false;
174
175 bool m_remediationEnabled;
176 bool m_remediationEnabledHasBeenSet = false;
177
178 bool m_deleteUnusedFMManagedResources;
179 bool m_deleteUnusedFMManagedResourcesHasBeenSet = false;
180
181 CustomerPolicyStatus m_policyStatus;
182 bool m_policyStatusHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace FMS
187} // namespace Aws
PolicySummary & WithResourceType(Aws::String &&value)
const Aws::String & GetResourceType() const
void SetPolicyArn(const char *value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyId(const Aws::String &value)
AWS_FMS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityServiceType(SecurityServiceType &&value)
PolicySummary & WithPolicyName(const Aws::String &value)
const CustomerPolicyStatus & GetPolicyStatus() const
PolicySummary & WithSecurityServiceType(const SecurityServiceType &value)
PolicySummary & WithResourceType(const Aws::String &value)
void SetPolicyArn(Aws::String &&value)
void SetPolicyStatus(CustomerPolicyStatus &&value)
void SetRemediationEnabled(bool value)
PolicySummary & WithResourceType(const char *value)
PolicySummary & WithPolicyArn(const char *value)
PolicySummary & WithPolicyName(Aws::String &&value)
void SetResourceType(const Aws::String &value)
const Aws::String & GetPolicyName() const
void SetPolicyName(Aws::String &&value)
PolicySummary & WithPolicyId(const char *value)
const Aws::String & GetPolicyArn() const
void SetResourceType(const char *value)
void SetPolicyArn(const Aws::String &value)
PolicySummary & WithPolicyId(const Aws::String &value)
PolicySummary & WithPolicyArn(Aws::String &&value)
bool GetDeleteUnusedFMManagedResources() const
PolicySummary & WithSecurityServiceType(SecurityServiceType &&value)
const SecurityServiceType & GetSecurityServiceType() const
bool DeleteUnusedFMManagedResourcesHasBeenSet() const
void SetPolicyId(const char *value)
void SetPolicyName(const Aws::String &value)
void SetResourceType(Aws::String &&value)
PolicySummary & WithRemediationEnabled(bool value)
PolicySummary & WithPolicyStatus(const CustomerPolicyStatus &value)
PolicySummary & WithPolicyId(Aws::String &&value)
PolicySummary & WithPolicyName(const char *value)
PolicySummary & WithPolicyArn(const Aws::String &value)
void SetDeleteUnusedFMManagedResources(bool value)
AWS_FMS_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyId(Aws::String &&value)
PolicySummary & WithPolicyStatus(CustomerPolicyStatus &&value)
void SetPolicyStatus(const CustomerPolicyStatus &value)
PolicySummary & WithDeleteUnusedFMManagedResources(bool value)
const Aws::String & GetPolicyId() const
void SetPolicyName(const char *value)
void SetSecurityServiceType(const SecurityServiceType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue