AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
StartSearchJobRequest.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearchRequest.h>
8#include <aws/backupsearch/BackupSearch_EXPORTS.h>
9#include <aws/backupsearch/model/ItemFilters.h>
10#include <aws/backupsearch/model/SearchScope.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BackupSearch {
18namespace Model {
19
23 public:
24 AWS_BACKUPSEARCH_API StartSearchJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartSearchJob"; }
31
32 AWS_BACKUPSEARCH_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
39 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
40 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
41 void SetTags(TagsT&& value) {
42 m_tagsHasBeenSet = true;
43 m_tags = std::forward<TagsT>(value);
44 }
45 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
47 SetTags(std::forward<TagsT>(value));
48 return *this;
49 }
50 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
51 StartSearchJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
52 m_tagsHasBeenSet = true;
53 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
81 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
82 template <typename EncryptionKeyArnT = Aws::String>
83 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
84 m_encryptionKeyArnHasBeenSet = true;
85 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
86 }
87 template <typename EncryptionKeyArnT = Aws::String>
88 StartSearchJobRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
89 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template <typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) {
105 m_clientTokenHasBeenSet = true;
106 m_clientToken = std::forward<ClientTokenT>(value);
107 }
108 template <typename ClientTokenT = Aws::String>
109 StartSearchJobRequest& WithClientToken(ClientTokenT&& value) {
110 SetClientToken(std::forward<ClientTokenT>(value));
111 return *this;
112 }
114
116
121 inline const SearchScope& GetSearchScope() const { return m_searchScope; }
122 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
123 template <typename SearchScopeT = SearchScope>
124 void SetSearchScope(SearchScopeT&& value) {
125 m_searchScopeHasBeenSet = true;
126 m_searchScope = std::forward<SearchScopeT>(value);
127 }
128 template <typename SearchScopeT = SearchScope>
129 StartSearchJobRequest& WithSearchScope(SearchScopeT&& value) {
130 SetSearchScope(std::forward<SearchScopeT>(value));
131 return *this;
132 }
134
136
140 inline const ItemFilters& GetItemFilters() const { return m_itemFilters; }
141 inline bool ItemFiltersHasBeenSet() const { return m_itemFiltersHasBeenSet; }
142 template <typename ItemFiltersT = ItemFilters>
143 void SetItemFilters(ItemFiltersT&& value) {
144 m_itemFiltersHasBeenSet = true;
145 m_itemFilters = std::forward<ItemFiltersT>(value);
146 }
147 template <typename ItemFiltersT = ItemFilters>
148 StartSearchJobRequest& WithItemFilters(ItemFiltersT&& value) {
149 SetItemFilters(std::forward<ItemFiltersT>(value));
150 return *this;
151 }
153 private:
155
156 Aws::String m_name;
157
158 Aws::String m_encryptionKeyArn;
159
160 Aws::String m_clientToken;
161
162 SearchScope m_searchScope;
163
164 ItemFilters m_itemFilters;
165 bool m_tagsHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_encryptionKeyArnHasBeenSet = false;
168 bool m_clientTokenHasBeenSet = false;
169 bool m_searchScopeHasBeenSet = false;
170 bool m_itemFiltersHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace BackupSearch
175} // namespace Aws
virtual const char * GetServiceRequestName() const override
StartSearchJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BACKUPSEARCH_API Aws::String SerializePayload() const override
StartSearchJobRequest & WithName(NameT &&value)
StartSearchJobRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
StartSearchJobRequest & WithTags(TagsT &&value)
StartSearchJobRequest & WithSearchScope(SearchScopeT &&value)
StartSearchJobRequest & WithClientToken(ClientTokenT &&value)
StartSearchJobRequest & WithItemFilters(ItemFiltersT &&value)
AWS_BACKUPSEARCH_API StartSearchJobRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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