AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResiliencyPolicyRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/DataLocationConstraint.h>
11#include <aws/core/utils/memory/stl/AWSMap.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#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace ResilienceHub
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RESILIENCEHUB_API CreateResiliencyPolicyRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateResiliencyPolicy"; }
37
38 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateResiliencyPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateResiliencyPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateResiliencyPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
62 inline const DataLocationConstraint& GetDataLocationConstraint() const{ return m_dataLocationConstraint; }
63 inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; }
64 inline void SetDataLocationConstraint(const DataLocationConstraint& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = value; }
65 inline void SetDataLocationConstraint(DataLocationConstraint&& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = std::move(value); }
69
71
75 inline const Aws::Map<DisruptionType, FailurePolicy>& GetPolicy() const{ return m_policy; }
76 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
77 inline void SetPolicy(const Aws::Map<DisruptionType, FailurePolicy>& value) { m_policyHasBeenSet = true; m_policy = value; }
78 inline void SetPolicy(Aws::Map<DisruptionType, FailurePolicy>&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
81 inline CreateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(key, value); return *this; }
82 inline CreateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), value); return *this; }
83 inline CreateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(key, std::move(value)); return *this; }
84 inline CreateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), std::move(value)); return *this; }
86
88
91 inline const Aws::String& GetPolicyDescription() const{ return m_policyDescription; }
92 inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; }
93 inline void SetPolicyDescription(const Aws::String& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = value; }
94 inline void SetPolicyDescription(Aws::String&& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = std::move(value); }
95 inline void SetPolicyDescription(const char* value) { m_policyDescriptionHasBeenSet = true; m_policyDescription.assign(value); }
97 inline CreateResiliencyPolicyRequest& WithPolicyDescription(Aws::String&& value) { SetPolicyDescription(std::move(value)); return *this;}
98 inline CreateResiliencyPolicyRequest& WithPolicyDescription(const char* value) { SetPolicyDescription(value); return *this;}
100
102
105 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
106 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
107 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
108 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
109 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
110 inline CreateResiliencyPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
111 inline CreateResiliencyPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
112 inline CreateResiliencyPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
114
116
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateResiliencyPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateResiliencyPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 inline CreateResiliencyPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateResiliencyPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateResiliencyPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 inline CreateResiliencyPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateResiliencyPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateResiliencyPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
134
136
140 inline const ResiliencyPolicyTier& GetTier() const{ return m_tier; }
141 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
142 inline void SetTier(const ResiliencyPolicyTier& value) { m_tierHasBeenSet = true; m_tier = value; }
143 inline void SetTier(ResiliencyPolicyTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
144 inline CreateResiliencyPolicyRequest& WithTier(const ResiliencyPolicyTier& value) { SetTier(value); return *this;}
145 inline CreateResiliencyPolicyRequest& WithTier(ResiliencyPolicyTier&& value) { SetTier(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_clientToken;
150 bool m_clientTokenHasBeenSet = false;
151
152 DataLocationConstraint m_dataLocationConstraint;
153 bool m_dataLocationConstraintHasBeenSet = false;
154
156 bool m_policyHasBeenSet = false;
157
158 Aws::String m_policyDescription;
159 bool m_policyDescriptionHasBeenSet = false;
160
161 Aws::String m_policyName;
162 bool m_policyNameHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166
168 bool m_tierHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace ResilienceHub
173} // namespace Aws
CreateResiliencyPolicyRequest & WithPolicyDescription(Aws::String &&value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
CreateResiliencyPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, const FailurePolicy &value)
CreateResiliencyPolicyRequest & WithDataLocationConstraint(DataLocationConstraint &&value)
CreateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, const FailurePolicy &value)
CreateResiliencyPolicyRequest & WithClientToken(const Aws::String &value)
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateResiliencyPolicyRequest & WithPolicyName(const char *value)
CreateResiliencyPolicyRequest & WithTier(const ResiliencyPolicyTier &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResiliencyPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateResiliencyPolicyRequest & WithPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
CreateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, FailurePolicy &&value)
CreateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, FailurePolicy &&value)
CreateResiliencyPolicyRequest & WithPolicyDescription(const char *value)
CreateResiliencyPolicyRequest & WithClientToken(Aws::String &&value)
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetDataLocationConstraint(const DataLocationConstraint &value)
CreateResiliencyPolicyRequest & WithTier(ResiliencyPolicyTier &&value)
void SetPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
CreateResiliencyPolicyRequest & WithPolicyDescription(const Aws::String &value)
CreateResiliencyPolicyRequest & WithPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateResiliencyPolicyRequest & WithClientToken(const char *value)
CreateResiliencyPolicyRequest & AddTags(const char *key, const char *value)
CreateResiliencyPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateResiliencyPolicyRequest & WithPolicyName(Aws::String &&value)
CreateResiliencyPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateResiliencyPolicyRequest & WithDataLocationConstraint(const DataLocationConstraint &value)
CreateResiliencyPolicyRequest & WithPolicyName(const Aws::String &value)
CreateResiliencyPolicyRequest & AddTags(const char *key, Aws::String &&value)
void SetPolicy(Aws::Map< DisruptionType, FailurePolicy > &&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