AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 template<typename MapNameT = Aws::String>
48 void SetMapName(MapNameT&& value) { m_mapNameHasBeenSet = true; m_mapName = std::forward<MapNameT>(value); }
49 template<typename MapNameT = Aws::String>
50 CreateMapRequest& WithMapName(MapNameT&& value) { SetMapName(std::forward<MapNameT>(value)); return *this;}
52
54
59 inline const MapConfiguration& GetConfiguration() const { return m_configuration; }
60 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
61 template<typename ConfigurationT = MapConfiguration>
62 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
63 template<typename ConfigurationT = MapConfiguration>
64 CreateMapRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 CreateMapRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateMapRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateMapRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102 private:
103
104 Aws::String m_mapName;
105 bool m_mapNameHasBeenSet = false;
106
107 MapConfiguration m_configuration;
108 bool m_configurationHasBeenSet = false;
109
110 Aws::String m_description;
111 bool m_descriptionHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace LocationService
119} // namespace Aws
const MapConfiguration & GetConfiguration() const
virtual const char * GetServiceRequestName() const override
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateMapRequest & WithDescription(DescriptionT &&value)
CreateMapRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMapRequest & WithTags(TagsT &&value)
AWS_LOCATIONSERVICE_API CreateMapRequest()=default
CreateMapRequest & WithConfiguration(ConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
CreateMapRequest & WithMapName(MapNameT &&value)
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