AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/cloudformation/model/GeneratedTemplateResourceStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/cloudformation/model/WarningDetail.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CLOUDFORMATION_API ResourceDetail() = default;
40 AWS_CLOUDFORMATION_API ResourceDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFORMATION_API ResourceDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
55 inline const Aws::String& GetResourceType() const { return m_resourceType; }
56 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
57 template<typename ResourceTypeT = Aws::String>
58 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
59 template<typename ResourceTypeT = Aws::String>
60 ResourceDetail& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
71 template<typename LogicalResourceIdT = Aws::String>
72 ResourceDetail& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
74
76
88 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const { return m_resourceIdentifier; }
89 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
90 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
91 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
92 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
93 ResourceDetail& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
94 template<typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
95 ResourceDetail& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
96 m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value)); return *this;
97 }
99
101
108 inline GeneratedTemplateResourceStatus GetResourceStatus() const { return m_resourceStatus; }
109 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
110 inline void SetResourceStatus(GeneratedTemplateResourceStatus value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
113
115
119 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
120 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
121 template<typename ResourceStatusReasonT = Aws::String>
122 void SetResourceStatusReason(ResourceStatusReasonT&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value); }
123 template<typename ResourceStatusReasonT = Aws::String>
124 ResourceDetail& WithResourceStatusReason(ResourceStatusReasonT&& value) { SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value)); return *this;}
126
128
131 inline const Aws::Vector<WarningDetail>& GetWarnings() const { return m_warnings; }
132 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
133 template<typename WarningsT = Aws::Vector<WarningDetail>>
134 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
135 template<typename WarningsT = Aws::Vector<WarningDetail>>
136 ResourceDetail& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
137 template<typename WarningsT = WarningDetail>
138 ResourceDetail& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
140 private:
141
142 Aws::String m_resourceType;
143 bool m_resourceTypeHasBeenSet = false;
144
145 Aws::String m_logicalResourceId;
146 bool m_logicalResourceIdHasBeenSet = false;
147
148 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
149 bool m_resourceIdentifierHasBeenSet = false;
150
152 bool m_resourceStatusHasBeenSet = false;
153
154 Aws::String m_resourceStatusReason;
155 bool m_resourceStatusReasonHasBeenSet = false;
156
158 bool m_warningsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CloudFormation
163} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream