AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
55 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
56 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
57 inline ResourceToImport& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
58 inline ResourceToImport& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
59 inline ResourceToImport& WithResourceType(const char* value) { SetResourceType(value); return *this;}
61
63
66 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
67 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
68 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
69 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
70 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
71 inline ResourceToImport& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
72 inline ResourceToImport& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
73 inline ResourceToImport& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
75
77
83 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const{ return m_resourceIdentifier; }
84 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
85 inline void SetResourceIdentifier(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
86 inline void SetResourceIdentifier(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
89 inline ResourceToImport& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
90 inline ResourceToImport& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
91 inline ResourceToImport& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
92 inline ResourceToImport& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; }
93 inline ResourceToImport& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
94 inline ResourceToImport& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
95 inline ResourceToImport& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_resourceType;
100 bool m_resourceTypeHasBeenSet = false;
101
102 Aws::String m_logicalResourceId;
103 bool m_logicalResourceIdHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
106 bool m_resourceIdentifierHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudFormation
111} // namespace Aws
ResourceToImport & AddResourceIdentifier(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
ResourceToImport & WithLogicalResourceId(const char *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
ResourceToImport & AddResourceIdentifier(const Aws::String &key, const Aws::String &value)
ResourceToImport & AddResourceIdentifier(const Aws::String &key, Aws::String &&value)
AWS_CLOUDFORMATION_API ResourceToImport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API ResourceToImport(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetLogicalResourceId() const
ResourceToImport & AddResourceIdentifier(Aws::String &&key, const Aws::String &value)
ResourceToImport & WithResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceToImport & WithResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
ResourceToImport & AddResourceIdentifier(Aws::String &&key, const char *value)
ResourceToImport & AddResourceIdentifier(const char *key, const char *value)
void SetLogicalResourceId(const Aws::String &value)
ResourceToImport & AddResourceIdentifier(const char *key, Aws::String &&value)
ResourceToImport & WithResourceType(Aws::String &&value)
void SetResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ResourceToImport & WithLogicalResourceId(const Aws::String &value)
ResourceToImport & WithLogicalResourceId(Aws::String &&value)
ResourceToImport & WithResourceType(const char *value)
ResourceToImport & WithResourceType(const Aws::String &value)
void SetResourceType(const Aws::String &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