AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
ResourceSetOutput.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#include <aws/route53-recovery-readiness/model/Resource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53RecoveryReadiness {
23namespace Model {
24
31 public:
32 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput() = default;
33 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetResourceSetArn() const { return m_resourceSetArn; }
42 inline bool ResourceSetArnHasBeenSet() const { return m_resourceSetArnHasBeenSet; }
43 template <typename ResourceSetArnT = Aws::String>
44 void SetResourceSetArn(ResourceSetArnT&& value) {
45 m_resourceSetArnHasBeenSet = true;
46 m_resourceSetArn = std::forward<ResourceSetArnT>(value);
47 }
48 template <typename ResourceSetArnT = Aws::String>
49 ResourceSetOutput& WithResourceSetArn(ResourceSetArnT&& value) {
50 SetResourceSetArn(std::forward<ResourceSetArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetResourceSetName() const { return m_resourceSetName; }
60 inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; }
61 template <typename ResourceSetNameT = Aws::String>
62 void SetResourceSetName(ResourceSetNameT&& value) {
63 m_resourceSetNameHasBeenSet = true;
64 m_resourceSetName = std::forward<ResourceSetNameT>(value);
65 }
66 template <typename ResourceSetNameT = Aws::String>
67 ResourceSetOutput& WithResourceSetName(ResourceSetNameT&& value) {
68 SetResourceSetName(std::forward<ResourceSetNameT>(value));
69 return *this;
70 }
72
74
86 inline const Aws::String& GetResourceSetType() const { return m_resourceSetType; }
87 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
88 template <typename ResourceSetTypeT = Aws::String>
89 void SetResourceSetType(ResourceSetTypeT&& value) {
90 m_resourceSetTypeHasBeenSet = true;
91 m_resourceSetType = std::forward<ResourceSetTypeT>(value);
92 }
93 template <typename ResourceSetTypeT = Aws::String>
94 ResourceSetOutput& WithResourceSetType(ResourceSetTypeT&& value) {
95 SetResourceSetType(std::forward<ResourceSetTypeT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
105 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
106 template <typename ResourcesT = Aws::Vector<Resource>>
107 void SetResources(ResourcesT&& value) {
108 m_resourcesHasBeenSet = true;
109 m_resources = std::forward<ResourcesT>(value);
110 }
111 template <typename ResourcesT = Aws::Vector<Resource>>
112 ResourceSetOutput& WithResources(ResourcesT&& value) {
113 SetResources(std::forward<ResourcesT>(value));
114 return *this;
115 }
116 template <typename ResourcesT = Resource>
117 ResourceSetOutput& AddResources(ResourcesT&& value) {
118 m_resourcesHasBeenSet = true;
119 m_resources.emplace_back(std::forward<ResourcesT>(value));
120 return *this;
121 }
123
125
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 ResourceSetOutput& WithTags(TagsT&& value) {
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 ResourceSetOutput& 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_resourceSetArn;
147
148 Aws::String m_resourceSetName;
149
150 Aws::String m_resourceSetType;
151
152 Aws::Vector<Resource> m_resources;
153
155 bool m_resourceSetArnHasBeenSet = false;
156 bool m_resourceSetNameHasBeenSet = false;
157 bool m_resourceSetTypeHasBeenSet = false;
158 bool m_resourcesHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Route53RecoveryReadiness
164} // namespace Aws
const Aws::Vector< Resource > & GetResources() const
ResourceSetOutput & WithResourceSetArn(ResourceSetArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ResourceSetOutput & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSetOutput & WithResourceSetName(ResourceSetNameT &&value)
ResourceSetOutput & WithResourceSetType(ResourceSetTypeT &&value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput(Aws::Utils::Json::JsonView jsonValue)
ResourceSetOutput & WithResources(ResourcesT &&value)
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput()=default
AWS_ROUTE53RECOVERYREADINESS_API ResourceSetOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSetOutput & AddResources(ResourcesT &&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
Aws::Utils::Json::JsonValue JsonValue