AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateViewRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateViewRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateViewRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
78 inline const SearchFilter& GetFilters() const{ return m_filters; }
79 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
80 inline void SetFilters(const SearchFilter& value) { m_filtersHasBeenSet = true; m_filters = value; }
81 inline void SetFilters(SearchFilter&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
82 inline CreateViewRequest& WithFilters(const SearchFilter& value) { SetFilters(value); return *this;}
83 inline CreateViewRequest& WithFilters(SearchFilter&& value) { SetFilters(std::move(value)); return *this;}
85
87
92 inline const Aws::Vector<IncludedProperty>& GetIncludedProperties() const{ return m_includedProperties; }
93 inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; }
94 inline void SetIncludedProperties(const Aws::Vector<IncludedProperty>& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = value; }
95 inline void SetIncludedProperties(Aws::Vector<IncludedProperty>&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = std::move(value); }
98 inline CreateViewRequest& AddIncludedProperties(const IncludedProperty& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.push_back(value); return *this; }
99 inline CreateViewRequest& AddIncludedProperties(IncludedProperty&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.push_back(std::move(value)); return *this; }
101
103
107 inline const Aws::String& GetScope() const{ return m_scope; }
108 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
109 inline void SetScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope = value; }
110 inline void SetScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
111 inline void SetScope(const char* value) { m_scopeHasBeenSet = true; m_scope.assign(value); }
112 inline CreateViewRequest& WithScope(const Aws::String& value) { SetScope(value); return *this;}
113 inline CreateViewRequest& WithScope(Aws::String&& value) { SetScope(std::move(value)); return *this;}
114 inline CreateViewRequest& WithScope(const char* value) { SetScope(value); return *this;}
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
124 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateViewRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
126 inline CreateViewRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
127 inline CreateViewRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
128 inline CreateViewRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline CreateViewRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
130 inline CreateViewRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
131 inline CreateViewRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
132 inline CreateViewRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
133 inline CreateViewRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135
137
143 inline const Aws::String& GetViewName() const{ return m_viewName; }
144 inline bool ViewNameHasBeenSet() const { return m_viewNameHasBeenSet; }
145 inline void SetViewName(const Aws::String& value) { m_viewNameHasBeenSet = true; m_viewName = value; }
146 inline void SetViewName(Aws::String&& value) { m_viewNameHasBeenSet = true; m_viewName = std::move(value); }
147 inline void SetViewName(const char* value) { m_viewNameHasBeenSet = true; m_viewName.assign(value); }
148 inline CreateViewRequest& WithViewName(const Aws::String& value) { SetViewName(value); return *this;}
149 inline CreateViewRequest& WithViewName(Aws::String&& value) { SetViewName(std::move(value)); return *this;}
150 inline CreateViewRequest& WithViewName(const char* value) { SetViewName(value); return *this;}
152 private:
153
154 Aws::String m_clientToken;
155 bool m_clientTokenHasBeenSet = false;
156
157 SearchFilter m_filters;
158 bool m_filtersHasBeenSet = false;
159
160 Aws::Vector<IncludedProperty> m_includedProperties;
161 bool m_includedPropertiesHasBeenSet = false;
162
163 Aws::String m_scope;
164 bool m_scopeHasBeenSet = false;
165
167 bool m_tagsHasBeenSet = false;
168
169 Aws::String m_viewName;
170 bool m_viewNameHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace ResourceExplorer2
175} // namespace Aws
CreateViewRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateViewRequest & WithScope(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateViewRequest & WithViewName(const Aws::String &value)
CreateViewRequest & WithFilters(SearchFilter &&value)
CreateViewRequest & AddIncludedProperties(IncludedProperty &&value)
CreateViewRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateViewRequest & AddTags(const char *key, const char *value)
CreateViewRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateViewRequest & WithViewName(Aws::String &&value)
CreateViewRequest & AddIncludedProperties(const IncludedProperty &value)
CreateViewRequest & AddTags(Aws::String &&key, const char *value)
CreateViewRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateViewRequest & WithClientToken(const Aws::String &value)
CreateViewRequest & WithIncludedProperties(Aws::Vector< IncludedProperty > &&value)
CreateViewRequest & WithIncludedProperties(const Aws::Vector< IncludedProperty > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< IncludedProperty > & GetIncludedProperties() const
CreateViewRequest & WithClientToken(const char *value)
AWS_RESOURCEEXPLORER2_API CreateViewRequest()
void SetIncludedProperties(Aws::Vector< IncludedProperty > &&value)
CreateViewRequest & AddTags(const char *key, Aws::String &&value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
CreateViewRequest & WithFilters(const SearchFilter &value)
CreateViewRequest & WithClientToken(Aws::String &&value)
void SetIncludedProperties(const Aws::Vector< IncludedProperty > &value)
CreateViewRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateViewRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateViewRequest & WithScope(Aws::String &&value)
CreateViewRequest & WithViewName(const char *value)
CreateViewRequest & WithScope(const Aws::String &value)
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