AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NetworkInsightsAccessScopeContent.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/AccessScopePath.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 NetworkInsightsAccessScopeContent() = 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 Aws::String& GetNetworkInsightsAccessScopeId() const { return m_networkInsightsAccessScopeId; }
49 inline bool NetworkInsightsAccessScopeIdHasBeenSet() const { return m_networkInsightsAccessScopeIdHasBeenSet; }
50 template<typename NetworkInsightsAccessScopeIdT = Aws::String>
51 void SetNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) { m_networkInsightsAccessScopeIdHasBeenSet = true; m_networkInsightsAccessScopeId = std::forward<NetworkInsightsAccessScopeIdT>(value); }
52 template<typename NetworkInsightsAccessScopeIdT = Aws::String>
53 NetworkInsightsAccessScopeContent& WithNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) { SetNetworkInsightsAccessScopeId(std::forward<NetworkInsightsAccessScopeIdT>(value)); return *this;}
55
57
60 inline const Aws::Vector<AccessScopePath>& GetMatchPaths() const { return m_matchPaths; }
61 inline bool MatchPathsHasBeenSet() const { return m_matchPathsHasBeenSet; }
62 template<typename MatchPathsT = Aws::Vector<AccessScopePath>>
63 void SetMatchPaths(MatchPathsT&& value) { m_matchPathsHasBeenSet = true; m_matchPaths = std::forward<MatchPathsT>(value); }
64 template<typename MatchPathsT = Aws::Vector<AccessScopePath>>
65 NetworkInsightsAccessScopeContent& WithMatchPaths(MatchPathsT&& value) { SetMatchPaths(std::forward<MatchPathsT>(value)); return *this;}
66 template<typename MatchPathsT = AccessScopePath>
67 NetworkInsightsAccessScopeContent& AddMatchPaths(MatchPathsT&& value) { m_matchPathsHasBeenSet = true; m_matchPaths.emplace_back(std::forward<MatchPathsT>(value)); return *this; }
69
71
74 inline const Aws::Vector<AccessScopePath>& GetExcludePaths() const { return m_excludePaths; }
75 inline bool ExcludePathsHasBeenSet() const { return m_excludePathsHasBeenSet; }
76 template<typename ExcludePathsT = Aws::Vector<AccessScopePath>>
77 void SetExcludePaths(ExcludePathsT&& value) { m_excludePathsHasBeenSet = true; m_excludePaths = std::forward<ExcludePathsT>(value); }
78 template<typename ExcludePathsT = Aws::Vector<AccessScopePath>>
79 NetworkInsightsAccessScopeContent& WithExcludePaths(ExcludePathsT&& value) { SetExcludePaths(std::forward<ExcludePathsT>(value)); return *this;}
80 template<typename ExcludePathsT = AccessScopePath>
81 NetworkInsightsAccessScopeContent& AddExcludePaths(ExcludePathsT&& value) { m_excludePathsHasBeenSet = true; m_excludePaths.emplace_back(std::forward<ExcludePathsT>(value)); return *this; }
83 private:
84
85 Aws::String m_networkInsightsAccessScopeId;
86 bool m_networkInsightsAccessScopeIdHasBeenSet = false;
87
89 bool m_matchPathsHasBeenSet = false;
90
91 Aws::Vector<AccessScopePath> m_excludePaths;
92 bool m_excludePathsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
NetworkInsightsAccessScopeContent & AddMatchPaths(MatchPathsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT &&value)
const Aws::Vector< AccessScopePath > & GetMatchPaths() const
NetworkInsightsAccessScopeContent & WithMatchPaths(MatchPathsT &&value)
AWS_EC2_API NetworkInsightsAccessScopeContent(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInsightsAccessScopeContent & WithNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT &&value)
AWS_EC2_API NetworkInsightsAccessScopeContent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< AccessScopePath > & GetExcludePaths() const
NetworkInsightsAccessScopeContent & AddExcludePaths(ExcludePathsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInsightsAccessScopeContent & WithExcludePaths(ExcludePathsT &&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