AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceToImport.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
34 {
35 public:
36 AWS_CLOUDFORMATION_API ResourceToImport() = default;
37 AWS_CLOUDFORMATION_API ResourceToImport(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API ResourceToImport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
52 inline const Aws::String& GetResourceType() const { return m_resourceType; }
53 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
54 template<typename ResourceTypeT = Aws::String>
55 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
56 template<typename ResourceTypeT = Aws::String>
57 ResourceToImport& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
59
61
64 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
65 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
66 template<typename LogicalResourceIdT = Aws::String>
67 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
68 template<typename LogicalResourceIdT = Aws::String>
69 ResourceToImport& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
71
73
79 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const { return m_resourceIdentifier; }
80 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
81 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
82 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
83 template<typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
84 ResourceToImport& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
85 template<typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
86 ResourceToImport& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
87 m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_resourceType;
93 bool m_resourceTypeHasBeenSet = false;
94
95 Aws::String m_logicalResourceId;
96 bool m_logicalResourceIdHasBeenSet = false;
97
98 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
99 bool m_resourceIdentifierHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudFormation
104} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
ResourceToImport & AddResourceIdentifier(ResourceIdentifierKeyT &&key, ResourceIdentifierValueT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API ResourceToImport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API ResourceToImport(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLogicalResourceId() const
ResourceToImport & WithLogicalResourceId(LogicalResourceIdT &&value)
void SetResourceIdentifier(ResourceIdentifierT &&value)
AWS_CLOUDFORMATION_API ResourceToImport()=default
ResourceToImport & WithResourceType(ResourceTypeT &&value)
ResourceToImport & WithResourceIdentifier(ResourceIdentifierT &&value)
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