AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
UpdateCellRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
10#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Route53RecoveryReadiness {
16namespace Model {
17
21 public:
22 AWS_ROUTE53RECOVERYREADINESS_API UpdateCellRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateCell"; }
29
30 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetCellName() const { return m_cellName; }
37 inline bool CellNameHasBeenSet() const { return m_cellNameHasBeenSet; }
38 template <typename CellNameT = Aws::String>
39 void SetCellName(CellNameT&& value) {
40 m_cellNameHasBeenSet = true;
41 m_cellName = std::forward<CellNameT>(value);
42 }
43 template <typename CellNameT = Aws::String>
44 UpdateCellRequest& WithCellName(CellNameT&& value) {
45 SetCellName(std::forward<CellNameT>(value));
46 return *this;
47 }
49
51
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) {
59 m_cellsHasBeenSet = true;
60 m_cells = std::forward<CellsT>(value);
61 }
62 template <typename CellsT = Aws::Vector<Aws::String>>
63 UpdateCellRequest& WithCells(CellsT&& value) {
64 SetCells(std::forward<CellsT>(value));
65 return *this;
66 }
67 template <typename CellsT = Aws::String>
68 UpdateCellRequest& AddCells(CellsT&& value) {
69 m_cellsHasBeenSet = true;
70 m_cells.emplace_back(std::forward<CellsT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_cellName;
76
78 bool m_cellNameHasBeenSet = false;
79 bool m_cellsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Route53RecoveryReadiness
84} // namespace Aws
UpdateCellRequest & WithCellName(CellNameT &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetCells() const
AWS_ROUTE53RECOVERYREADINESS_API UpdateCellRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector