AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
36 AWS_EC2_API AccessScopePathRequest() = default;
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 template<typename SourceT = PathStatementRequest>
51 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
52 template<typename SourceT = PathStatementRequest>
53 AccessScopePathRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
55
57
60 inline const PathStatementRequest& GetDestination() const { return m_destination; }
61 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
62 template<typename DestinationT = PathStatementRequest>
63 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
64 template<typename DestinationT = PathStatementRequest>
65 AccessScopePathRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(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 template<typename ThroughResourcesT = Aws::Vector<ThroughResourcesStatementRequest>>
75 void SetThroughResources(ThroughResourcesT&& value) { m_throughResourcesHasBeenSet = true; m_throughResources = std::forward<ThroughResourcesT>(value); }
76 template<typename ThroughResourcesT = Aws::Vector<ThroughResourcesStatementRequest>>
77 AccessScopePathRequest& WithThroughResources(ThroughResourcesT&& value) { SetThroughResources(std::forward<ThroughResourcesT>(value)); return *this;}
78 template<typename ThroughResourcesT = ThroughResourcesStatementRequest>
79 AccessScopePathRequest& AddThroughResources(ThroughResourcesT&& value) { m_throughResourcesHasBeenSet = true; m_throughResources.emplace_back(std::forward<ThroughResourcesT>(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
AWS_EC2_API AccessScopePathRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const PathStatementRequest & GetSource() const
AWS_EC2_API AccessScopePathRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessScopePathRequest & WithDestination(DestinationT &&value)
const PathStatementRequest & GetDestination() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API AccessScopePathRequest()=default
void SetThroughResources(ThroughResourcesT &&value)
AccessScopePathRequest & WithSource(SourceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccessScopePathRequest & AddThroughResources(ThroughResourcesT &&value)
AccessScopePathRequest & WithThroughResources(ThroughResourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream