AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTrackerRequest.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/location/model/PositionFiltering.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LocationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOCATIONSERVICE_API CreateTrackerRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateTracker"; }
33
34 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetTrackerName() const { return m_trackerName; }
46 inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
47 template<typename TrackerNameT = Aws::String>
48 void SetTrackerName(TrackerNameT&& value) { m_trackerNameHasBeenSet = true; m_trackerName = std::forward<TrackerNameT>(value); }
49 template<typename TrackerNameT = Aws::String>
50 CreateTrackerRequest& WithTrackerName(TrackerNameT&& value) { SetTrackerName(std::forward<TrackerNameT>(value)); return *this;}
52
54
60 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
61 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
62 template<typename KmsKeyIdT = Aws::String>
63 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
64 template<typename KmsKeyIdT = Aws::String>
65 CreateTrackerRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 CreateTrackerRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 CreateTrackerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CreateTrackerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
101 }
103
105
127 inline PositionFiltering GetPositionFiltering() const { return m_positionFiltering; }
128 inline bool PositionFilteringHasBeenSet() const { return m_positionFilteringHasBeenSet; }
129 inline void SetPositionFiltering(PositionFiltering value) { m_positionFilteringHasBeenSet = true; m_positionFiltering = value; }
132
134
140 inline bool GetEventBridgeEnabled() const { return m_eventBridgeEnabled; }
141 inline bool EventBridgeEnabledHasBeenSet() const { return m_eventBridgeEnabledHasBeenSet; }
142 inline void SetEventBridgeEnabled(bool value) { m_eventBridgeEnabledHasBeenSet = true; m_eventBridgeEnabled = value; }
143 inline CreateTrackerRequest& WithEventBridgeEnabled(bool value) { SetEventBridgeEnabled(value); return *this;}
145
147
161 inline bool GetKmsKeyEnableGeospatialQueries() const { return m_kmsKeyEnableGeospatialQueries; }
162 inline bool KmsKeyEnableGeospatialQueriesHasBeenSet() const { return m_kmsKeyEnableGeospatialQueriesHasBeenSet; }
163 inline void SetKmsKeyEnableGeospatialQueries(bool value) { m_kmsKeyEnableGeospatialQueriesHasBeenSet = true; m_kmsKeyEnableGeospatialQueries = value; }
166 private:
167
168 Aws::String m_trackerName;
169 bool m_trackerNameHasBeenSet = false;
170
171 Aws::String m_kmsKeyId;
172 bool m_kmsKeyIdHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
178 bool m_tagsHasBeenSet = false;
179
181 bool m_positionFilteringHasBeenSet = false;
182
183 bool m_eventBridgeEnabled{false};
184 bool m_eventBridgeEnabledHasBeenSet = false;
185
186 bool m_kmsKeyEnableGeospatialQueries{false};
187 bool m_kmsKeyEnableGeospatialQueriesHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace LocationService
192} // 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