AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
58 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
59 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
60 inline ResourceDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
61 inline ResourceDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
62 inline ResourceDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;}
64
66
69 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
70 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
71 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
72 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
73 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
74 inline ResourceDetail& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
75 inline ResourceDetail& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
76 inline ResourceDetail& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
78
80
92 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const{ return m_resourceIdentifier; }
93 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
94 inline void SetResourceIdentifier(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
95 inline void SetResourceIdentifier(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
98 inline ResourceDetail& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
99 inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
100 inline ResourceDetail& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
101 inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; }
102 inline ResourceDetail& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
103 inline ResourceDetail& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
104 inline ResourceDetail& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
106
108
115 inline const GeneratedTemplateResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
116 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
117 inline void SetResourceStatus(const GeneratedTemplateResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
118 inline void SetResourceStatus(GeneratedTemplateResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
120 inline ResourceDetail& WithResourceStatus(GeneratedTemplateResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;}
122
124
128 inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; }
129 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
130 inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
131 inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::move(value); }
132 inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); }
133 inline ResourceDetail& WithResourceStatusReason(const Aws::String& value) { SetResourceStatusReason(value); return *this;}
134 inline ResourceDetail& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(std::move(value)); return *this;}
135 inline ResourceDetail& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;}
137
139
142 inline const Aws::Vector<WarningDetail>& GetWarnings() const{ return m_warnings; }
143 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
144 inline void SetWarnings(const Aws::Vector<WarningDetail>& value) { m_warningsHasBeenSet = true; m_warnings = value; }
145 inline void SetWarnings(Aws::Vector<WarningDetail>&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); }
146 inline ResourceDetail& WithWarnings(const Aws::Vector<WarningDetail>& value) { SetWarnings(value); return *this;}
147 inline ResourceDetail& WithWarnings(Aws::Vector<WarningDetail>&& value) { SetWarnings(std::move(value)); return *this;}
148 inline ResourceDetail& AddWarnings(const WarningDetail& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; }
149 inline ResourceDetail& AddWarnings(WarningDetail&& value) { m_warningsHasBeenSet = true; m_warnings.push_back(std::move(value)); return *this; }
151 private:
152
153 Aws::String m_resourceType;
154 bool m_resourceTypeHasBeenSet = false;
155
156 Aws::String m_logicalResourceId;
157 bool m_logicalResourceIdHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
160 bool m_resourceIdentifierHasBeenSet = false;
161
162 GeneratedTemplateResourceStatus m_resourceStatus;
163 bool m_resourceStatusHasBeenSet = false;
164
165 Aws::String m_resourceStatusReason;
166 bool m_resourceStatusReasonHasBeenSet = false;
167
169 bool m_warningsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace CloudFormation
174} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceDetail & WithResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceStatusReason(const char *value)
ResourceDetail & AddResourceIdentifier(const char *key, Aws::String &&value)
void SetResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
void SetLogicalResourceId(Aws::String &&value)
ResourceDetail & WithLogicalResourceId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
ResourceDetail & WithLogicalResourceId(const Aws::String &value)
ResourceDetail & WithResourceStatus(const GeneratedTemplateResourceStatus &value)
const Aws::String & GetResourceType() const
ResourceDetail & WithLogicalResourceId(Aws::String &&value)
const Aws::String & GetResourceStatusReason() const
ResourceDetail & AddWarnings(const WarningDetail &value)
ResourceDetail & WithResourceStatusReason(const Aws::String &value)
ResourceDetail & WithResourceType(const char *value)
const Aws::Vector< WarningDetail > & GetWarnings() const
void SetWarnings(Aws::Vector< WarningDetail > &&value)
void SetWarnings(const Aws::Vector< WarningDetail > &value)
const GeneratedTemplateResourceStatus & GetResourceStatus() const
AWS_CLOUDFORMATION_API ResourceDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API ResourceDetail()
ResourceDetail & AddResourceIdentifier(const char *key, const char *value)
ResourceDetail & AddResourceIdentifier(Aws::String &&key, Aws::String &&value)
void SetResourceStatusReason(const Aws::String &value)
ResourceDetail & AddResourceIdentifier(const Aws::String &key, const Aws::String &value)
void SetResourceStatus(const GeneratedTemplateResourceStatus &value)
ResourceDetail & WithResourceStatus(GeneratedTemplateResourceStatus &&value)
void SetResourceStatusReason(Aws::String &&value)
void SetLogicalResourceId(const Aws::String &value)
ResourceDetail & AddResourceIdentifier(Aws::String &&key, const char *value)
ResourceDetail & WithResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceDetail & WithWarnings(Aws::Vector< WarningDetail > &&value)
ResourceDetail & WithResourceStatusReason(const char *value)
void SetResourceType(const Aws::String &value)
void SetResourceType(Aws::String &&value)
void SetResourceStatus(GeneratedTemplateResourceStatus &&value)
ResourceDetail & WithResourceType(const Aws::String &value)
ResourceDetail & WithResourceType(Aws::String &&value)
ResourceDetail & AddResourceIdentifier(Aws::String &&key, const Aws::String &value)
ResourceDetail & AddResourceIdentifier(const Aws::String &key, Aws::String &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceDetail & WithWarnings(const Aws::Vector< WarningDetail > &value)
ResourceDetail & AddWarnings(WarningDetail &&value)
AWS_CLOUDFORMATION_API ResourceDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceDetail & WithResourceStatusReason(Aws::String &&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