AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceDefinition.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CLOUDFORMATION_API ResourceDefinition() = default;
38 AWS_CLOUDFORMATION_API ResourceDefinition(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFORMATION_API ResourceDefinition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
53 inline const Aws::String& GetResourceType() const { return m_resourceType; }
54 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
55 template<typename ResourceTypeT = Aws::String>
56 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
57 template<typename ResourceTypeT = Aws::String>
58 ResourceDefinition& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
69 template<typename LogicalResourceIdT = Aws::String>
70 ResourceDefinition& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
72
74
85 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const { return m_resourceIdentifier; }
86 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
87 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
88 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
89 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
90 ResourceDefinition& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
91 template<typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
92 ResourceDefinition& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
93 m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value)); return *this;
94 }
96 private:
97
98 Aws::String m_resourceType;
99 bool m_resourceTypeHasBeenSet = false;
100
101 Aws::String m_logicalResourceId;
102 bool m_logicalResourceIdHasBeenSet = false;
103
104 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
105 bool m_resourceIdentifierHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CloudFormation
110} // 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