AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInsightsAccessScope.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/EC2_EXPORTS.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API NetworkInsightsAccessScope() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetNetworkInsightsAccessScopeId() const { return m_networkInsightsAccessScopeId; }
44 inline bool NetworkInsightsAccessScopeIdHasBeenSet() const { return m_networkInsightsAccessScopeIdHasBeenSet; }
45 template <typename NetworkInsightsAccessScopeIdT = Aws::String>
46 void SetNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) {
47 m_networkInsightsAccessScopeIdHasBeenSet = true;
48 m_networkInsightsAccessScopeId = std::forward<NetworkInsightsAccessScopeIdT>(value);
49 }
50 template <typename NetworkInsightsAccessScopeIdT = Aws::String>
51 NetworkInsightsAccessScope& WithNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) {
52 SetNetworkInsightsAccessScopeId(std::forward<NetworkInsightsAccessScopeIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNetworkInsightsAccessScopeArn() const { return m_networkInsightsAccessScopeArn; }
62 inline bool NetworkInsightsAccessScopeArnHasBeenSet() const { return m_networkInsightsAccessScopeArnHasBeenSet; }
63 template <typename NetworkInsightsAccessScopeArnT = Aws::String>
64 void SetNetworkInsightsAccessScopeArn(NetworkInsightsAccessScopeArnT&& value) {
65 m_networkInsightsAccessScopeArnHasBeenSet = true;
66 m_networkInsightsAccessScopeArn = std::forward<NetworkInsightsAccessScopeArnT>(value);
67 }
68 template <typename NetworkInsightsAccessScopeArnT = Aws::String>
69 NetworkInsightsAccessScope& WithNetworkInsightsAccessScopeArn(NetworkInsightsAccessScopeArnT&& value) {
70 SetNetworkInsightsAccessScopeArn(std::forward<NetworkInsightsAccessScopeArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
80 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
81 template <typename CreatedDateT = Aws::Utils::DateTime>
82 void SetCreatedDate(CreatedDateT&& value) {
83 m_createdDateHasBeenSet = true;
84 m_createdDate = std::forward<CreatedDateT>(value);
85 }
86 template <typename CreatedDateT = Aws::Utils::DateTime>
88 SetCreatedDate(std::forward<CreatedDateT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
98 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
99 template <typename UpdatedDateT = Aws::Utils::DateTime>
100 void SetUpdatedDate(UpdatedDateT&& value) {
101 m_updatedDateHasBeenSet = true;
102 m_updatedDate = std::forward<UpdatedDateT>(value);
103 }
104 template <typename UpdatedDateT = Aws::Utils::DateTime>
106 SetUpdatedDate(std::forward<UpdatedDateT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Vector<Tag>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsT = Tag>
129 m_tagsHasBeenSet = true;
130 m_tags.emplace_back(std::forward<TagsT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_networkInsightsAccessScopeId;
136
137 Aws::String m_networkInsightsAccessScopeArn;
138
139 Aws::Utils::DateTime m_createdDate{};
140
141 Aws::Utils::DateTime m_updatedDate{};
142
143 Aws::Vector<Tag> m_tags;
144 bool m_networkInsightsAccessScopeIdHasBeenSet = false;
145 bool m_networkInsightsAccessScopeArnHasBeenSet = false;
146 bool m_createdDateHasBeenSet = false;
147 bool m_updatedDateHasBeenSet = false;
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
NetworkInsightsAccessScope & WithCreatedDate(CreatedDateT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNetworkInsightsAccessScopeArn(NetworkInsightsAccessScopeArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInsightsAccessScope & WithTags(TagsT &&value)
AWS_EC2_API NetworkInsightsAccessScope()=default
const Aws::Utils::DateTime & GetCreatedDate() const
void SetNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT &&value)
AWS_EC2_API NetworkInsightsAccessScope(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetUpdatedDate() const
NetworkInsightsAccessScope & WithNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT &&value)
AWS_EC2_API NetworkInsightsAccessScope & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInsightsAccessScope & WithNetworkInsightsAccessScopeArn(NetworkInsightsAccessScopeArnT &&value)
NetworkInsightsAccessScope & AddTags(TagsT &&value)
NetworkInsightsAccessScope & WithUpdatedDate(UpdatedDateT &&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