AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScannedResource.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 ScannedResource();
37 AWS_CLOUDFORMATION_API ScannedResource(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API ScannedResource& 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 ScannedResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
58 inline ScannedResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
59 inline ScannedResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
61
63
74 inline const Aws::Map<Aws::String, Aws::String>& GetResourceIdentifier() const{ return m_resourceIdentifier; }
75 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
76 inline void SetResourceIdentifier(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
77 inline void SetResourceIdentifier(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
80 inline ScannedResource& AddResourceIdentifier(const Aws::String& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
81 inline ScannedResource& AddResourceIdentifier(Aws::String&& key, const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
82 inline ScannedResource& AddResourceIdentifier(const Aws::String& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
83 inline ScannedResource& AddResourceIdentifier(Aws::String&& key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), std::move(value)); return *this; }
84 inline ScannedResource& AddResourceIdentifier(const char* key, Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, std::move(value)); return *this; }
85 inline ScannedResource& AddResourceIdentifier(Aws::String&& key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(std::move(key), value); return *this; }
86 inline ScannedResource& AddResourceIdentifier(const char* key, const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.emplace(key, value); return *this; }
88
90
93 inline bool GetManagedByStack() const{ return m_managedByStack; }
94 inline bool ManagedByStackHasBeenSet() const { return m_managedByStackHasBeenSet; }
95 inline void SetManagedByStack(bool value) { m_managedByStackHasBeenSet = true; m_managedByStack = value; }
96 inline ScannedResource& WithManagedByStack(bool value) { SetManagedByStack(value); return *this;}
98 private:
99
100 Aws::String m_resourceType;
101 bool m_resourceTypeHasBeenSet = false;
102
103 Aws::Map<Aws::String, Aws::String> m_resourceIdentifier;
104 bool m_resourceIdentifierHasBeenSet = false;
105
106 bool m_managedByStack;
107 bool m_managedByStackHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CloudFormation
112} // namespace Aws
AWS_CLOUDFORMATION_API ScannedResource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScannedResource & AddResourceIdentifier(const Aws::String &key, const Aws::String &value)
void SetResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
ScannedResource & WithManagedByStack(bool value)
ScannedResource & WithResourceType(const char *value)
ScannedResource & AddResourceIdentifier(Aws::String &&key, Aws::String &&value)
ScannedResource & AddResourceIdentifier(Aws::String &&key, const Aws::String &value)
AWS_CLOUDFORMATION_API ScannedResource()
void SetResourceType(const Aws::String &value)
ScannedResource & AddResourceIdentifier(const Aws::String &key, Aws::String &&value)
AWS_CLOUDFORMATION_API ScannedResource(const Aws::Utils::Xml::XmlNode &xmlNode)
ScannedResource & AddResourceIdentifier(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetResourceIdentifier() const
ScannedResource & WithResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ScannedResource & AddResourceIdentifier(const char *key, const char *value)
ScannedResource & WithResourceIdentifier(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetResourceType() const
ScannedResource & WithResourceType(const Aws::String &value)
void SetResourceIdentifier(Aws::Map< Aws::String, Aws::String > &&value)
ScannedResource & AddResourceIdentifier(const char *key, Aws::String &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScannedResource & WithResourceType(Aws::String &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) 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