AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceIdentifierSummary.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/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFormation {
21namespace Model {
22
32 public:
33 AWS_CLOUDFORMATION_API ResourceIdentifierSummary() = default;
34 AWS_CLOUDFORMATION_API ResourceIdentifierSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFORMATION_API ResourceIdentifierSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::String& GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 template <typename ResourceTypeT = Aws::String>
48 void SetResourceType(ResourceTypeT&& value) {
49 m_resourceTypeHasBeenSet = true;
50 m_resourceType = std::forward<ResourceTypeT>(value);
51 }
52 template <typename ResourceTypeT = Aws::String>
54 SetResourceType(std::forward<ResourceTypeT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Aws::String>& GetLogicalResourceIds() const { return m_logicalResourceIds; }
65 inline bool LogicalResourceIdsHasBeenSet() const { return m_logicalResourceIdsHasBeenSet; }
66 template <typename LogicalResourceIdsT = Aws::Vector<Aws::String>>
67 void SetLogicalResourceIds(LogicalResourceIdsT&& value) {
68 m_logicalResourceIdsHasBeenSet = true;
69 m_logicalResourceIds = std::forward<LogicalResourceIdsT>(value);
70 }
71 template <typename LogicalResourceIdsT = Aws::Vector<Aws::String>>
72 ResourceIdentifierSummary& WithLogicalResourceIds(LogicalResourceIdsT&& value) {
73 SetLogicalResourceIds(std::forward<LogicalResourceIdsT>(value));
74 return *this;
75 }
76 template <typename LogicalResourceIdsT = Aws::String>
77 ResourceIdentifierSummary& AddLogicalResourceIds(LogicalResourceIdsT&& value) {
78 m_logicalResourceIdsHasBeenSet = true;
79 m_logicalResourceIds.emplace_back(std::forward<LogicalResourceIdsT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::Vector<Aws::String>& GetResourceIdentifiers() const { return m_resourceIdentifiers; }
91 inline bool ResourceIdentifiersHasBeenSet() const { return m_resourceIdentifiersHasBeenSet; }
92 template <typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
93 void SetResourceIdentifiers(ResourceIdentifiersT&& value) {
94 m_resourceIdentifiersHasBeenSet = true;
95 m_resourceIdentifiers = std::forward<ResourceIdentifiersT>(value);
96 }
97 template <typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
98 ResourceIdentifierSummary& WithResourceIdentifiers(ResourceIdentifiersT&& value) {
99 SetResourceIdentifiers(std::forward<ResourceIdentifiersT>(value));
100 return *this;
101 }
102 template <typename ResourceIdentifiersT = Aws::String>
103 ResourceIdentifierSummary& AddResourceIdentifiers(ResourceIdentifiersT&& value) {
104 m_resourceIdentifiersHasBeenSet = true;
105 m_resourceIdentifiers.emplace_back(std::forward<ResourceIdentifiersT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_resourceType;
111
112 Aws::Vector<Aws::String> m_logicalResourceIds;
113
114 Aws::Vector<Aws::String> m_resourceIdentifiers;
115 bool m_resourceTypeHasBeenSet = false;
116 bool m_logicalResourceIdsHasBeenSet = false;
117 bool m_resourceIdentifiersHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudFormation
122} // namespace Aws
ResourceIdentifierSummary & WithResourceType(ResourceTypeT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API ResourceIdentifierSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceIdentifierSummary & WithLogicalResourceIds(LogicalResourceIdsT &&value)
ResourceIdentifierSummary & WithResourceIdentifiers(ResourceIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetLogicalResourceIds() const
AWS_CLOUDFORMATION_API ResourceIdentifierSummary()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ResourceIdentifierSummary & AddLogicalResourceIds(LogicalResourceIdsT &&value)
AWS_CLOUDFORMATION_API ResourceIdentifierSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetResourceIdentifiers() const
ResourceIdentifierSummary & AddResourceIdentifiers(ResourceIdentifiersT &&value)
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