AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CellOutput.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/Route53RecoveryReadiness_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Route53RecoveryReadiness {
22namespace Model {
23
30 public:
31 AWS_ROUTE53RECOVERYREADINESS_API CellOutput() = default;
32 AWS_ROUTE53RECOVERYREADINESS_API CellOutput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ROUTE53RECOVERYREADINESS_API CellOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCellArn() const { return m_cellArn; }
41 inline bool CellArnHasBeenSet() const { return m_cellArnHasBeenSet; }
42 template <typename CellArnT = Aws::String>
43 void SetCellArn(CellArnT&& value) {
44 m_cellArnHasBeenSet = true;
45 m_cellArn = std::forward<CellArnT>(value);
46 }
47 template <typename CellArnT = Aws::String>
48 CellOutput& WithCellArn(CellArnT&& value) {
49 SetCellArn(std::forward<CellArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCellName() const { return m_cellName; }
59 inline bool CellNameHasBeenSet() const { return m_cellNameHasBeenSet; }
60 template <typename CellNameT = Aws::String>
61 void SetCellName(CellNameT&& value) {
62 m_cellNameHasBeenSet = true;
63 m_cellName = std::forward<CellNameT>(value);
64 }
65 template <typename CellNameT = Aws::String>
66 CellOutput& WithCellName(CellNameT&& value) {
67 SetCellName(std::forward<CellNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetCells() const { return m_cells; }
77 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
78 template <typename CellsT = Aws::Vector<Aws::String>>
79 void SetCells(CellsT&& value) {
80 m_cellsHasBeenSet = true;
81 m_cells = std::forward<CellsT>(value);
82 }
83 template <typename CellsT = Aws::Vector<Aws::String>>
84 CellOutput& WithCells(CellsT&& value) {
85 SetCells(std::forward<CellsT>(value));
86 return *this;
87 }
88 template <typename CellsT = Aws::String>
89 CellOutput& AddCells(CellsT&& value) {
90 m_cellsHasBeenSet = true;
91 m_cells.emplace_back(std::forward<CellsT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Aws::String>& GetParentReadinessScopes() const { return m_parentReadinessScopes; }
103 inline bool ParentReadinessScopesHasBeenSet() const { return m_parentReadinessScopesHasBeenSet; }
104 template <typename ParentReadinessScopesT = Aws::Vector<Aws::String>>
105 void SetParentReadinessScopes(ParentReadinessScopesT&& value) {
106 m_parentReadinessScopesHasBeenSet = true;
107 m_parentReadinessScopes = std::forward<ParentReadinessScopesT>(value);
108 }
109 template <typename ParentReadinessScopesT = Aws::Vector<Aws::String>>
110 CellOutput& WithParentReadinessScopes(ParentReadinessScopesT&& value) {
111 SetParentReadinessScopes(std::forward<ParentReadinessScopesT>(value));
112 return *this;
113 }
114 template <typename ParentReadinessScopesT = Aws::String>
115 CellOutput& AddParentReadinessScopes(ParentReadinessScopesT&& value) {
116 m_parentReadinessScopesHasBeenSet = true;
117 m_parentReadinessScopes.emplace_back(std::forward<ParentReadinessScopesT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 CellOutput& WithTags(TagsT&& value) {
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CellOutput& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_cellArn;
147
148 Aws::String m_cellName;
149
151
152 Aws::Vector<Aws::String> m_parentReadinessScopes;
153
155 bool m_cellArnHasBeenSet = false;
156 bool m_cellNameHasBeenSet = false;
157 bool m_cellsHasBeenSet = false;
158 bool m_parentReadinessScopesHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Route53RecoveryReadiness
164} // namespace Aws
CellOutput & WithParentReadinessScopes(ParentReadinessScopesT &&value)
Definition CellOutput.h:110
AWS_ROUTE53RECOVERYREADINESS_API CellOutput()=default
AWS_ROUTE53RECOVERYREADINESS_API CellOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RECOVERYREADINESS_API CellOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetCells() const
Definition CellOutput.h:76
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
CellOutput & WithCellArn(CellArnT &&value)
Definition CellOutput.h:48
CellOutput & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition CellOutput.h:139
CellOutput & WithCellName(CellNameT &&value)
Definition CellOutput.h:66
void SetParentReadinessScopes(ParentReadinessScopesT &&value)
Definition CellOutput.h:105
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition CellOutput.h:126
CellOutput & AddParentReadinessScopes(ParentReadinessScopesT &&value)
Definition CellOutput.h:115
const Aws::Vector< Aws::String > & GetParentReadinessScopes() const
Definition CellOutput.h:102
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
Aws::Utils::Json::JsonValue JsonValue