AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
RecoveryGroupOutput.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
31 public:
32 AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput() = default;
33 AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
45 m_cellsHasBeenSet = true;
46 m_cells = std::forward<CellsT>(value);
47 }
48 template <typename CellsT = Aws::Vector<Aws::String>>
49 RecoveryGroupOutput& WithCells(CellsT&& value) {
50 SetCells(std::forward<CellsT>(value));
51 return *this;
52 }
53 template <typename CellsT = Aws::String>
54 RecoveryGroupOutput& AddCells(CellsT&& value) {
55 m_cellsHasBeenSet = true;
56 m_cells.emplace_back(std::forward<CellsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetRecoveryGroupArn() const { return m_recoveryGroupArn; }
66 inline bool RecoveryGroupArnHasBeenSet() const { return m_recoveryGroupArnHasBeenSet; }
67 template <typename RecoveryGroupArnT = Aws::String>
68 void SetRecoveryGroupArn(RecoveryGroupArnT&& value) {
69 m_recoveryGroupArnHasBeenSet = true;
70 m_recoveryGroupArn = std::forward<RecoveryGroupArnT>(value);
71 }
72 template <typename RecoveryGroupArnT = Aws::String>
73 RecoveryGroupOutput& WithRecoveryGroupArn(RecoveryGroupArnT&& value) {
74 SetRecoveryGroupArn(std::forward<RecoveryGroupArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetRecoveryGroupName() const { return m_recoveryGroupName; }
84 inline bool RecoveryGroupNameHasBeenSet() const { return m_recoveryGroupNameHasBeenSet; }
85 template <typename RecoveryGroupNameT = Aws::String>
86 void SetRecoveryGroupName(RecoveryGroupNameT&& value) {
87 m_recoveryGroupNameHasBeenSet = true;
88 m_recoveryGroupName = std::forward<RecoveryGroupNameT>(value);
89 }
90 template <typename RecoveryGroupNameT = Aws::String>
91 RecoveryGroupOutput& WithRecoveryGroupName(RecoveryGroupNameT&& value) {
92 SetRecoveryGroupName(std::forward<RecoveryGroupNameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 RecoveryGroupOutput& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
117 return *this;
118 }
120 private:
122
123 Aws::String m_recoveryGroupArn;
124
125 Aws::String m_recoveryGroupName;
126
128 bool m_cellsHasBeenSet = false;
129 bool m_recoveryGroupArnHasBeenSet = false;
130 bool m_recoveryGroupNameHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Route53RecoveryReadiness
136} // namespace Aws
AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryGroupOutput & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput()=default
AWS_ROUTE53RECOVERYREADINESS_API RecoveryGroupOutput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetCells() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecoveryGroupOutput & WithRecoveryGroupName(RecoveryGroupNameT &&value)
RecoveryGroupOutput & WithRecoveryGroupArn(RecoveryGroupArnT &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
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