AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRecoveryGroupRequest.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53RecoveryReadiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53RECOVERYREADINESS_API CreateRecoveryGroupRequest() = 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 "CreateRecoveryGroup"; }
33
34 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetCells() const { return m_cells; }
42 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
43 template<typename CellsT = Aws::Vector<Aws::String>>
44 void SetCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells = std::forward<CellsT>(value); }
45 template<typename CellsT = Aws::Vector<Aws::String>>
46 CreateRecoveryGroupRequest& WithCells(CellsT&& value) { SetCells(std::forward<CellsT>(value)); return *this;}
47 template<typename CellsT = Aws::String>
48 CreateRecoveryGroupRequest& AddCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells.emplace_back(std::forward<CellsT>(value)); return *this; }
50
52
55 inline const Aws::String& GetRecoveryGroupName() const { return m_recoveryGroupName; }
56 inline bool RecoveryGroupNameHasBeenSet() const { return m_recoveryGroupNameHasBeenSet; }
57 template<typename RecoveryGroupNameT = Aws::String>
58 void SetRecoveryGroupName(RecoveryGroupNameT&& value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName = std::forward<RecoveryGroupNameT>(value); }
59 template<typename RecoveryGroupNameT = Aws::String>
60 CreateRecoveryGroupRequest& WithRecoveryGroupName(RecoveryGroupNameT&& value) { SetRecoveryGroupName(std::forward<RecoveryGroupNameT>(value)); return *this;}
62
64
65 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 CreateRecoveryGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
71 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
72 CreateRecoveryGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
73 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
74 }
76 private:
77
79 bool m_cellsHasBeenSet = false;
80
81 Aws::String m_recoveryGroupName;
82 bool m_recoveryGroupNameHasBeenSet = false;
83
85 bool m_tagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Route53RecoveryReadiness
90} // 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