AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/GeneratedTemplateResourceStatus.h>
9#include <aws/cloudformation/model/WarningDetail.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation {
24namespace Model {
25
33 public:
34 AWS_CLOUDFORMATION_API ResourceDetail() = default;
35 AWS_CLOUDFORMATION_API ResourceDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API ResourceDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
49 inline const Aws::String& GetResourceType() const { return m_resourceType; }
50 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
51 template <typename ResourceTypeT = Aws::String>
52 void SetResourceType(ResourceTypeT&& value) {
53 m_resourceTypeHasBeenSet = true;
54 m_resourceType = std::forward<ResourceTypeT>(value);
55 }
56 template <typename ResourceTypeT = Aws::String>
57 ResourceDetail& WithResourceType(ResourceTypeT&& value) {
58 SetResourceType(std::forward<ResourceTypeT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
68 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
69 template <typename LogicalResourceIdT = Aws::String>
70 void SetLogicalResourceId(LogicalResourceIdT&& value) {
71 m_logicalResourceIdHasBeenSet = true;
72 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
73 }
74 template <typename LogicalResourceIdT = Aws::String>
75 ResourceDetail& WithLogicalResourceId(LogicalResourceIdT&& value) {
76 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
77 return *this;
78 }
80
82
94 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const { return m_resourceIdentifier; }
95 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
96 template <typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
97 void SetResourceIdentifier(ResourceIdentifierT&& value) {
98 m_resourceIdentifierHasBeenSet = true;
99 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
100 }
101 template <typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
102 ResourceDetail& WithResourceIdentifier(ResourceIdentifierT&& value) {
103 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
104 return *this;
105 }
106 template <typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
107 ResourceDetail& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
108 m_resourceIdentifierHasBeenSet = true;
109 m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value));
110 return *this;
111 }
113
115
122 inline GeneratedTemplateResourceStatus GetResourceStatus() const { return m_resourceStatus; }
123 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
125 m_resourceStatusHasBeenSet = true;
126 m_resourceStatus = value;
127 }
129 SetResourceStatus(value);
130 return *this;
131 }
133
135
139 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
140 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
141 template <typename ResourceStatusReasonT = Aws::String>
142 void SetResourceStatusReason(ResourceStatusReasonT&& value) {
143 m_resourceStatusReasonHasBeenSet = true;
144 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
145 }
146 template <typename ResourceStatusReasonT = Aws::String>
147 ResourceDetail& WithResourceStatusReason(ResourceStatusReasonT&& value) {
148 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<WarningDetail>& GetWarnings() const { return m_warnings; }
158 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
159 template <typename WarningsT = Aws::Vector<WarningDetail>>
160 void SetWarnings(WarningsT&& value) {
161 m_warningsHasBeenSet = true;
162 m_warnings = std::forward<WarningsT>(value);
163 }
164 template <typename WarningsT = Aws::Vector<WarningDetail>>
165 ResourceDetail& WithWarnings(WarningsT&& value) {
166 SetWarnings(std::forward<WarningsT>(value));
167 return *this;
168 }
169 template <typename WarningsT = WarningDetail>
170 ResourceDetail& AddWarnings(WarningsT&& value) {
171 m_warningsHasBeenSet = true;
172 m_warnings.emplace_back(std::forward<WarningsT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_resourceType;
178
179 Aws::String m_logicalResourceId;
180
181 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
182
184
185 Aws::String m_resourceStatusReason;
186
188 bool m_resourceTypeHasBeenSet = false;
189 bool m_logicalResourceIdHasBeenSet = false;
190 bool m_resourceIdentifierHasBeenSet = false;
191 bool m_resourceStatusHasBeenSet = false;
192 bool m_resourceStatusReasonHasBeenSet = false;
193 bool m_warningsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace CloudFormation
198} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceDetail & AddResourceIdentifier(ResourceIdentifierKeyT &&key, ResourceIdentifierValueT &&value)
ResourceDetail & WithResourceIdentifier(ResourceIdentifierT &&value)
GeneratedTemplateResourceStatus GetResourceStatus() const
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
const Aws::String & GetResourceType() const
const Aws::String & GetResourceStatusReason() const
ResourceDetail & WithResourceStatusReason(ResourceStatusReasonT &&value)
const Aws::Vector< WarningDetail > & GetWarnings() const
AWS_CLOUDFORMATION_API ResourceDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceDetail & WithLogicalResourceId(LogicalResourceIdT &&value)
ResourceDetail & WithWarnings(WarningsT &&value)
void SetResourceType(ResourceTypeT &&value)
ResourceDetail & WithResourceType(ResourceTypeT &&value)
void SetResourceStatusReason(ResourceStatusReasonT &&value)
void SetResourceStatus(GeneratedTemplateResourceStatus value)
ResourceDetail & WithResourceStatus(GeneratedTemplateResourceStatus value)
ResourceDetail & AddWarnings(WarningsT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API ResourceDetail()=default
void SetLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API ResourceDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceIdentifier(ResourceIdentifierT &&value)
const Aws::String & GetLogicalResourceId() 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::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector