AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMapRequest.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/location/model/MapConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LocationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOCATIONSERVICE_API CreateMapRequest();
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 "CreateMap"; }
33
34 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetMapName() const{ return m_mapName; }
46 inline bool MapNameHasBeenSet() const { return m_mapNameHasBeenSet; }
47 inline void SetMapName(const Aws::String& value) { m_mapNameHasBeenSet = true; m_mapName = value; }
48 inline void SetMapName(Aws::String&& value) { m_mapNameHasBeenSet = true; m_mapName = std::move(value); }
49 inline void SetMapName(const char* value) { m_mapNameHasBeenSet = true; m_mapName.assign(value); }
50 inline CreateMapRequest& WithMapName(const Aws::String& value) { SetMapName(value); return *this;}
51 inline CreateMapRequest& WithMapName(Aws::String&& value) { SetMapName(std::move(value)); return *this;}
52 inline CreateMapRequest& WithMapName(const char* value) { SetMapName(value); return *this;}
54
56
61 inline const MapConfiguration& GetConfiguration() const{ return m_configuration; }
62 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
63 inline void SetConfiguration(const MapConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
64 inline void SetConfiguration(MapConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
65 inline CreateMapRequest& WithConfiguration(const MapConfiguration& value) { SetConfiguration(value); return *this;}
66 inline CreateMapRequest& WithConfiguration(MapConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateMapRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreateMapRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreateMapRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline CreateMapRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
100 inline CreateMapRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateMapRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102 inline CreateMapRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
103 inline CreateMapRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline CreateMapRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
105 inline CreateMapRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateMapRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
107 inline CreateMapRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
109 private:
110
111 Aws::String m_mapName;
112 bool m_mapNameHasBeenSet = false;
113
114 MapConfiguration m_configuration;
115 bool m_configurationHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace LocationService
126} // namespace Aws
const MapConfiguration & GetConfiguration() const
CreateMapRequest & WithConfiguration(const MapConfiguration &value)
void SetDescription(const Aws::String &value)
CreateMapRequest & AddTags(const char *key, const char *value)
CreateMapRequest & WithDescription(const Aws::String &value)
CreateMapRequest & WithMapName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetConfiguration(const MapConfiguration &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateMapRequest & WithMapName(const char *value)
AWS_LOCATIONSERVICE_API CreateMapRequest()
CreateMapRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMapRequest & WithConfiguration(MapConfiguration &&value)
CreateMapRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateMapRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetMapName(const Aws::String &value)
CreateMapRequest & WithDescription(const char *value)
CreateMapRequest & WithDescription(Aws::String &&value)
void SetConfiguration(MapConfiguration &&value)
CreateMapRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateMapRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMapRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMapRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMapRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMapRequest & WithMapName(Aws::String &&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