AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateMapRequest.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/MapConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API CreateMapRequest() = 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 "CreateMap"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetMapName() const { return m_mapName; }
42 inline bool MapNameHasBeenSet() const { return m_mapNameHasBeenSet; }
43 template <typename MapNameT = Aws::String>
44 void SetMapName(MapNameT&& value) {
45 m_mapNameHasBeenSet = true;
46 m_mapName = std::forward<MapNameT>(value);
47 }
48 template <typename MapNameT = Aws::String>
49 CreateMapRequest& WithMapName(MapNameT&& value) {
50 SetMapName(std::forward<MapNameT>(value));
51 return *this;
52 }
54
56
61 inline const MapConfiguration& GetConfiguration() const { return m_configuration; }
62 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
63 template <typename ConfigurationT = MapConfiguration>
64 void SetConfiguration(ConfigurationT&& value) {
65 m_configurationHasBeenSet = true;
66 m_configuration = std::forward<ConfigurationT>(value);
67 }
68 template <typename ConfigurationT = MapConfiguration>
69 CreateMapRequest& WithConfiguration(ConfigurationT&& value) {
70 SetConfiguration(std::forward<ConfigurationT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 CreateMapRequest& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateMapRequest& WithTags(TagsT&& value) {
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateMapRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_mapName;
126
127 MapConfiguration m_configuration;
128
129 Aws::String m_description;
130
132 bool m_mapNameHasBeenSet = false;
133 bool m_configurationHasBeenSet = false;
134 bool m_descriptionHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace LocationService
140} // 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