AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
CreateRecoveryPlanRequest.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/drs/DrsRequest.h>
11#include <aws/drs/Drs_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace drs {
17namespace Model {
18
22 public:
23 AWS_DRS_API CreateRecoveryPlanRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateRecoveryPlan"; }
30
31 AWS_DRS_API Aws::String SerializePayload() const override;
32
34
35 inline const Aws::String& GetName() const { return m_name; }
36 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetDescription() const { return m_description; }
52 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 template <typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) {
55 m_descriptionHasBeenSet = true;
56 m_description = std::forward<DescriptionT>(value);
57 }
58 template <typename DescriptionT = Aws::String>
60 SetDescription(std::forward<DescriptionT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetClientToken() const { return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 template <typename ClientTokenT = Aws::String>
72 void SetClientToken(ClientTokenT&& value) {
73 m_clientTokenHasBeenSet = true;
74 m_clientToken = std::forward<ClientTokenT>(value);
75 }
76 template <typename ClientTokenT = Aws::String>
78 SetClientToken(std::forward<ClientTokenT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 void SetTags(TagsT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags = std::forward<TagsT>(value);
93 }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 SetTags(std::forward<TagsT>(value));
97 return *this;
98 }
99 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 CreateRecoveryPlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_name;
108
109 Aws::String m_description;
110
112
114 bool m_nameHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116 bool m_clientTokenHasBeenSet = true;
117 bool m_tagsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace drs
122} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateRecoveryPlanRequest & WithName(NameT &&value)
CreateRecoveryPlanRequest & WithTags(TagsT &&value)
CreateRecoveryPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
CreateRecoveryPlanRequest & WithDescription(DescriptionT &&value)
CreateRecoveryPlanRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DRS_API CreateRecoveryPlanRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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