AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NetworkInsightsAccessScope.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API NetworkInsightsAccessScope() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetNetworkInsightsAccessScopeId() const { return m_networkInsightsAccessScopeId; }
50 inline bool NetworkInsightsAccessScopeIdHasBeenSet() const { return m_networkInsightsAccessScopeIdHasBeenSet; }
51 template<typename NetworkInsightsAccessScopeIdT = Aws::String>
52 void SetNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) { m_networkInsightsAccessScopeIdHasBeenSet = true; m_networkInsightsAccessScopeId = std::forward<NetworkInsightsAccessScopeIdT>(value); }
53 template<typename NetworkInsightsAccessScopeIdT = Aws::String>
54 NetworkInsightsAccessScope& WithNetworkInsightsAccessScopeId(NetworkInsightsAccessScopeIdT&& value) { SetNetworkInsightsAccessScopeId(std::forward<NetworkInsightsAccessScopeIdT>(value)); return *this;}
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) { m_networkInsightsAccessScopeArnHasBeenSet = true; m_networkInsightsAccessScopeArn = std::forward<NetworkInsightsAccessScopeArnT>(value); }
65 template<typename NetworkInsightsAccessScopeArnT = Aws::String>
66 NetworkInsightsAccessScope& WithNetworkInsightsAccessScopeArn(NetworkInsightsAccessScopeArnT&& value) { SetNetworkInsightsAccessScopeArn(std::forward<NetworkInsightsAccessScopeArnT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
74 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
75 template<typename CreatedDateT = Aws::Utils::DateTime>
76 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
77 template<typename CreatedDateT = Aws::Utils::DateTime>
78 NetworkInsightsAccessScope& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
86 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
87 template<typename UpdatedDateT = Aws::Utils::DateTime>
88 void SetUpdatedDate(UpdatedDateT&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::forward<UpdatedDateT>(value); }
89 template<typename UpdatedDateT = Aws::Utils::DateTime>
90 NetworkInsightsAccessScope& WithUpdatedDate(UpdatedDateT&& value) { SetUpdatedDate(std::forward<UpdatedDateT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Vector<Tag>>
102 NetworkInsightsAccessScope& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsT = Tag>
104 NetworkInsightsAccessScope& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
106 private:
107
108 Aws::String m_networkInsightsAccessScopeId;
109 bool m_networkInsightsAccessScopeIdHasBeenSet = false;
110
111 Aws::String m_networkInsightsAccessScopeArn;
112 bool m_networkInsightsAccessScopeArnHasBeenSet = false;
113
114 Aws::Utils::DateTime m_createdDate{};
115 bool m_createdDateHasBeenSet = false;
116
117 Aws::Utils::DateTime m_updatedDate{};
118 bool m_updatedDateHasBeenSet = false;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // 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