AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCellRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 CreateCellRequest() = 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 "CreateCell"; }
33
34 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetCellName() const { return m_cellName; }
42 inline bool CellNameHasBeenSet() const { return m_cellNameHasBeenSet; }
43 template<typename CellNameT = Aws::String>
44 void SetCellName(CellNameT&& value) { m_cellNameHasBeenSet = true; m_cellName = std::forward<CellNameT>(value); }
45 template<typename CellNameT = Aws::String>
46 CreateCellRequest& WithCellName(CellNameT&& value) { SetCellName(std::forward<CellNameT>(value)); return *this;}
48
50
55 inline const Aws::Vector<Aws::String>& GetCells() const { return m_cells; }
56 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
57 template<typename CellsT = Aws::Vector<Aws::String>>
58 void SetCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells = std::forward<CellsT>(value); }
59 template<typename CellsT = Aws::Vector<Aws::String>>
60 CreateCellRequest& WithCells(CellsT&& value) { SetCells(std::forward<CellsT>(value)); return *this;}
61 template<typename CellsT = Aws::String>
62 CreateCellRequest& AddCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells.emplace_back(std::forward<CellsT>(value)); return *this; }
64
66
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateCellRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateCellRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_cellName;
81 bool m_cellNameHasBeenSet = false;
82
84 bool m_cellsHasBeenSet = false;
85
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Route53RecoveryReadiness
92} // 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