AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
56 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
57 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
58 inline ResourceDefinition& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
59 inline ResourceDefinition& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
60 inline ResourceDefinition& WithResourceType(const char* value) { SetResourceType(value); return *this;}
62
64
67 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
68 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
69 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
70 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
71 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
72 inline ResourceDefinition& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
73 inline ResourceDefinition& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
74 inline ResourceDefinition& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
76
78
89 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const{ return m_resourceIdentifier; }
90 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
91 inline void SetResourceIdentifier(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
92 inline void SetResourceIdentifier(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
95 inline ResourceDefinition& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
96 inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
97 inline ResourceDefinition& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
98 inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; }
99 inline ResourceDefinition& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
100 inline ResourceDefinition& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
101 inline ResourceDefinition& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
103 private:
104
105 Aws::String m_resourceType;
106 bool m_resourceTypeHasBeenSet = false;
107
108 Aws::String m_logicalResourceId;
109 bool m_logicalResourceIdHasBeenSet = false;
110
111 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
112 bool m_resourceIdentifierHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudFormation
117} // namespace Aws
void SetLogicalResourceId(const Aws::String &value)
AWS_CLOUDFORMATION_API ResourceDefinition(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceDefinition & WithResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceDefinition & WithResourceType(const char *value)
ResourceDefinition & AddResourceIdentifier(const char *key, const char *value)
ResourceDefinition & AddResourceIdentifier(const Aws::String &key, const Aws::String &value)
ResourceDefinition & WithLogicalResourceId(Aws::String &&value)
ResourceDefinition & AddResourceIdentifier(Aws::String &&key, Aws::String &&value)
void SetResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
ResourceDefinition & WithLogicalResourceId(const char *value)
ResourceDefinition & WithResourceType(const Aws::String &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ResourceDefinition & WithResourceType(Aws::String &&value)
ResourceDefinition & WithLogicalResourceId(const Aws::String &value)
ResourceDefinition & WithResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
ResourceDefinition & AddResourceIdentifier(Aws::String &&key, const Aws::String &value)
ResourceDefinition & AddResourceIdentifier(const Aws::String &key, Aws::String &&value)
AWS_CLOUDFORMATION_API ResourceDefinition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceDefinition & AddResourceIdentifier(Aws::String &&key, const char *value)
ResourceDefinition & AddResourceIdentifier(const char *key, Aws::String &&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