AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateCellRequest.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 CreateCellRequest() = 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 "CreateCell"; }
30
31 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetCellName() const { return m_cellName; }
38 inline bool CellNameHasBeenSet() const { return m_cellNameHasBeenSet; }
39 template <typename CellNameT = Aws::String>
40 void SetCellName(CellNameT&& value) {
41 m_cellNameHasBeenSet = true;
42 m_cellName = std::forward<CellNameT>(value);
43 }
44 template <typename CellNameT = Aws::String>
45 CreateCellRequest& WithCellName(CellNameT&& value) {
46 SetCellName(std::forward<CellNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Vector<Aws::String>& GetCells() const { return m_cells; }
58 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
59 template <typename CellsT = Aws::Vector<Aws::String>>
60 void SetCells(CellsT&& value) {
61 m_cellsHasBeenSet = true;
62 m_cells = std::forward<CellsT>(value);
63 }
64 template <typename CellsT = Aws::Vector<Aws::String>>
65 CreateCellRequest& WithCells(CellsT&& value) {
66 SetCells(std::forward<CellsT>(value));
67 return *this;
68 }
69 template <typename CellsT = Aws::String>
70 CreateCellRequest& AddCells(CellsT&& value) {
71 m_cellsHasBeenSet = true;
72 m_cells.emplace_back(std::forward<CellsT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) {
83 m_tagsHasBeenSet = true;
84 m_tags = std::forward<TagsT>(value);
85 }
86 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 CreateCellRequest& WithTags(TagsT&& value) {
88 SetTags(std::forward<TagsT>(value));
89 return *this;
90 }
91 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
92 CreateCellRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_cellName;
100
102
104 bool m_cellNameHasBeenSet = false;
105 bool m_cellsHasBeenSet = false;
106 bool m_tagsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Route53RecoveryReadiness
111} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ROUTE53RECOVERYREADINESS_API CreateCellRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetCells() const
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
CreateCellRequest & WithCellName(CellNameT &&value)
CreateCellRequest & AddTags(TagsKeyT &&key, TagsValueT &&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
std::vector< T, Aws::Allocator< T > > Vector