AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateResiliencyPolicyRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/resiliencehub/model/DataLocationConstraint.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/resiliencehub/model/ResiliencyPolicyTier.h>
13#include <aws/resiliencehub/model/DisruptionType.h>
14#include <aws/resiliencehub/model/FailurePolicy.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ResilienceHub
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_RESILIENCEHUB_API UpdateResiliencyPolicyRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateResiliencyPolicy"; }
36
37 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
38
39
41
45 inline DataLocationConstraint GetDataLocationConstraint() const { return m_dataLocationConstraint; }
46 inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; }
47 inline void SetDataLocationConstraint(DataLocationConstraint value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = value; }
50
52
56 inline const Aws::Map<DisruptionType, FailurePolicy>& GetPolicy() const { return m_policy; }
57 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
58 template<typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
59 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
60 template<typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
61 UpdateResiliencyPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
63 m_policyHasBeenSet = true; m_policy.emplace(key, value); return *this;
64 }
66
68
77 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
78 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
79 template<typename PolicyArnT = Aws::String>
80 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
81 template<typename PolicyArnT = Aws::String>
82 UpdateResiliencyPolicyRequest& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
84
86
89 inline const Aws::String& GetPolicyDescription() const { return m_policyDescription; }
90 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
91 template<typename PolicyDescriptionT = Aws::String>
92 void SetPolicyDescription(PolicyDescriptionT&& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = std::forward<PolicyDescriptionT>(value); }
93 template<typename PolicyDescriptionT = Aws::String>
94 UpdateResiliencyPolicyRequest& WithPolicyDescription(PolicyDescriptionT&& value) { SetPolicyDescription(std::forward<PolicyDescriptionT>(value)); return *this;}
96
98
101 inline const Aws::String& GetPolicyName() const { return m_policyName; }
102 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
103 template<typename PolicyNameT = Aws::String>
104 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
105 template<typename PolicyNameT = Aws::String>
106 UpdateResiliencyPolicyRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
108
110
114 inline ResiliencyPolicyTier GetTier() const { return m_tier; }
115 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
116 inline void SetTier(ResiliencyPolicyTier value) { m_tierHasBeenSet = true; m_tier = value; }
119 private:
120
122 bool m_dataLocationConstraintHasBeenSet = false;
123
125 bool m_policyHasBeenSet = false;
126
127 Aws::String m_policyArn;
128 bool m_policyArnHasBeenSet = false;
129
130 Aws::String m_policyDescription;
131 bool m_policyDescriptionHasBeenSet = false;
132
133 Aws::String m_policyName;
134 bool m_policyNameHasBeenSet = false;
135
137 bool m_tierHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace ResilienceHub
142} // 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