AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessScopePathRequest.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/PathStatementRequest.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ThroughResourcesStatementRequest.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:
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 PathStatementRequest& GetSource() const{ return m_source; }
49 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
50 inline void SetSource(const PathStatementRequest& value) { m_sourceHasBeenSet = true; m_source = value; }
51 inline void SetSource(PathStatementRequest&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
52 inline AccessScopePathRequest& WithSource(const PathStatementRequest& value) { SetSource(value); return *this;}
53 inline AccessScopePathRequest& WithSource(PathStatementRequest&& value) { SetSource(std::move(value)); return *this;}
55
57
60 inline const PathStatementRequest& GetDestination() const{ return m_destination; }
61 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
62 inline void SetDestination(const PathStatementRequest& value) { m_destinationHasBeenSet = true; m_destination = value; }
63 inline void SetDestination(PathStatementRequest&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
64 inline AccessScopePathRequest& WithDestination(const PathStatementRequest& value) { SetDestination(value); return *this;}
65 inline AccessScopePathRequest& WithDestination(PathStatementRequest&& value) { SetDestination(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<ThroughResourcesStatementRequest>& GetThroughResources() const{ return m_throughResources; }
73 inline bool ThroughResourcesHasBeenSet() const { return m_throughResourcesHasBeenSet; }
74 inline void SetThroughResources(const Aws::Vector<ThroughResourcesStatementRequest>& value) { m_throughResourcesHasBeenSet = true; m_throughResources = value; }
75 inline void SetThroughResources(Aws::Vector<ThroughResourcesStatementRequest>&& value) { m_throughResourcesHasBeenSet = true; m_throughResources = std::move(value); }
78 inline AccessScopePathRequest& AddThroughResources(const ThroughResourcesStatementRequest& value) { m_throughResourcesHasBeenSet = true; m_throughResources.push_back(value); return *this; }
79 inline AccessScopePathRequest& AddThroughResources(ThroughResourcesStatementRequest&& value) { m_throughResourcesHasBeenSet = true; m_throughResources.push_back(std::move(value)); return *this; }
81 private:
82
83 PathStatementRequest m_source;
84 bool m_sourceHasBeenSet = false;
85
86 PathStatementRequest m_destination;
87 bool m_destinationHasBeenSet = false;
88
90 bool m_throughResourcesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
const Aws::Vector< ThroughResourcesStatementRequest > & GetThroughResources() const
void SetThroughResources(const Aws::Vector< ThroughResourcesStatementRequest > &value)
AccessScopePathRequest & WithThroughResources(const Aws::Vector< ThroughResourcesStatementRequest > &value)
AWS_EC2_API AccessScopePathRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const PathStatementRequest & GetSource() const
AccessScopePathRequest & WithThroughResources(Aws::Vector< ThroughResourcesStatementRequest > &&value)
AccessScopePathRequest & WithDestination(PathStatementRequest &&value)
void SetThroughResources(Aws::Vector< ThroughResourcesStatementRequest > &&value)
AWS_EC2_API AccessScopePathRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessScopePathRequest & WithDestination(const PathStatementRequest &value)
const PathStatementRequest & GetDestination() const
void SetSource(const PathStatementRequest &value)
AccessScopePathRequest & WithSource(const PathStatementRequest &value)
void SetSource(PathStatementRequest &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDestination(PathStatementRequest &&value)
AccessScopePathRequest & WithSource(PathStatementRequest &&value)
AccessScopePathRequest & AddThroughResources(ThroughResourcesStatementRequest &&value)
void SetDestination(const PathStatementRequest &value)
AccessScopePathRequest & AddThroughResources(const ThroughResourcesStatementRequest &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream