AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResiliencyPolicy.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/resiliencehub/model/DataLocationConstraint.h>
10#include <aws/resiliencehub/model/EstimatedCostTier.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/resiliencehub/model/ResiliencyPolicyTier.h>
14#include <aws/resiliencehub/model/DisruptionType.h>
15#include <aws/resiliencehub/model/FailurePolicy.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ResilienceHub
29{
30namespace Model
31{
32
46 {
47 public:
48 AWS_RESILIENCEHUB_API ResiliencyPolicy();
49 AWS_RESILIENCEHUB_API ResiliencyPolicy(Aws::Utils::Json::JsonView jsonValue);
50 AWS_RESILIENCEHUB_API ResiliencyPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
59 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
60 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
61 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
62 inline ResiliencyPolicy& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
63 inline ResiliencyPolicy& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
65
67
71 inline const DataLocationConstraint& GetDataLocationConstraint() const{ return m_dataLocationConstraint; }
72 inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; }
73 inline void SetDataLocationConstraint(const DataLocationConstraint& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = value; }
74 inline void SetDataLocationConstraint(DataLocationConstraint&& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = std::move(value); }
78
80
83 inline const EstimatedCostTier& GetEstimatedCostTier() const{ return m_estimatedCostTier; }
84 inline bool EstimatedCostTierHasBeenSet() const { return m_estimatedCostTierHasBeenSet; }
85 inline void SetEstimatedCostTier(const EstimatedCostTier& value) { m_estimatedCostTierHasBeenSet = true; m_estimatedCostTier = value; }
86 inline void SetEstimatedCostTier(EstimatedCostTier&& value) { m_estimatedCostTierHasBeenSet = true; m_estimatedCostTier = std::move(value); }
88 inline ResiliencyPolicy& WithEstimatedCostTier(EstimatedCostTier&& value) { SetEstimatedCostTier(std::move(value)); return *this;}
90
92
95 inline const Aws::Map<DisruptionType, FailurePolicy>& GetPolicy() const{ return m_policy; }
96 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
97 inline void SetPolicy(const Aws::Map<DisruptionType, FailurePolicy>& value) { m_policyHasBeenSet = true; m_policy = value; }
98 inline void SetPolicy(Aws::Map<DisruptionType, FailurePolicy>&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
100 inline ResiliencyPolicy& WithPolicy(Aws::Map<DisruptionType, FailurePolicy>&& value) { SetPolicy(std::move(value)); return *this;}
101 inline ResiliencyPolicy& AddPolicy(const DisruptionType& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(key, value); return *this; }
102 inline ResiliencyPolicy& AddPolicy(DisruptionType&& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), value); return *this; }
103 inline ResiliencyPolicy& AddPolicy(const DisruptionType& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(key, std::move(value)); return *this; }
104 inline ResiliencyPolicy& AddPolicy(DisruptionType&& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), std::move(value)); return *this; }
106
108
117 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
118 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
119 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
120 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
121 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
122 inline ResiliencyPolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
123 inline ResiliencyPolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
124 inline ResiliencyPolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
126
128
131 inline const Aws::String& GetPolicyDescription() const{ return m_policyDescription; }
132 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
133 inline void SetPolicyDescription(const Aws::String& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = value; }
134 inline void SetPolicyDescription(Aws::String&& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = std::move(value); }
135 inline void SetPolicyDescription(const char* value) { m_policyDescriptionHasBeenSet = true; m_policyDescription.assign(value); }
136 inline ResiliencyPolicy& WithPolicyDescription(const Aws::String& value) { SetPolicyDescription(value); return *this;}
137 inline ResiliencyPolicy& WithPolicyDescription(Aws::String&& value) { SetPolicyDescription(std::move(value)); return *this;}
138 inline ResiliencyPolicy& WithPolicyDescription(const char* value) { SetPolicyDescription(value); return *this;}
140
142
145 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
146 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
147 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
148 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
149 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
150 inline ResiliencyPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
151 inline ResiliencyPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
152 inline ResiliencyPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
154
156
160 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
161 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
163 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
164 inline ResiliencyPolicy& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
165 inline ResiliencyPolicy& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
166 inline ResiliencyPolicy& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
167 inline ResiliencyPolicy& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
168 inline ResiliencyPolicy& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
169 inline ResiliencyPolicy& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
170 inline ResiliencyPolicy& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
171 inline ResiliencyPolicy& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
172 inline ResiliencyPolicy& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
174
176
180 inline const ResiliencyPolicyTier& GetTier() const{ return m_tier; }
181 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
182 inline void SetTier(const ResiliencyPolicyTier& value) { m_tierHasBeenSet = true; m_tier = value; }
183 inline void SetTier(ResiliencyPolicyTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
184 inline ResiliencyPolicy& WithTier(const ResiliencyPolicyTier& value) { SetTier(value); return *this;}
185 inline ResiliencyPolicy& WithTier(ResiliencyPolicyTier&& value) { SetTier(std::move(value)); return *this;}
187 private:
188
189 Aws::Utils::DateTime m_creationTime;
190 bool m_creationTimeHasBeenSet = false;
191
192 DataLocationConstraint m_dataLocationConstraint;
193 bool m_dataLocationConstraintHasBeenSet = false;
194
195 EstimatedCostTier m_estimatedCostTier;
196 bool m_estimatedCostTierHasBeenSet = false;
197
199 bool m_policyHasBeenSet = false;
200
201 Aws::String m_policyArn;
202 bool m_policyArnHasBeenSet = false;
203
204 Aws::String m_policyDescription;
205 bool m_policyDescriptionHasBeenSet = false;
206
207 Aws::String m_policyName;
208 bool m_policyNameHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212
214 bool m_tierHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace ResilienceHub
219} // namespace Aws
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetTier(ResiliencyPolicyTier &&value)
ResiliencyPolicy & AddTags(const Aws::String &key, const Aws::String &value)
ResiliencyPolicy & AddPolicy(const DisruptionType &key, const FailurePolicy &value)
ResiliencyPolicy & WithPolicyArn(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ResiliencyPolicy & AddTags(Aws::String &&key, Aws::String &&value)
ResiliencyPolicy & WithPolicyArn(Aws::String &&value)
AWS_RESILIENCEHUB_API ResiliencyPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ResiliencyPolicy & WithEstimatedCostTier(EstimatedCostTier &&value)
void SetPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ResiliencyPolicy & AddTags(Aws::String &&key, const char *value)
ResiliencyPolicy & WithDataLocationConstraint(const DataLocationConstraint &value)
ResiliencyPolicy & WithPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataLocationConstraint(DataLocationConstraint &&value)
const EstimatedCostTier & GetEstimatedCostTier() const
const ResiliencyPolicyTier & GetTier() const
ResiliencyPolicy & WithPolicyDescription(const Aws::String &value)
ResiliencyPolicy & AddTags(const char *key, Aws::String &&value)
void SetTier(const ResiliencyPolicyTier &value)
ResiliencyPolicy & WithPolicyName(Aws::String &&value)
ResiliencyPolicy & WithCreationTime(const Aws::Utils::DateTime &value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
ResiliencyPolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ResiliencyPolicy & AddTags(const char *key, const char *value)
ResiliencyPolicy & WithEstimatedCostTier(const EstimatedCostTier &value)
ResiliencyPolicy & WithPolicyName(const Aws::String &value)
const Aws::String & GetPolicyDescription() const
ResiliencyPolicy & WithPolicyDescription(Aws::String &&value)
ResiliencyPolicy & WithPolicyArn(const char *value)
void SetEstimatedCostTier(const EstimatedCostTier &value)
ResiliencyPolicy & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ResiliencyPolicy & WithTier(const ResiliencyPolicyTier &value)
ResiliencyPolicy & AddPolicy(const DisruptionType &key, FailurePolicy &&value)
ResiliencyPolicy & WithPolicyDescription(const char *value)
ResiliencyPolicy & WithCreationTime(Aws::Utils::DateTime &&value)
void SetPolicyName(const Aws::String &value)
void SetEstimatedCostTier(EstimatedCostTier &&value)
ResiliencyPolicy & WithTier(ResiliencyPolicyTier &&value)
void SetPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
ResiliencyPolicy & WithDataLocationConstraint(DataLocationConstraint &&value)
void SetPolicyDescription(const Aws::String &value)
ResiliencyPolicy & AddTags(Aws::String &&key, const Aws::String &value)
void SetDataLocationConstraint(const DataLocationConstraint &value)
ResiliencyPolicy & AddPolicy(DisruptionType &&key, const FailurePolicy &value)
ResiliencyPolicy & WithPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
ResiliencyPolicy & AddTags(const Aws::String &key, Aws::String &&value)
ResiliencyPolicy & WithPolicyName(const char *value)
AWS_RESILIENCEHUB_API ResiliencyPolicy(Aws::Utils::Json::JsonView jsonValue)
const DataLocationConstraint & GetDataLocationConstraint() const
void SetPolicyArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ResiliencyPolicy & AddPolicy(DisruptionType &&key, FailurePolicy &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue