AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DiscoveryConfigurationData.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/DiscoveryConfigurationStatus.h>
9#include <aws/apiportal/model/DiscoveryFeature.h>
10#include <aws/apiportal/model/DiscoverySource.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace APIPortal {
25namespace Model {
26
33 public:
34 AWS_APIPORTAL_API DiscoveryConfigurationData() = default;
37 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline DiscoveryConfigurationStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::Vector<DiscoverySource>& GetDiscoverySources() const { return m_discoverySources; }
78 inline bool DiscoverySourcesHasBeenSet() const { return m_discoverySourcesHasBeenSet; }
79 template <typename DiscoverySourcesT = Aws::Vector<DiscoverySource>>
80 void SetDiscoverySources(DiscoverySourcesT&& value) {
81 m_discoverySourcesHasBeenSet = true;
82 m_discoverySources = std::forward<DiscoverySourcesT>(value);
83 }
84 template <typename DiscoverySourcesT = Aws::Vector<DiscoverySource>>
86 SetDiscoverySources(std::forward<DiscoverySourcesT>(value));
87 return *this;
88 }
90 m_discoverySourcesHasBeenSet = true;
91 m_discoverySources.push_back(value);
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Aws::String>& GetExcludedResources() const { return m_excludedResources; }
101 inline bool ExcludedResourcesHasBeenSet() const { return m_excludedResourcesHasBeenSet; }
102 template <typename ExcludedResourcesT = Aws::Vector<Aws::String>>
103 void SetExcludedResources(ExcludedResourcesT&& value) {
104 m_excludedResourcesHasBeenSet = true;
105 m_excludedResources = std::forward<ExcludedResourcesT>(value);
106 }
107 template <typename ExcludedResourcesT = Aws::Vector<Aws::String>>
109 SetExcludedResources(std::forward<ExcludedResourcesT>(value));
110 return *this;
111 }
112 template <typename ExcludedResourcesT = Aws::String>
114 m_excludedResourcesHasBeenSet = true;
115 m_excludedResources.emplace_back(std::forward<ExcludedResourcesT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Vector<DiscoveryFeature>& GetFeatures() const { return m_features; }
126 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
127 template <typename FeaturesT = Aws::Vector<DiscoveryFeature>>
128 void SetFeatures(FeaturesT&& value) {
129 m_featuresHasBeenSet = true;
130 m_features = std::forward<FeaturesT>(value);
131 }
132 template <typename FeaturesT = Aws::Vector<DiscoveryFeature>>
134 SetFeatures(std::forward<FeaturesT>(value));
135 return *this;
136 }
138 m_featuresHasBeenSet = true;
139 m_features.push_back(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
151 void SetCreatedAt(CreatedAtT&& value) {
152 m_createdAtHasBeenSet = true;
153 m_createdAt = std::forward<CreatedAtT>(value);
154 }
155 template <typename CreatedAtT = Aws::Utils::DateTime>
157 SetCreatedAt(std::forward<CreatedAtT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
167 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
168 template <typename UpdatedAtT = Aws::Utils::DateTime>
169 void SetUpdatedAt(UpdatedAtT&& value) {
170 m_updatedAtHasBeenSet = true;
171 m_updatedAt = std::forward<UpdatedAtT>(value);
172 }
173 template <typename UpdatedAtT = Aws::Utils::DateTime>
175 SetUpdatedAt(std::forward<UpdatedAtT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_arn;
181
183
184 Aws::Vector<DiscoverySource> m_discoverySources;
185
186 Aws::Vector<Aws::String> m_excludedResources;
187
189
190 Aws::Utils::DateTime m_createdAt{};
191
192 Aws::Utils::DateTime m_updatedAt{};
193 bool m_arnHasBeenSet = false;
194 bool m_statusHasBeenSet = false;
195 bool m_discoverySourcesHasBeenSet = false;
196 bool m_excludedResourcesHasBeenSet = false;
197 bool m_featuresHasBeenSet = false;
198 bool m_createdAtHasBeenSet = false;
199 bool m_updatedAtHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace APIPortal
204} // namespace Aws
AWS_APIPORTAL_API DiscoveryConfigurationData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIPORTAL_API DiscoveryConfigurationData(Aws::Utils::Json::JsonView jsonValue)
DiscoveryConfigurationData & AddDiscoverySources(DiscoverySource value)
DiscoveryConfigurationData & WithFeatures(FeaturesT &&value)
DiscoveryConfigurationData & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetExcludedResources() const
void SetStatus(DiscoveryConfigurationStatus value)
const Aws::Vector< DiscoveryFeature > & GetFeatures() const
DiscoveryConfigurationData & WithDiscoverySources(DiscoverySourcesT &&value)
DiscoveryConfigurationData & AddExcludedResources(ExcludedResourcesT &&value)
DiscoveryConfigurationData & WithStatus(DiscoveryConfigurationStatus value)
AWS_APIPORTAL_API DiscoveryConfigurationData()=default
DiscoveryConfigurationData & WithUpdatedAt(UpdatedAtT &&value)
DiscoveryConfigurationData & AddFeatures(DiscoveryFeature value)
DiscoveryConfigurationData & WithExcludedResources(ExcludedResourcesT &&value)
DiscoveryConfigurationData & WithArn(ArnT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DiscoverySource > & GetDiscoverySources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue