AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTrackerName(const Aws::String& value) { m_trackerNameHasBeenSet = true; m_trackerName = value; }
48 inline void SetTrackerName(Aws::String&& value) { m_trackerNameHasBeenSet = true; m_trackerName = std::move(value); }
49 inline void SetTrackerName(const char* value) { m_trackerNameHasBeenSet = true; m_trackerName.assign(value); }
50 inline CreateTrackerRequest& WithTrackerName(const Aws::String& value) { SetTrackerName(value); return *this;}
51 inline CreateTrackerRequest& WithTrackerName(Aws::String&& value) { SetTrackerName(std::move(value)); return *this;}
52 inline CreateTrackerRequest& WithTrackerName(const char* value) { SetTrackerName(value); return *this;}
54
56
62 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
63 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
64 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
65 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
66 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
67 inline CreateTrackerRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
68 inline CreateTrackerRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
69 inline CreateTrackerRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline CreateTrackerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline CreateTrackerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline CreateTrackerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateTrackerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
103 inline CreateTrackerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
104 inline CreateTrackerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
105 inline CreateTrackerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline CreateTrackerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
107 inline CreateTrackerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
108 inline CreateTrackerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline CreateTrackerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline CreateTrackerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112
114
136 inline const PositionFiltering& GetPositionFiltering() const{ return m_positionFiltering; }
137 inline bool PositionFilteringHasBeenSet() const { return m_positionFilteringHasBeenSet; }
138 inline void SetPositionFiltering(const PositionFiltering& value) { m_positionFilteringHasBeenSet = true; m_positionFiltering = value; }
139 inline void SetPositionFiltering(PositionFiltering&& value) { m_positionFilteringHasBeenSet = true; m_positionFiltering = std::move(value); }
141 inline CreateTrackerRequest& WithPositionFiltering(PositionFiltering&& value) { SetPositionFiltering(std::move(value)); return *this;}
143
145
151 inline bool GetEventBridgeEnabled() const{ return m_eventBridgeEnabled; }
152 inline bool EventBridgeEnabledHasBeenSet() const { return m_eventBridgeEnabledHasBeenSet; }
153 inline void SetEventBridgeEnabled(bool value) { m_eventBridgeEnabledHasBeenSet = true; m_eventBridgeEnabled = value; }
154 inline CreateTrackerRequest& WithEventBridgeEnabled(bool value) { SetEventBridgeEnabled(value); return *this;}
156
158
172 inline bool GetKmsKeyEnableGeospatialQueries() const{ return m_kmsKeyEnableGeospatialQueries; }
173 inline bool KmsKeyEnableGeospatialQueriesHasBeenSet() const { return m_kmsKeyEnableGeospatialQueriesHasBeenSet; }
174 inline void SetKmsKeyEnableGeospatialQueries(bool value) { m_kmsKeyEnableGeospatialQueriesHasBeenSet = true; m_kmsKeyEnableGeospatialQueries = value; }
177 private:
178
179 Aws::String m_trackerName;
180 bool m_trackerNameHasBeenSet = false;
181
182 Aws::String m_kmsKeyId;
183 bool m_kmsKeyIdHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190
191 PositionFiltering m_positionFiltering;
192 bool m_positionFilteringHasBeenSet = false;
193
194 bool m_eventBridgeEnabled;
195 bool m_eventBridgeEnabledHasBeenSet = false;
196
197 bool m_kmsKeyEnableGeospatialQueries;
198 bool m_kmsKeyEnableGeospatialQueriesHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace LocationService
203} // namespace Aws
CreateTrackerRequest & WithTrackerName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTrackerRequest & WithDescription(const char *value)
CreateTrackerRequest & WithTrackerName(Aws::String &&value)
CreateTrackerRequest & WithKmsKeyId(Aws::String &&value)
CreateTrackerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateTrackerRequest & AddTags(Aws::String &&key, const char *value)
CreateTrackerRequest & AddTags(const char *key, Aws::String &&value)
const PositionFiltering & GetPositionFiltering() const
CreateTrackerRequest & AddTags(const char *key, const char *value)
CreateTrackerRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetPositionFiltering(const PositionFiltering &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTrackerRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateTrackerRequest & WithDescription(const Aws::String &value)
CreateTrackerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTrackerRequest & WithEventBridgeEnabled(bool value)
CreateTrackerRequest & WithKmsKeyId(const char *value)
CreateTrackerRequest & WithTrackerName(const Aws::String &value)
CreateTrackerRequest & WithKmsKeyId(const Aws::String &value)
CreateTrackerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTrackerRequest & WithPositionFiltering(const PositionFiltering &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateTrackerRequest & WithPositionFiltering(PositionFiltering &&value)
CreateTrackerRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateTrackerRequest & WithDescription(Aws::String &&value)
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