AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateViewRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-explorer-2/ResourceExplorer2Request.h>
12#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
13#include <aws/resource-explorer-2/model/IncludedProperty.h>
14#include <aws/resource-explorer-2/model/SearchFilter.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ResourceExplorer2 {
20namespace Model {
21
25 public:
26 AWS_RESOURCEEXPLORER2_API CreateViewRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateView"; }
33
34 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
35
37
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
52 CreateViewRequest& WithClientToken(ClientTokenT&& value) {
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetViewName() const { return m_viewName; }
66 inline bool ViewNameHasBeenSet() const { return m_viewNameHasBeenSet; }
67 template <typename ViewNameT = Aws::String>
68 void SetViewName(ViewNameT&& value) {
69 m_viewNameHasBeenSet = true;
70 m_viewName = std::forward<ViewNameT>(value);
71 }
72 template <typename ViewNameT = Aws::String>
73 CreateViewRequest& WithViewName(ViewNameT&& value) {
74 SetViewName(std::forward<ViewNameT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const { return m_includedProperties; }
86 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
87 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
88 void SetIncludedProperties(IncludedPropertiesT&& value) {
89 m_includedPropertiesHasBeenSet = true;
90 m_includedProperties = std::forward<IncludedPropertiesT>(value);
91 }
92 template <typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
93 CreateViewRequest& WithIncludedProperties(IncludedPropertiesT&& value) {
94 SetIncludedProperties(std::forward<IncludedPropertiesT>(value));
95 return *this;
96 }
97 template <typename IncludedPropertiesT = IncludedProperty>
98 CreateViewRequest& AddIncludedProperties(IncludedPropertiesT&& value) {
99 m_includedPropertiesHasBeenSet = true;
100 m_includedProperties.emplace_back(std::forward<IncludedPropertiesT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetScope() const { return m_scope; }
111 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
112 template <typename ScopeT = Aws::String>
113 void SetScope(ScopeT&& value) {
114 m_scopeHasBeenSet = true;
115 m_scope = std::forward<ScopeT>(value);
116 }
117 template <typename ScopeT = Aws::String>
118 CreateViewRequest& WithScope(ScopeT&& value) {
119 SetScope(std::forward<ScopeT>(value));
120 return *this;
121 }
123
125
144 inline const SearchFilter& GetFilters() const { return m_filters; }
145 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
146 template <typename FiltersT = SearchFilter>
147 void SetFilters(FiltersT&& value) {
148 m_filtersHasBeenSet = true;
149 m_filters = std::forward<FiltersT>(value);
150 }
151 template <typename FiltersT = SearchFilter>
152 CreateViewRequest& WithFilters(FiltersT&& value) {
153 SetFilters(std::forward<FiltersT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 void SetTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 CreateViewRequest& WithTags(TagsT&& value) {
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
175 CreateViewRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
178 return *this;
179 }
181 private:
183
184 Aws::String m_viewName;
185
186 Aws::Vector<IncludedProperty> m_includedProperties;
187
188 Aws::String m_scope;
189
190 SearchFilter m_filters;
191
193 bool m_clientTokenHasBeenSet = true;
194 bool m_viewNameHasBeenSet = false;
195 bool m_includedPropertiesHasBeenSet = false;
196 bool m_scopeHasBeenSet = false;
197 bool m_filtersHasBeenSet = false;
198 bool m_tagsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace ResourceExplorer2
203} // namespace Aws
CreateViewRequest & WithTags(TagsT &&value)
CreateViewRequest & WithViewName(ViewNameT &&value)
CreateViewRequest & WithFilters(FiltersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateViewRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateViewRequest & WithScope(ScopeT &&value)
CreateViewRequest & WithClientToken(ClientTokenT &&value)
CreateViewRequest & WithIncludedProperties(IncludedPropertiesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< IncludedProperty > & GetIncludedProperties() const
void SetIncludedProperties(IncludedPropertiesT &&value)
CreateViewRequest & AddIncludedProperties(IncludedPropertiesT &&value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
AWS_RESOURCEEXPLORER2_API CreateViewRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector