AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateViewRequest.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/ResourceExplorer2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-explorer-2/model/SearchFilter.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/resource-explorer-2/model/IncludedProperty.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace ResourceExplorer2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_RESOURCEEXPLORER2_API CreateViewRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateView"; }
36
37 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
38
39
41
48 inline const Aws::String& GetClientToken() const { return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateViewRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
76 inline const SearchFilter& GetFilters() const { return m_filters; }
77 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
78 template<typename FiltersT = SearchFilter>
79 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
80 template<typename FiltersT = SearchFilter>
81 CreateViewRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
83
85
90 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const { return m_includedProperties; }
91 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
92 template<typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
93 void SetIncludedProperties(IncludedPropertiesT&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = std::forward<IncludedPropertiesT>(value); }
94 template<typename IncludedPropertiesT = Aws::Vector<IncludedProperty>>
95 CreateViewRequest& WithIncludedProperties(IncludedPropertiesT&& value) { SetIncludedProperties(std::forward<IncludedPropertiesT>(value)); return *this;}
96 template<typename IncludedPropertiesT = IncludedProperty>
97 CreateViewRequest& AddIncludedProperties(IncludedPropertiesT&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.emplace_back(std::forward<IncludedPropertiesT>(value)); return *this; }
99
101
105 inline const Aws::String& GetScope() const { return m_scope; }
106 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
107 template<typename ScopeT = Aws::String>
108 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
109 template<typename ScopeT = Aws::String>
110 CreateViewRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
112
114
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 CreateViewRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
124 CreateViewRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
125 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
126 }
128
130
136 inline const Aws::String& GetViewName() const { return m_viewName; }
137 inline bool ViewNameHasBeenSet() const { return m_viewNameHasBeenSet; }
138 template<typename ViewNameT = Aws::String>
139 void SetViewName(ViewNameT&& value) { m_viewNameHasBeenSet = true; m_viewName = std::forward<ViewNameT>(value); }
140 template<typename ViewNameT = Aws::String>
141 CreateViewRequest& WithViewName(ViewNameT&& value) { SetViewName(std::forward<ViewNameT>(value)); return *this;}
143 private:
144
146 bool m_clientTokenHasBeenSet = true;
147
148 SearchFilter m_filters;
149 bool m_filtersHasBeenSet = false;
150
151 Aws::Vector<IncludedProperty> m_includedProperties;
152 bool m_includedPropertiesHasBeenSet = false;
153
154 Aws::String m_scope;
155 bool m_scopeHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159
160 Aws::String m_viewName;
161 bool m_viewNameHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ResourceExplorer2
166} // 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