AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DataLocationConstraint& GetDataLocationConstraint() const{ return m_dataLocationConstraint; }
46 inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; }
47 inline void SetDataLocationConstraint(const DataLocationConstraint& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = value; }
48 inline void SetDataLocationConstraint(DataLocationConstraint&& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = std::move(value); }
52
54
58 inline const Aws::Map<DisruptionType, FailurePolicy>& GetPolicy() const{ return m_policy; }
59 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
60 inline void SetPolicy(const Aws::Map<DisruptionType, FailurePolicy>& value) { m_policyHasBeenSet = true; m_policy = value; }
61 inline void SetPolicy(Aws::Map<DisruptionType, FailurePolicy>&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
64 inline UpdateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(key, value); return *this; }
65 inline UpdateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), value); return *this; }
66 inline UpdateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(key, std::move(value)); return *this; }
67 inline UpdateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), std::move(value)); return *this; }
69
71
80 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
81 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
82 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
83 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
84 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
85 inline UpdateResiliencyPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
86 inline UpdateResiliencyPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
87 inline UpdateResiliencyPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
89
91
94 inline const Aws::String& GetPolicyDescription() const{ return m_policyDescription; }
95 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
96 inline void SetPolicyDescription(const Aws::String& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = value; }
97 inline void SetPolicyDescription(Aws::String&& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = std::move(value); }
98 inline void SetPolicyDescription(const char* value) { m_policyDescriptionHasBeenSet = true; m_policyDescription.assign(value); }
100 inline UpdateResiliencyPolicyRequest& WithPolicyDescription(Aws::String&& value) { SetPolicyDescription(std::move(value)); return *this;}
101 inline UpdateResiliencyPolicyRequest& WithPolicyDescription(const char* value) { SetPolicyDescription(value); return *this;}
103
105
108 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
109 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
110 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
111 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
112 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
113 inline UpdateResiliencyPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
114 inline UpdateResiliencyPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
115 inline UpdateResiliencyPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
117
119
123 inline const ResiliencyPolicyTier& GetTier() const{ return m_tier; }
124 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
125 inline void SetTier(const ResiliencyPolicyTier& value) { m_tierHasBeenSet = true; m_tier = value; }
126 inline void SetTier(ResiliencyPolicyTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
127 inline UpdateResiliencyPolicyRequest& WithTier(const ResiliencyPolicyTier& value) { SetTier(value); return *this;}
128 inline UpdateResiliencyPolicyRequest& WithTier(ResiliencyPolicyTier&& value) { SetTier(std::move(value)); return *this;}
130 private:
131
132 DataLocationConstraint m_dataLocationConstraint;
133 bool m_dataLocationConstraintHasBeenSet = false;
134
136 bool m_policyHasBeenSet = false;
137
138 Aws::String m_policyArn;
139 bool m_policyArnHasBeenSet = false;
140
141 Aws::String m_policyDescription;
142 bool m_policyDescriptionHasBeenSet = false;
143
144 Aws::String m_policyName;
145 bool m_policyNameHasBeenSet = false;
146
148 bool m_tierHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ResilienceHub
153} // namespace Aws
UpdateResiliencyPolicyRequest & WithPolicyName(Aws::String &&value)
void SetDataLocationConstraint(const DataLocationConstraint &value)
UpdateResiliencyPolicyRequest & WithDataLocationConstraint(const DataLocationConstraint &value)
UpdateResiliencyPolicyRequest & WithPolicyDescription(const char *value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
UpdateResiliencyPolicyRequest & WithDataLocationConstraint(DataLocationConstraint &&value)
UpdateResiliencyPolicyRequest & WithPolicyName(const Aws::String &value)
UpdateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, const FailurePolicy &value)
void SetPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
void SetPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
UpdateResiliencyPolicyRequest & WithPolicyArn(Aws::String &&value)
UpdateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, const FailurePolicy &value)
UpdateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, FailurePolicy &&value)
UpdateResiliencyPolicyRequest & WithPolicyArn(const Aws::String &value)
UpdateResiliencyPolicyRequest & WithPolicyArn(const char *value)
UpdateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, FailurePolicy &&value)
UpdateResiliencyPolicyRequest & WithTier(ResiliencyPolicyTier &&value)
UpdateResiliencyPolicyRequest & WithTier(const ResiliencyPolicyTier &value)
UpdateResiliencyPolicyRequest & WithPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
UpdateResiliencyPolicyRequest & WithPolicyDescription(Aws::String &&value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
UpdateResiliencyPolicyRequest & WithPolicyName(const char *value)
UpdateResiliencyPolicyRequest & WithPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
UpdateResiliencyPolicyRequest & WithPolicyDescription(const Aws::String &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