AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
View.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/model/SearchFilter.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/resource-explorer-2/model/IncludedProperty.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ResourceExplorer2
26{
27namespace Model
28{
29
41 class View
42 {
43 public:
44 AWS_RESOURCEEXPLORER2_API View() = default;
45 AWS_RESOURCEEXPLORER2_API View(Aws::Utils::Json::JsonView jsonValue);
46 AWS_RESOURCEEXPLORER2_API View& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const SearchFilter& GetFilters() const { return m_filters; }
56 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
57 template<typename FiltersT = SearchFilter>
58 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
59 template<typename FiltersT = SearchFilter>
60 View& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
62
64
67 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const { return m_includedProperties; }
68 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
69 template<typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
70 void SetIncludedProperties(IncludedPropertiesT&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = std::forward<IncludedPropertiesT>(value); }
71 template<typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
72 View& WithIncludedProperties(IncludedPropertiesT&& value) { SetIncludedProperties(std::forward<IncludedPropertiesT>(value)); return *this;}
73 template<typename IncludedPropertiesT = IncludedProperty>
74 View& AddIncludedProperties(IncludedPropertiesT&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.emplace_back(std::forward<IncludedPropertiesT>(value)); return *this; }
76
78
81 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
82 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
83 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
84 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
85 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
86 View& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
88
90
93 inline const Aws::String& GetOwner() const { return m_owner; }
94 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
95 template<typename OwnerT = Aws::String>
96 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
97 template<typename OwnerT = Aws::String>
98 View& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
100
102
112 inline const Aws::String& GetScope() const { return m_scope; }
113 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
114 template<typename ScopeT = Aws::String>
115 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
116 template<typename ScopeT = Aws::String>
117 View& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
119
121
126 inline const Aws::String& GetViewArn() const { return m_viewArn; }
127 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
128 template<typename ViewArnT = Aws::String>
129 void SetViewArn(ViewArnT&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::forward<ViewArnT>(value); }
130 template<typename ViewArnT = Aws::String>
131 View& WithViewArn(ViewArnT&& value) { SetViewArn(std::forward<ViewArnT>(value)); return *this;}
133 private:
134
135 SearchFilter m_filters;
136 bool m_filtersHasBeenSet = false;
137
138 Aws::Vector<IncludedProperty> m_includedProperties;
139 bool m_includedPropertiesHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastUpdatedAt{};
142 bool m_lastUpdatedAtHasBeenSet = false;
143
144 Aws::String m_owner;
145 bool m_ownerHasBeenSet = false;
146
147 Aws::String m_scope;
148 bool m_scopeHasBeenSet = false;
149
150 Aws::String m_viewArn;
151 bool m_viewArnHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace ResourceExplorer2
156} // namespace Aws
AWS_RESOURCEEXPLORER2_API View(Aws::Utils::Json::JsonView jsonValue)
View & WithViewArn(ViewArnT &&value)
Definition View.h:131
AWS_RESOURCEEXPLORER2_API View & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwner(OwnerT &&value)
Definition View.h:96
const Aws::Vector< IncludedProperty > & GetIncludedProperties() const
Definition View.h:67
const Aws::String & GetViewArn() const
Definition View.h:126
View & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition View.h:86
bool IncludedPropertiesHasBeenSet() const
Definition View.h:68
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
View & WithIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:72
const SearchFilter & GetFilters() const
Definition View.h:55
View & WithOwner(OwnerT &&value)
Definition View.h:98
void SetIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:70
bool LastUpdatedAtHasBeenSet() const
Definition View.h:82
View & WithScope(ScopeT &&value)
Definition View.h:117
void SetFilters(FiltersT &&value)
Definition View.h:58
AWS_RESOURCEEXPLORER2_API View()=default
void SetScope(ScopeT &&value)
Definition View.h:115
View & WithFilters(FiltersT &&value)
Definition View.h:60
View & AddIncludedProperties(IncludedPropertiesT &&value)
Definition View.h:74
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition View.h:81
const Aws::String & GetOwner() const
Definition View.h:93
void SetViewArn(ViewArnT &&value)
Definition View.h:129
const Aws::String & GetScope() const
Definition View.h:112
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition View.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue