AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
View.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
37class View {
38 public:
39 AWS_RESOURCEEXPLORER2_API View() = default;
40 AWS_RESOURCEEXPLORER2_API View(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESOURCEEXPLORER2_API View& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
50 inline const Aws::String& GetViewArn() const { return m_viewArn; }
51 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
52 template <typename ViewArnT = Aws::String>
53 void SetViewArn(ViewArnT&& value) {
54 m_viewArnHasBeenSet = true;
55 m_viewArn = std::forward<ViewArnT>(value);
56 }
57 template <typename ViewArnT = Aws::String>
58 View& WithViewArn(ViewArnT&& value) {
59 SetViewArn(std::forward<ViewArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetViewName() const { return m_viewName; }
69 inline bool ViewNameHasBeenSet() const { return m_viewNameHasBeenSet; }
70 template <typename ViewNameT = Aws::String>
71 void SetViewName(ViewNameT&& value) {
72 m_viewNameHasBeenSet = true;
73 m_viewName = std::forward<ViewNameT>(value);
74 }
75 template <typename ViewNameT = Aws::String>
76 View& WithViewName(ViewNameT&& value) {
77 SetViewName(std::forward<ViewNameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetOwner() const { return m_owner; }
87 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
88 template <typename OwnerT = Aws::String>
89 void SetOwner(OwnerT&& value) {
90 m_ownerHasBeenSet = true;
91 m_owner = std::forward<OwnerT>(value);
92 }
93 template <typename OwnerT = Aws::String>
94 View& WithOwner(OwnerT&& value) {
95 SetOwner(std::forward<OwnerT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
105 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
106 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
107 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
108 m_lastUpdatedAtHasBeenSet = true;
109 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
110 }
111 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
112 View& WithLastUpdatedAt(LastUpdatedAtT&& value) {
113 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
114 return *this;
115 }
117
119
129 inline const Aws::String& GetScope() const { return m_scope; }
130 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
131 template <typename ScopeT = Aws::String>
132 void SetScope(ScopeT&& value) {
133 m_scopeHasBeenSet = true;
134 m_scope = std::forward<ScopeT>(value);
135 }
136 template <typename ScopeT = Aws::String>
137 View& WithScope(ScopeT&& value) {
138 SetScope(std::forward<ScopeT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const { return m_includedProperties; }
148 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
149 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
150 void SetIncludedProperties(IncludedPropertiesT&& value) {
151 m_includedPropertiesHasBeenSet = true;
152 m_includedProperties = std::forward<IncludedPropertiesT>(value);
153 }
154 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
155 View& WithIncludedProperties(IncludedPropertiesT&& value) {
156 SetIncludedProperties(std::forward<IncludedPropertiesT>(value));
157 return *this;
158 }
159 template <typename IncludedPropertiesT = IncludedProperty>
160 View& AddIncludedProperties(IncludedPropertiesT&& value) {
161 m_includedPropertiesHasBeenSet = true;
162 m_includedProperties.emplace_back(std::forward<IncludedPropertiesT>(value));
163 return *this;
164 }
166
168
172 inline const SearchFilter& GetFilters() const { return m_filters; }
173 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
174 template <typename FiltersT = SearchFilter>
175 void SetFilters(FiltersT&& value) {
176 m_filtersHasBeenSet = true;
177 m_filters = std::forward<FiltersT>(value);
178 }
179 template <typename FiltersT = SearchFilter>
180 View& WithFilters(FiltersT&& value) {
181 SetFilters(std::forward<FiltersT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_viewArn;
187
188 Aws::String m_viewName;
189
190 Aws::String m_owner;
191
192 Aws::Utils::DateTime m_lastUpdatedAt{};
193
194 Aws::String m_scope;
195
196 Aws::Vector<IncludedProperty> m_includedProperties;
197
198 SearchFilter m_filters;
199 bool m_viewArnHasBeenSet = false;
200 bool m_viewNameHasBeenSet = false;
201 bool m_ownerHasBeenSet = false;
202 bool m_lastUpdatedAtHasBeenSet = false;
203 bool m_scopeHasBeenSet = false;
204 bool m_includedPropertiesHasBeenSet = false;
205 bool m_filtersHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace ResourceExplorer2
210} // namespace Aws
AWS_RESOURCEEXPLORER2_API View(Aws::Utils::Json::JsonView jsonValue)
View & WithViewArn(ViewArnT &&value)
Definition View.h:58
AWS_RESOURCEEXPLORER2_API View & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwner(OwnerT &&value)
Definition View.h:89
const Aws::Vector< IncludedProperty > & GetIncludedProperties() const
Definition View.h:147
const Aws::String & GetViewArn() const
Definition View.h:50
View & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition View.h:112
bool IncludedPropertiesHasBeenSet() const
Definition View.h:148
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
View & WithIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:155
const Aws::String & GetViewName() const
Definition View.h:68
const SearchFilter & GetFilters() const
Definition View.h:172
View & WithOwner(OwnerT &&value)
Definition View.h:94
void SetIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:150
bool LastUpdatedAtHasBeenSet() const
Definition View.h:105
View & WithScope(ScopeT &&value)
Definition View.h:137
void SetFilters(FiltersT &&value)
Definition View.h:175
AWS_RESOURCEEXPLORER2_API View()=default
void SetScope(ScopeT &&value)
Definition View.h:132
View & WithFilters(FiltersT &&value)
Definition View.h:180
View & AddIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:160
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition View.h:104
const Aws::String & GetOwner() const
Definition View.h:86
void SetViewArn(ViewArnT &&value)
Definition View.h:53
void SetViewName(ViewNameT &&value)
Definition View.h:71
View & WithViewName(ViewNameT &&value)
Definition View.h:76
const Aws::String & GetScope() const
Definition View.h:129
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition View.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue