AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ImportPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
11#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
12#include <aws/resiliencehubv2/model/AvailabilitySlo.h>
13#include <aws/resiliencehubv2/model/MultiAzDisasterRecoveryApproach.h>
14#include <aws/resiliencehubv2/model/MultiRegionDisasterRecoveryApproach.h>
15
16#include <utility>
17
18namespace Aws {
19namespace resiliencehubv2 {
20namespace Model {
21
25 public:
26 AWS_RESILIENCEHUBV2_API ImportPolicyRequest() = 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 "ImportPolicy"; }
33
34 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
35
37
38 inline const Aws::String& GetV1PolicyArn() const { return m_v1PolicyArn; }
39 inline bool V1PolicyArnHasBeenSet() const { return m_v1PolicyArnHasBeenSet; }
40 template <typename V1PolicyArnT = Aws::String>
41 void SetV1PolicyArn(V1PolicyArnT&& value) {
42 m_v1PolicyArnHasBeenSet = true;
43 m_v1PolicyArn = std::forward<V1PolicyArnT>(value);
44 }
45 template <typename V1PolicyArnT = Aws::String>
46 ImportPolicyRequest& WithV1PolicyArn(V1PolicyArnT&& value) {
47 SetV1PolicyArn(std::forward<V1PolicyArnT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
55 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
56 template <typename KmsKeyIdT = Aws::String>
57 void SetKmsKeyId(KmsKeyIdT&& value) {
58 m_kmsKeyIdHasBeenSet = true;
59 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
60 }
61 template <typename KmsKeyIdT = Aws::String>
62 ImportPolicyRequest& WithKmsKeyId(KmsKeyIdT&& value) {
63 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
64 return *this;
65 }
67
69
72 inline const AvailabilitySlo& GetAvailabilitySlo() const { return m_availabilitySlo; }
73 inline bool AvailabilitySloHasBeenSet() const { return m_availabilitySloHasBeenSet; }
74 template <typename AvailabilitySloT = AvailabilitySlo>
75 void SetAvailabilitySlo(AvailabilitySloT&& value) {
76 m_availabilitySloHasBeenSet = true;
77 m_availabilitySlo = std::forward<AvailabilitySloT>(value);
78 }
79 template <typename AvailabilitySloT = AvailabilitySlo>
80 ImportPolicyRequest& WithAvailabilitySlo(AvailabilitySloT&& value) {
81 SetAvailabilitySlo(std::forward<AvailabilitySloT>(value));
82 return *this;
83 }
85
87
90 inline MultiAzDisasterRecoveryApproach GetMultiAzDisasterRecoveryApproach() const { return m_multiAzDisasterRecoveryApproach; }
91 inline bool MultiAzDisasterRecoveryApproachHasBeenSet() const { return m_multiAzDisasterRecoveryApproachHasBeenSet; }
93 m_multiAzDisasterRecoveryApproachHasBeenSet = true;
94 m_multiAzDisasterRecoveryApproach = value;
95 }
98 return *this;
99 }
101
103
107 return m_multiRegionDisasterRecoveryApproach;
108 }
109 inline bool MultiRegionDisasterRecoveryApproachHasBeenSet() const { return m_multiRegionDisasterRecoveryApproachHasBeenSet; }
111 m_multiRegionDisasterRecoveryApproachHasBeenSet = true;
112 m_multiRegionDisasterRecoveryApproach = value;
113 }
116 return *this;
117 }
119
121
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 ImportPolicyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::String& GetClientToken() const { return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 template <typename ClientTokenT = Aws::String>
147 void SetClientToken(ClientTokenT&& value) {
148 m_clientTokenHasBeenSet = true;
149 m_clientToken = std::forward<ClientTokenT>(value);
150 }
151 template <typename ClientTokenT = Aws::String>
152 ImportPolicyRequest& WithClientToken(ClientTokenT&& value) {
153 SetClientToken(std::forward<ClientTokenT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_v1PolicyArn;
159
160 Aws::String m_kmsKeyId;
161
162 AvailabilitySlo m_availabilitySlo;
163
165
167
169
171 bool m_v1PolicyArnHasBeenSet = false;
172 bool m_kmsKeyIdHasBeenSet = false;
173 bool m_availabilitySloHasBeenSet = false;
174 bool m_multiAzDisasterRecoveryApproachHasBeenSet = false;
175 bool m_multiRegionDisasterRecoveryApproachHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177 bool m_clientTokenHasBeenSet = true;
178};
179
180} // namespace Model
181} // namespace resiliencehubv2
182} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_RESILIENCEHUBV2_API ImportPolicyRequest()=default
void SetMultiAzDisasterRecoveryApproach(MultiAzDisasterRecoveryApproach value)
ImportPolicyRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
ImportPolicyRequest & WithMultiAzDisasterRecoveryApproach(MultiAzDisasterRecoveryApproach value)
void SetMultiRegionDisasterRecoveryApproach(MultiRegionDisasterRecoveryApproach value)
MultiRegionDisasterRecoveryApproach GetMultiRegionDisasterRecoveryApproach() const
ImportPolicyRequest & WithClientToken(ClientTokenT &&value)
ImportPolicyRequest & WithV1PolicyArn(V1PolicyArnT &&value)
ImportPolicyRequest & WithTags(TagsT &&value)
ImportPolicyRequest & WithMultiRegionDisasterRecoveryApproach(MultiRegionDisasterRecoveryApproach value)
virtual const char * GetServiceRequestName() const override
ImportPolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
MultiAzDisasterRecoveryApproach GetMultiAzDisasterRecoveryApproach() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportPolicyRequest & WithAvailabilitySlo(AvailabilitySloT &&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