AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceDefinition.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.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
31 public:
32 AWS_CLOUDFORMATION_API ResourceDefinition() = default;
33 AWS_CLOUDFORMATION_API ResourceDefinition(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFORMATION_API ResourceDefinition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
47 inline const Aws::String& GetResourceType() const { return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 template <typename ResourceTypeT = Aws::String>
50 void SetResourceType(ResourceTypeT&& value) {
51 m_resourceTypeHasBeenSet = true;
52 m_resourceType = std::forward<ResourceTypeT>(value);
53 }
54 template <typename ResourceTypeT = Aws::String>
55 ResourceDefinition& WithResourceType(ResourceTypeT&& value) {
56 SetResourceType(std::forward<ResourceTypeT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
66 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
67 template <typename LogicalResourceIdT = Aws::String>
68 void SetLogicalResourceId(LogicalResourceIdT&& value) {
69 m_logicalResourceIdHasBeenSet = true;
70 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
71 }
72 template <typename LogicalResourceIdT = Aws::String>
73 ResourceDefinition& WithLogicalResourceId(LogicalResourceIdT&& value) {
74 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
75 return *this;
76 }
78
80
91 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const { return m_resourceIdentifier; }
92 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
93 template <typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
94 void SetResourceIdentifier(ResourceIdentifierT&& value) {
95 m_resourceIdentifierHasBeenSet = true;
96 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
97 }
98 template <typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
99 ResourceDefinition& WithResourceIdentifier(ResourceIdentifierT&& value) {
100 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
101 return *this;
102 }
103 template <typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
104 ResourceDefinition& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
105 m_resourceIdentifierHasBeenSet = true;
106 m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_resourceType;
112
113 Aws::String m_logicalResourceId;
114
115 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
116 bool m_resourceTypeHasBeenSet = false;
117 bool m_logicalResourceIdHasBeenSet = false;
118 bool m_resourceIdentifierHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CloudFormation
123} // namespace Aws
AWS_CLOUDFORMATION_API ResourceDefinition(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLogicalResourceId(LogicalResourceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
AWS_CLOUDFORMATION_API ResourceDefinition()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceIdentifier(ResourceIdentifierT &&value)
ResourceDefinition & WithResourceType(ResourceTypeT &&value)
AWS_CLOUDFORMATION_API ResourceDefinition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceDefinition & AddResourceIdentifier(ResourceIdentifierKeyT &&key, ResourceIdentifierValueT &&value)
ResourceDefinition & WithLogicalResourceId(LogicalResourceIdT &&value)
ResourceDefinition & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) 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