AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateTrackerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/PositionFiltering.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API CreateTrackerRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateTracker"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetTrackerName() const { return m_trackerName; }
42 inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
43 template <typename TrackerNameT = Aws::String>
44 void SetTrackerName(TrackerNameT&& value) {
45 m_trackerNameHasBeenSet = true;
46 m_trackerName = std::forward<TrackerNameT>(value);
47 }
48 template <typename TrackerNameT = Aws::String>
49 CreateTrackerRequest& WithTrackerName(TrackerNameT&& value) {
50 SetTrackerName(std::forward<TrackerNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
63 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
64 template <typename KmsKeyIdT = Aws::String>
65 void SetKmsKeyId(KmsKeyIdT&& value) {
66 m_kmsKeyIdHasBeenSet = true;
67 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
68 }
69 template <typename KmsKeyIdT = Aws::String>
70 CreateTrackerRequest& WithKmsKeyId(KmsKeyIdT&& value) {
71 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 CreateTrackerRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CreateTrackerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
122 return *this;
123 }
125
127
149 inline PositionFiltering GetPositionFiltering() const { return m_positionFiltering; }
150 inline bool PositionFilteringHasBeenSet() const { return m_positionFilteringHasBeenSet; }
152 m_positionFilteringHasBeenSet = true;
153 m_positionFiltering = value;
154 }
157 return *this;
158 }
160
162
168 inline bool GetEventBridgeEnabled() const { return m_eventBridgeEnabled; }
169 inline bool EventBridgeEnabledHasBeenSet() const { return m_eventBridgeEnabledHasBeenSet; }
170 inline void SetEventBridgeEnabled(bool value) {
171 m_eventBridgeEnabledHasBeenSet = true;
172 m_eventBridgeEnabled = value;
173 }
176 return *this;
177 }
179
181
195 inline bool GetKmsKeyEnableGeospatialQueries() const { return m_kmsKeyEnableGeospatialQueries; }
196 inline bool KmsKeyEnableGeospatialQueriesHasBeenSet() const { return m_kmsKeyEnableGeospatialQueriesHasBeenSet; }
197 inline void SetKmsKeyEnableGeospatialQueries(bool value) {
198 m_kmsKeyEnableGeospatialQueriesHasBeenSet = true;
199 m_kmsKeyEnableGeospatialQueries = value;
200 }
203 return *this;
204 }
206 private:
207 Aws::String m_trackerName;
208
209 Aws::String m_kmsKeyId;
210
211 Aws::String m_description;
212
214
216
217 bool m_eventBridgeEnabled{false};
218
219 bool m_kmsKeyEnableGeospatialQueries{false};
220 bool m_trackerNameHasBeenSet = false;
221 bool m_kmsKeyIdHasBeenSet = false;
222 bool m_descriptionHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224 bool m_positionFilteringHasBeenSet = false;
225 bool m_eventBridgeEnabledHasBeenSet = false;
226 bool m_kmsKeyEnableGeospatialQueriesHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace LocationService
231} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateTrackerRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateTrackerRequest & WithPositionFiltering(PositionFiltering value)
CreateTrackerRequest & WithTags(TagsT &&value)
CreateTrackerRequest & WithDescription(DescriptionT &&value)
CreateTrackerRequest & WithTrackerName(TrackerNameT &&value)
CreateTrackerRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_LOCATIONSERVICE_API CreateTrackerRequest()=default
CreateTrackerRequest & WithEventBridgeEnabled(bool value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateTrackerRequest & WithKmsKeyEnableGeospatialQueries(bool 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