AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceStatement.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API ResourceStatement();
36 AWS_EC2_API ResourceStatement(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
48 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
49 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
50 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
51 inline ResourceStatement& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
52 inline ResourceStatement& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
53 inline ResourceStatement& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
54 inline ResourceStatement& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
55 inline ResourceStatement& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
63 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
64 inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
65 inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
67 inline ResourceStatement& WithResourceTypes(Aws::Vector<Aws::String>&& value) { SetResourceTypes(std::move(value)); return *this;}
68 inline ResourceStatement& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
69 inline ResourceStatement& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
70 inline ResourceStatement& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
72 private:
73
74 Aws::Vector<Aws::String> m_resources;
75 bool m_resourcesHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_resourceTypes;
78 bool m_resourceTypesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
ResourceStatement & WithResourceTypes(const Aws::Vector< Aws::String > &value)
ResourceStatement & AddResourceTypes(Aws::String &&value)
ResourceStatement & WithResources(const Aws::Vector< Aws::String > &value)
ResourceStatement & AddResourceTypes(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetResources() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResources(Aws::Vector< Aws::String > &&value)
ResourceStatement & WithResources(Aws::Vector< Aws::String > &&value)
ResourceStatement & AddResources(Aws::String &&value)
ResourceStatement & AddResources(const Aws::String &value)
void SetResourceTypes(Aws::Vector< Aws::String > &&value)
ResourceStatement & AddResources(const char *value)
ResourceStatement & AddResourceTypes(const Aws::String &value)
void SetResourceTypes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
void SetResources(const Aws::Vector< Aws::String > &value)
AWS_EC2_API ResourceStatement(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ResourceStatement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceStatement & WithResourceTypes(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream