AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
UpdateResourceSetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
12#include <aws/route53-recovery-readiness/model/Resource.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Route53RecoveryReadiness {
26namespace Model {
28 public:
29 AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetResult() = default;
31 AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetResult& operator=(
33
35
38 inline const Aws::String& GetResourceSetArn() const { return m_resourceSetArn; }
39 template <typename ResourceSetArnT = Aws::String>
40 void SetResourceSetArn(ResourceSetArnT&& value) {
41 m_resourceSetArnHasBeenSet = true;
42 m_resourceSetArn = std::forward<ResourceSetArnT>(value);
43 }
44 template <typename ResourceSetArnT = Aws::String>
45 UpdateResourceSetResult& WithResourceSetArn(ResourceSetArnT&& value) {
46 SetResourceSetArn(std::forward<ResourceSetArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetResourceSetName() const { return m_resourceSetName; }
56 template <typename ResourceSetNameT = Aws::String>
57 void SetResourceSetName(ResourceSetNameT&& value) {
58 m_resourceSetNameHasBeenSet = true;
59 m_resourceSetName = std::forward<ResourceSetNameT>(value);
60 }
61 template <typename ResourceSetNameT = Aws::String>
62 UpdateResourceSetResult& WithResourceSetName(ResourceSetNameT&& value) {
63 SetResourceSetName(std::forward<ResourceSetNameT>(value));
64 return *this;
65 }
67
69
81 inline const Aws::String& GetResourceSetType() const { return m_resourceSetType; }
82 template <typename ResourceSetTypeT = Aws::String>
83 void SetResourceSetType(ResourceSetTypeT&& value) {
84 m_resourceSetTypeHasBeenSet = true;
85 m_resourceSetType = std::forward<ResourceSetTypeT>(value);
86 }
87 template <typename ResourceSetTypeT = Aws::String>
88 UpdateResourceSetResult& WithResourceSetType(ResourceSetTypeT&& value) {
89 SetResourceSetType(std::forward<ResourceSetTypeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
99 template <typename ResourcesT = Aws::Vector<Resource>>
100 void SetResources(ResourcesT&& value) {
101 m_resourcesHasBeenSet = true;
102 m_resources = std::forward<ResourcesT>(value);
103 }
104 template <typename ResourcesT = Aws::Vector<Resource>>
106 SetResources(std::forward<ResourcesT>(value));
107 return *this;
108 }
109 template <typename ResourcesT = Resource>
111 m_resourcesHasBeenSet = true;
112 m_resources.emplace_back(std::forward<ResourcesT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 UpdateResourceSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template <typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) {
143 m_requestIdHasBeenSet = true;
144 m_requestId = std::forward<RequestIdT>(value);
145 }
146 template <typename RequestIdT = Aws::String>
148 SetRequestId(std::forward<RequestIdT>(value));
149 return *this;
150 }
152 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
153
154 private:
155 Aws::String m_resourceSetArn;
156
157 Aws::String m_resourceSetName;
158
159 Aws::String m_resourceSetType;
160
161 Aws::Vector<Resource> m_resources;
162
164
165 Aws::String m_requestId;
166 Aws::Http::HttpResponseCode m_HttpResponseCode;
167 bool m_resourceSetArnHasBeenSet = false;
168 bool m_resourceSetNameHasBeenSet = false;
169 bool m_resourceSetTypeHasBeenSet = false;
170 bool m_resourcesHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172 bool m_requestIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Route53RecoveryReadiness
177} // namespace Aws
UpdateResourceSetResult & WithResourceSetName(ResourceSetNameT &&value)
UpdateResourceSetResult & WithResourceSetType(ResourceSetTypeT &&value)
AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetResult()=default
UpdateResourceSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateResourceSetResult & WithResources(ResourcesT &&value)
AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateResourceSetResult & WithResourceSetArn(ResourceSetArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateResourceSetResult & WithRequestId(RequestIdT &&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