AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceToImport.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
30 public:
31 AWS_CLOUDFORMATION_API ResourceToImport() = default;
32 AWS_CLOUDFORMATION_API ResourceToImport(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFORMATION_API ResourceToImport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
46 inline const Aws::String& GetResourceType() const { return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 template <typename ResourceTypeT = Aws::String>
49 void SetResourceType(ResourceTypeT&& value) {
50 m_resourceTypeHasBeenSet = true;
51 m_resourceType = std::forward<ResourceTypeT>(value);
52 }
53 template <typename ResourceTypeT = Aws::String>
54 ResourceToImport& WithResourceType(ResourceTypeT&& value) {
55 SetResourceType(std::forward<ResourceTypeT>(value));
56 return *this;
57 }
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) {
68 m_logicalResourceIdHasBeenSet = true;
69 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
70 }
71 template <typename LogicalResourceIdT = Aws::String>
72 ResourceToImport& WithLogicalResourceId(LogicalResourceIdT&& value) {
73 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
74 return *this;
75 }
77
79
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) {
89 m_resourceIdentifierHasBeenSet = true;
90 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
91 }
92 template <typename ResourceIdentifierT = Aws::Map<Aws::String, Aws::String>>
93 ResourceToImport& WithResourceIdentifier(ResourceIdentifierT&& value) {
94 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
95 return *this;
96 }
97 template <typename ResourceIdentifierKeyT = Aws::String, typename ResourceIdentifierValueT = Aws::String>
98 ResourceToImport& AddResourceIdentifier(ResourceIdentifierKeyT&& key, ResourceIdentifierValueT&& value) {
99 m_resourceIdentifierHasBeenSet = true;
100 m_resourceIdentifier.emplace(std::forward<ResourceIdentifierKeyT>(key), std::forward<ResourceIdentifierValueT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_resourceType;
106
107 Aws::String m_logicalResourceId;
108
109 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
110 bool m_resourceTypeHasBeenSet = false;
111 bool m_logicalResourceIdHasBeenSet = false;
112 bool m_resourceIdentifierHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace CloudFormation
117} // 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