AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AccessScopePathRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/PathStatementRequest.h>
11#include <aws/ec2/model/ThroughResourcesStatementRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API AccessScopePathRequest() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const PathStatementRequest& GetSource() const { return m_source; }
43 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
44 template <typename SourceT = PathStatementRequest>
45 void SetSource(SourceT&& value) {
46 m_sourceHasBeenSet = true;
47 m_source = std::forward<SourceT>(value);
48 }
49 template <typename SourceT = PathStatementRequest>
51 SetSource(std::forward<SourceT>(value));
52 return *this;
53 }
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) {
64 m_destinationHasBeenSet = true;
65 m_destination = std::forward<DestinationT>(value);
66 }
67 template <typename DestinationT = PathStatementRequest>
68 AccessScopePathRequest& WithDestination(DestinationT&& value) {
69 SetDestination(std::forward<DestinationT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ThroughResourcesStatementRequest>& GetThroughResources() const { return m_throughResources; }
79 inline bool ThroughResourcesHasBeenSet() const { return m_throughResourcesHasBeenSet; }
80 template <typename ThroughResourcesT = Aws::Vector<ThroughResourcesStatementRequest>>
81 void SetThroughResources(ThroughResourcesT&& value) {
82 m_throughResourcesHasBeenSet = true;
83 m_throughResources = std::forward<ThroughResourcesT>(value);
84 }
85 template <typename ThroughResourcesT = Aws::Vector<ThroughResourcesStatementRequest>>
86 AccessScopePathRequest& WithThroughResources(ThroughResourcesT&& value) {
87 SetThroughResources(std::forward<ThroughResourcesT>(value));
88 return *this;
89 }
90 template <typename ThroughResourcesT = ThroughResourcesStatementRequest>
91 AccessScopePathRequest& AddThroughResources(ThroughResourcesT&& value) {
92 m_throughResourcesHasBeenSet = true;
93 m_throughResources.emplace_back(std::forward<ThroughResourcesT>(value));
94 return *this;
95 }
97 private:
98 PathStatementRequest m_source;
99
100 PathStatementRequest m_destination;
101
103 bool m_sourceHasBeenSet = false;
104 bool m_destinationHasBeenSet = false;
105 bool m_throughResourcesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EC2
110} // 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