AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
UpdateResiliencyPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHubRequest.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11#include <aws/resiliencehub/model/DataLocationConstraint.h>
12#include <aws/resiliencehub/model/DisruptionType.h>
13#include <aws/resiliencehub/model/FailurePolicy.h>
14#include <aws/resiliencehub/model/ResiliencyPolicyTier.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ResilienceHub {
20namespace Model {
21
25 public:
26 AWS_RESILIENCEHUB_API UpdateResiliencyPolicyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateResiliencyPolicy"; }
33
34 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
35
37
41 inline DataLocationConstraint GetDataLocationConstraint() const { return m_dataLocationConstraint; }
42 inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; }
44 m_dataLocationConstraintHasBeenSet = true;
45 m_dataLocationConstraint = value;
46 }
49 return *this;
50 }
52
54
58 inline const Aws::Map<DisruptionType, FailurePolicy>& GetPolicy() const { return m_policy; }
59 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
60 template <typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
61 void SetPolicy(PolicyT&& value) {
62 m_policyHasBeenSet = true;
63 m_policy = std::forward<PolicyT>(value);
64 }
65 template <typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
67 SetPolicy(std::forward<PolicyT>(value));
68 return *this;
69 }
71 m_policyHasBeenSet = true;
72 m_policy.emplace(key, value);
73 return *this;
74 }
76
78
87 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
88 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
89 template <typename PolicyArnT = Aws::String>
90 void SetPolicyArn(PolicyArnT&& value) {
91 m_policyArnHasBeenSet = true;
92 m_policyArn = std::forward<PolicyArnT>(value);
93 }
94 template <typename PolicyArnT = Aws::String>
96 SetPolicyArn(std::forward<PolicyArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetPolicyDescription() const { return m_policyDescription; }
106 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
107 template <typename PolicyDescriptionT = Aws::String>
108 void SetPolicyDescription(PolicyDescriptionT&& value) {
109 m_policyDescriptionHasBeenSet = true;
110 m_policyDescription = std::forward<PolicyDescriptionT>(value);
111 }
112 template <typename PolicyDescriptionT = Aws::String>
114 SetPolicyDescription(std::forward<PolicyDescriptionT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetPolicyName() const { return m_policyName; }
124 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
125 template <typename PolicyNameT = Aws::String>
126 void SetPolicyName(PolicyNameT&& value) {
127 m_policyNameHasBeenSet = true;
128 m_policyName = std::forward<PolicyNameT>(value);
129 }
130 template <typename PolicyNameT = Aws::String>
132 SetPolicyName(std::forward<PolicyNameT>(value));
133 return *this;
134 }
136
138
142 inline ResiliencyPolicyTier GetTier() const { return m_tier; }
143 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
144 inline void SetTier(ResiliencyPolicyTier value) {
145 m_tierHasBeenSet = true;
146 m_tier = value;
147 }
149 SetTier(value);
150 return *this;
151 }
153 private:
155 bool m_dataLocationConstraintHasBeenSet = false;
156
158 bool m_policyHasBeenSet = false;
159
160 Aws::String m_policyArn;
161 bool m_policyArnHasBeenSet = false;
162
163 Aws::String m_policyDescription;
164 bool m_policyDescriptionHasBeenSet = false;
165
166 Aws::String m_policyName;
167 bool m_policyNameHasBeenSet = false;
168
170 bool m_tierHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace ResilienceHub
175} // namespace Aws
UpdateResiliencyPolicyRequest & WithDataLocationConstraint(DataLocationConstraint value)
AWS_RESILIENCEHUB_API UpdateResiliencyPolicyRequest()=default
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
UpdateResiliencyPolicyRequest & WithTier(ResiliencyPolicyTier value)
UpdateResiliencyPolicyRequest & WithPolicyArn(PolicyArnT &&value)
UpdateResiliencyPolicyRequest & AddPolicy(DisruptionType key, FailurePolicy value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
UpdateResiliencyPolicyRequest & WithPolicy(PolicyT &&value)
UpdateResiliencyPolicyRequest & WithPolicyName(PolicyNameT &&value)
UpdateResiliencyPolicyRequest & WithPolicyDescription(PolicyDescriptionT &&value)
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