AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessScopePath.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/PathStatement.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ThroughResourcesStatement.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API AccessScopePath();
37 AWS_EC2_API AccessScopePath(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const PathStatement& GetSource() const{ return m_source; }
49 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
50 inline void SetSource(const PathStatement& value) { m_sourceHasBeenSet = true; m_source = value; }
51 inline void SetSource(PathStatement&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
52 inline AccessScopePath& WithSource(const PathStatement& value) { SetSource(value); return *this;}
53 inline AccessScopePath& WithSource(PathStatement&& value) { SetSource(std::move(value)); return *this;}
55
57
60 inline const PathStatement& GetDestination() const{ return m_destination; }
61 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
62 inline void SetDestination(const PathStatement& value) { m_destinationHasBeenSet = true; m_destination = value; }
63 inline void SetDestination(PathStatement&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
64 inline AccessScopePath& WithDestination(const PathStatement& value) { SetDestination(value); return *this;}
65 inline AccessScopePath& WithDestination(PathStatement&& value) { SetDestination(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<ThroughResourcesStatement>& GetThroughResources() const{ return m_throughResources; }
73 inline bool ThroughResourcesHasBeenSet() const { return m_throughResourcesHasBeenSet; }
74 inline void SetThroughResources(const Aws::Vector<ThroughResourcesStatement>& value) { m_throughResourcesHasBeenSet = true; m_throughResources = value; }
75 inline void SetThroughResources(Aws::Vector<ThroughResourcesStatement>&& value) { m_throughResourcesHasBeenSet = true; m_throughResources = std::move(value); }
78 inline AccessScopePath& AddThroughResources(const ThroughResourcesStatement& value) { m_throughResourcesHasBeenSet = true; m_throughResources.push_back(value); return *this; }
79 inline AccessScopePath& AddThroughResources(ThroughResourcesStatement&& value) { m_throughResourcesHasBeenSet = true; m_throughResources.push_back(std::move(value)); return *this; }
81 private:
82
83 PathStatement m_source;
84 bool m_sourceHasBeenSet = false;
85
86 PathStatement m_destination;
87 bool m_destinationHasBeenSet = false;
88
90 bool m_throughResourcesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
AWS_EC2_API AccessScopePath & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDestination(const PathStatement &value)
AccessScopePath & WithThroughResources(Aws::Vector< ThroughResourcesStatement > &&value)
AccessScopePath & WithSource(const PathStatement &value)
void SetThroughResources(Aws::Vector< ThroughResourcesStatement > &&value)
AccessScopePath & WithThroughResources(const Aws::Vector< ThroughResourcesStatement > &value)
void SetThroughResources(const Aws::Vector< ThroughResourcesStatement > &value)
void SetSource(PathStatement &&value)
void SetDestination(PathStatement &&value)
const PathStatement & GetSource() const
AccessScopePath & WithDestination(const PathStatement &value)
const Aws::Vector< ThroughResourcesStatement > & GetThroughResources() const
AccessScopePath & WithDestination(PathStatement &&value)
void SetSource(const PathStatement &value)
const PathStatement & GetDestination() const
AccessScopePath & AddThroughResources(ThroughResourcesStatement &&value)
AccessScopePath & WithSource(PathStatement &&value)
AccessScopePath & AddThroughResources(const ThroughResourcesStatement &value)
AWS_EC2_API AccessScopePath(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream