AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartSearchJobRequest.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/BackupSearchRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/backupsearch/model/SearchScope.h>
12#include <aws/backupsearch/model/ItemFilters.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BackupSearch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BACKUPSEARCH_API StartSearchJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartSearchJob"; }
34
35 AWS_BACKUPSEARCH_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
43 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
44 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
45 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
46 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
47 StartSearchJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
48 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
49 StartSearchJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
50 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 StartSearchJobRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
71 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
72 template<typename EncryptionKeyArnT = Aws::String>
73 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
74 template<typename EncryptionKeyArnT = Aws::String>
75 StartSearchJobRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
77
79
85 inline const Aws::String& GetClientToken() const { return m_clientToken; }
86 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 template<typename ClientTokenT = Aws::String>
88 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
89 template<typename ClientTokenT = Aws::String>
90 StartSearchJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
92
94
99 inline const SearchScope& GetSearchScope() const { return m_searchScope; }
100 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
101 template<typename SearchScopeT = SearchScope>
102 void SetSearchScope(SearchScopeT&& value) { m_searchScopeHasBeenSet = true; m_searchScope = std::forward<SearchScopeT>(value); }
103 template<typename SearchScopeT = SearchScope>
104 StartSearchJobRequest& WithSearchScope(SearchScopeT&& value) { SetSearchScope(std::forward<SearchScopeT>(value)); return *this;}
106
108
112 inline const ItemFilters& GetItemFilters() const { return m_itemFilters; }
113 inline bool ItemFiltersHasBeenSet() const { return m_itemFiltersHasBeenSet; }
114 template<typename ItemFiltersT = ItemFilters>
115 void SetItemFilters(ItemFiltersT&& value) { m_itemFiltersHasBeenSet = true; m_itemFilters = std::forward<ItemFiltersT>(value); }
116 template<typename ItemFiltersT = ItemFilters>
117 StartSearchJobRequest& WithItemFilters(ItemFiltersT&& value) { SetItemFilters(std::forward<ItemFiltersT>(value)); return *this;}
119 private:
120
122 bool m_tagsHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_encryptionKeyArn;
128 bool m_encryptionKeyArnHasBeenSet = false;
129
130 Aws::String m_clientToken;
131 bool m_clientTokenHasBeenSet = false;
132
133 SearchScope m_searchScope;
134 bool m_searchScopeHasBeenSet = false;
135
136 ItemFilters m_itemFilters;
137 bool m_itemFiltersHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace BackupSearch
142} // 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