AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
ManagedView.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
11#include <aws/resource-explorer-2/model/IncludedProperty.h>
12#include <aws/resource-explorer-2/model/SearchFilter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ResourceExplorer2 {
24namespace Model {
25
36 public:
37 AWS_RESOURCEEXPLORER2_API ManagedView() = default;
38 AWS_RESOURCEEXPLORER2_API ManagedView(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESOURCEEXPLORER2_API ManagedView& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::String& GetManagedViewArn() const { return m_managedViewArn; }
49 inline bool ManagedViewArnHasBeenSet() const { return m_managedViewArnHasBeenSet; }
50 template <typename ManagedViewArnT = Aws::String>
51 void SetManagedViewArn(ManagedViewArnT&& value) {
52 m_managedViewArnHasBeenSet = true;
53 m_managedViewArn = std::forward<ManagedViewArnT>(value);
54 }
55 template <typename ManagedViewArnT = Aws::String>
56 ManagedView& WithManagedViewArn(ManagedViewArnT&& value) {
57 SetManagedViewArn(std::forward<ManagedViewArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetManagedViewName() const { return m_managedViewName; }
67 inline bool ManagedViewNameHasBeenSet() const { return m_managedViewNameHasBeenSet; }
68 template <typename ManagedViewNameT = Aws::String>
69 void SetManagedViewName(ManagedViewNameT&& value) {
70 m_managedViewNameHasBeenSet = true;
71 m_managedViewName = std::forward<ManagedViewNameT>(value);
72 }
73 template <typename ManagedViewNameT = Aws::String>
74 ManagedView& WithManagedViewName(ManagedViewNameT&& value) {
75 SetManagedViewName(std::forward<ManagedViewNameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetTrustedService() const { return m_trustedService; }
86 inline bool TrustedServiceHasBeenSet() const { return m_trustedServiceHasBeenSet; }
87 template <typename TrustedServiceT = Aws::String>
88 void SetTrustedService(TrustedServiceT&& value) {
89 m_trustedServiceHasBeenSet = true;
90 m_trustedService = std::forward<TrustedServiceT>(value);
91 }
92 template <typename TrustedServiceT = Aws::String>
93 ManagedView& WithTrustedService(TrustedServiceT&& value) {
94 SetTrustedService(std::forward<TrustedServiceT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
104 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
105 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
106 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
107 m_lastUpdatedAtHasBeenSet = true;
108 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
109 }
110 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
111 ManagedView& WithLastUpdatedAt(LastUpdatedAtT&& value) {
112 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetOwner() const { return m_owner; }
122 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
123 template <typename OwnerT = Aws::String>
124 void SetOwner(OwnerT&& value) {
125 m_ownerHasBeenSet = true;
126 m_owner = std::forward<OwnerT>(value);
127 }
128 template <typename OwnerT = Aws::String>
129 ManagedView& WithOwner(OwnerT&& value) {
130 SetOwner(std::forward<OwnerT>(value));
131 return *this;
132 }
134
136
143 inline const Aws::String& GetScope() const { return m_scope; }
144 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
145 template <typename ScopeT = Aws::String>
146 void SetScope(ScopeT&& value) {
147 m_scopeHasBeenSet = true;
148 m_scope = std::forward<ScopeT>(value);
149 }
150 template <typename ScopeT = Aws::String>
151 ManagedView& WithScope(ScopeT&& value) {
152 SetScope(std::forward<ScopeT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const { return m_includedProperties; }
162 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
163 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
164 void SetIncludedProperties(IncludedPropertiesT&& value) {
165 m_includedPropertiesHasBeenSet = true;
166 m_includedProperties = std::forward<IncludedPropertiesT>(value);
167 }
168 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
169 ManagedView& WithIncludedProperties(IncludedPropertiesT&& value) {
170 SetIncludedProperties(std::forward<IncludedPropertiesT>(value));
171 return *this;
172 }
173 template <typename IncludedPropertiesT = IncludedProperty>
174 ManagedView& AddIncludedProperties(IncludedPropertiesT&& value) {
175 m_includedPropertiesHasBeenSet = true;
176 m_includedProperties.emplace_back(std::forward<IncludedPropertiesT>(value));
177 return *this;
178 }
180
182
183 inline const SearchFilter& GetFilters() const { return m_filters; }
184 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
185 template <typename FiltersT = SearchFilter>
186 void SetFilters(FiltersT&& value) {
187 m_filtersHasBeenSet = true;
188 m_filters = std::forward<FiltersT>(value);
189 }
190 template <typename FiltersT = SearchFilter>
191 ManagedView& WithFilters(FiltersT&& value) {
192 SetFilters(std::forward<FiltersT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
205 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
206 template <typename ResourcePolicyT = Aws::String>
207 void SetResourcePolicy(ResourcePolicyT&& value) {
208 m_resourcePolicyHasBeenSet = true;
209 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
210 }
211 template <typename ResourcePolicyT = Aws::String>
212 ManagedView& WithResourcePolicy(ResourcePolicyT&& value) {
213 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetVersion() const { return m_version; }
223 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
224 template <typename VersionT = Aws::String>
225 void SetVersion(VersionT&& value) {
226 m_versionHasBeenSet = true;
227 m_version = std::forward<VersionT>(value);
228 }
229 template <typename VersionT = Aws::String>
230 ManagedView& WithVersion(VersionT&& value) {
231 SetVersion(std::forward<VersionT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_managedViewArn;
237
238 Aws::String m_managedViewName;
239
240 Aws::String m_trustedService;
241
242 Aws::Utils::DateTime m_lastUpdatedAt{};
243
244 Aws::String m_owner;
245
246 Aws::String m_scope;
247
248 Aws::Vector<IncludedProperty> m_includedProperties;
249
250 SearchFilter m_filters;
251
252 Aws::String m_resourcePolicy;
253
254 Aws::String m_version;
255 bool m_managedViewArnHasBeenSet = false;
256 bool m_managedViewNameHasBeenSet = false;
257 bool m_trustedServiceHasBeenSet = false;
258 bool m_lastUpdatedAtHasBeenSet = false;
259 bool m_ownerHasBeenSet = false;
260 bool m_scopeHasBeenSet = false;
261 bool m_includedPropertiesHasBeenSet = false;
262 bool m_filtersHasBeenSet = false;
263 bool m_resourcePolicyHasBeenSet = false;
264 bool m_versionHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace ResourceExplorer2
269} // namespace Aws
const Aws::String & GetScope() const
const Aws::String & GetOwner() const
ManagedView & AddIncludedProperties(IncludedPropertiesT &&value)
ManagedView & WithOwner(OwnerT &&value)
const Aws::String & GetResourcePolicy() const
ManagedView & WithIncludedProperties(IncludedPropertiesT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
ManagedView & WithResourcePolicy(ResourcePolicyT &&value)
void SetIncludedProperties(IncludedPropertiesT &&value)
AWS_RESOURCEEXPLORER2_API ManagedView & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
void SetTrustedService(TrustedServiceT &&value)
Definition ManagedView.h:88
const Aws::String & GetTrustedService() const
Definition ManagedView.h:85
const SearchFilter & GetFilters() const
void SetManagedViewName(ManagedViewNameT &&value)
Definition ManagedView.h:69
AWS_RESOURCEEXPLORER2_API ManagedView()=default
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourcePolicy(ResourcePolicyT &&value)
const Aws::String & GetManagedViewArn() const
Definition ManagedView.h:48
const Aws::String & GetManagedViewName() const
Definition ManagedView.h:66
ManagedView & WithManagedViewArn(ManagedViewArnT &&value)
Definition ManagedView.h:56
AWS_RESOURCEEXPLORER2_API ManagedView(Aws::Utils::Json::JsonView jsonValue)
ManagedView & WithScope(ScopeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ManagedView & WithFilters(FiltersT &&value)
ManagedView & WithTrustedService(TrustedServiceT &&value)
Definition ManagedView.h:93
const Aws::Vector< IncludedProperty > & GetIncludedProperties() const
ManagedView & WithVersion(VersionT &&value)
void SetManagedViewArn(ManagedViewArnT &&value)
Definition ManagedView.h:51
ManagedView & WithManagedViewName(ManagedViewNameT &&value)
Definition ManagedView.h:74
ManagedView & WithLastUpdatedAt(LastUpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue