AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateRecoveryGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
11#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53RecoveryReadiness {
17namespace Model {
18
22 public:
23 AWS_ROUTE53RECOVERYREADINESS_API CreateRecoveryGroupRequest() = 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 "CreateRecoveryGroup"; }
30
31 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<Aws::String>& GetCells() const { return m_cells; }
38 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
39 template <typename CellsT = Aws::Vector<Aws::String>>
40 void SetCells(CellsT&& value) {
41 m_cellsHasBeenSet = true;
42 m_cells = std::forward<CellsT>(value);
43 }
44 template <typename CellsT = Aws::Vector<Aws::String>>
46 SetCells(std::forward<CellsT>(value));
47 return *this;
48 }
49 template <typename CellsT = Aws::String>
51 m_cellsHasBeenSet = true;
52 m_cells.emplace_back(std::forward<CellsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRecoveryGroupName() const { return m_recoveryGroupName; }
62 inline bool RecoveryGroupNameHasBeenSet() const { return m_recoveryGroupNameHasBeenSet; }
63 template <typename RecoveryGroupNameT = Aws::String>
64 void SetRecoveryGroupName(RecoveryGroupNameT&& value) {
65 m_recoveryGroupNameHasBeenSet = true;
66 m_recoveryGroupName = std::forward<RecoveryGroupNameT>(value);
67 }
68 template <typename RecoveryGroupNameT = Aws::String>
70 SetRecoveryGroupName(std::forward<RecoveryGroupNameT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateRecoveryGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::String m_recoveryGroupName;
100
102 bool m_cellsHasBeenSet = false;
103 bool m_recoveryGroupNameHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Route53RecoveryReadiness
109} // namespace Aws
AWS_ROUTE53RECOVERYREADINESS_API CreateRecoveryGroupRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRecoveryGroupRequest & WithRecoveryGroupName(RecoveryGroupNameT &&value)
CreateRecoveryGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
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
std::vector< T, Aws::Allocator< T > > Vector