7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/AvailabilitySlo.h>
11#include <aws/resiliencehubv2/model/DataRecoveryTargets.h>
12#include <aws/resiliencehubv2/model/MultiAzTargets.h>
13#include <aws/resiliencehubv2/model/MultiRegionTargets.h>
24namespace resiliencehubv2 {
44 template <
typename PolicyArnT = Aws::String>
46 m_policyArnHasBeenSet =
true;
47 m_policyArn = std::forward<PolicyArnT>(value);
49 template <
typename PolicyArnT = Aws::String>
60 template <
typename NameT = Aws::String>
62 m_nameHasBeenSet =
true;
63 m_name = std::forward<NameT>(value);
65 template <
typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
78 template <
typename AvailabilitySloT = AvailabilitySlo>
80 m_availabilitySloHasBeenSet =
true;
81 m_availabilitySlo = std::forward<AvailabilitySloT>(value);
83 template <
typename AvailabilitySloT = AvailabilitySlo>
96 template <
typename MultiAzT = MultiAzTargets>
98 m_multiAzHasBeenSet =
true;
99 m_multiAz = std::forward<MultiAzT>(value);
101 template <
typename MultiAzT = MultiAzTargets>
114 template <
typename MultiRegionT = MultiRegionTargets>
116 m_multiRegionHasBeenSet =
true;
117 m_multiRegion = std::forward<MultiRegionT>(value);
119 template <
typename MultiRegionT = MultiRegionTargets>
132 template <
typename DataRecoveryT = DataRecoveryTargets>
134 m_dataRecoveryHasBeenSet =
true;
135 m_dataRecovery = std::forward<DataRecoveryT>(value);
137 template <
typename DataRecoveryT = DataRecoveryTargets>
151 m_sharingEnabledHasBeenSet =
true;
152 m_sharingEnabled = value;
166 template <
typename OrganizationIdT = Aws::String>
168 m_organizationIdHasBeenSet =
true;
169 m_organizationId = std::forward<OrganizationIdT>(value);
171 template <
typename OrganizationIdT = Aws::String>
185 m_associatedServiceCountHasBeenSet =
true;
186 m_associatedServiceCount = value;
200 template <
typename CreatedAtT = Aws::Utils::DateTime>
202 m_createdAtHasBeenSet =
true;
203 m_createdAt = std::forward<CreatedAtT>(value);
205 template <
typename CreatedAtT = Aws::Utils::DateTime>
218 template <
typename UpdatedAtT = Aws::Utils::DateTime>
220 m_updatedAtHasBeenSet =
true;
221 m_updatedAt = std::forward<UpdatedAtT>(value);
223 template <
typename UpdatedAtT = Aws::Utils::DateTime>
242 bool m_sharingEnabled{
false};
246 int m_associatedServiceCount{0};
251 bool m_policyArnHasBeenSet =
false;
252 bool m_nameHasBeenSet =
false;
253 bool m_availabilitySloHasBeenSet =
false;
254 bool m_multiAzHasBeenSet =
false;
255 bool m_multiRegionHasBeenSet =
false;
256 bool m_dataRecoveryHasBeenSet =
false;
257 bool m_sharingEnabledHasBeenSet =
false;
258 bool m_organizationIdHasBeenSet =
false;
259 bool m_associatedServiceCountHasBeenSet =
false;
260 bool m_createdAtHasBeenSet =
false;
261 bool m_updatedAtHasBeenSet =
false;
PolicySummary & WithPolicyArn(PolicyArnT &&value)
AWS_RESILIENCEHUBV2_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
PolicySummary & WithAvailabilitySlo(AvailabilitySloT &&value)
bool OrganizationIdHasBeenSet() const
const AvailabilitySlo & GetAvailabilitySlo() const
bool GetSharingEnabled() const
bool MultiRegionHasBeenSet() const
bool UpdatedAtHasBeenSet() const
PolicySummary & WithMultiRegion(MultiRegionT &&value)
int GetAssociatedServiceCount() const
bool PolicyArnHasBeenSet() const
bool SharingEnabledHasBeenSet() const
void SetDataRecovery(DataRecoveryT &&value)
PolicySummary & WithName(NameT &&value)
const Aws::String & GetOrganizationId() const
bool AssociatedServiceCountHasBeenSet() const
const Aws::String & GetPolicyArn() const
const DataRecoveryTargets & GetDataRecovery() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetSharingEnabled(bool value)
AWS_RESILIENCEHUBV2_API PolicySummary()=default
bool AvailabilitySloHasBeenSet() const
PolicySummary & WithOrganizationId(OrganizationIdT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
PolicySummary & WithDataRecovery(DataRecoveryT &&value)
void SetPolicyArn(PolicyArnT &&value)
bool NameHasBeenSet() const
bool DataRecoveryHasBeenSet() const
void SetAssociatedServiceCount(int value)
PolicySummary & WithUpdatedAt(UpdatedAtT &&value)
bool MultiAzHasBeenSet() const
PolicySummary & WithCreatedAt(CreatedAtT &&value)
bool CreatedAtHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetOrganizationId(OrganizationIdT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetUpdatedAt() const
PolicySummary & WithAssociatedServiceCount(int value)
void SetMultiAz(MultiAzT &&value)
AWS_RESILIENCEHUBV2_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMultiRegion(MultiRegionT &&value)
const MultiRegionTargets & GetMultiRegion() const
void SetCreatedAt(CreatedAtT &&value)
const MultiAzTargets & GetMultiAz() const
void SetAvailabilitySlo(AvailabilitySloT &&value)
PolicySummary & WithMultiAz(MultiAzT &&value)
PolicySummary & WithSharingEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue