AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRouteCalculatorRequest.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
12#include <utility>
13
14namespace Aws {
15namespace LocationService {
16namespace Model {
17
21 public:
22 AWS_LOCATIONSERVICE_API CreateRouteCalculatorRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteCalculator"; }
29
30 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetCalculatorName() const { return m_calculatorName; }
41 inline bool CalculatorNameHasBeenSet() const { return m_calculatorNameHasBeenSet; }
42 template <typename CalculatorNameT = Aws::String>
43 void SetCalculatorName(CalculatorNameT&& value) {
44 m_calculatorNameHasBeenSet = true;
45 m_calculatorName = std::forward<CalculatorNameT>(value);
46 }
47 template <typename CalculatorNameT = Aws::String>
49 SetCalculatorName(std::forward<CalculatorNameT>(value));
50 return *this;
51 }
53
55
83 inline const Aws::String& GetDataSource() const { return m_dataSource; }
84 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
85 template <typename DataSourceT = Aws::String>
86 void SetDataSource(DataSourceT&& value) {
87 m_dataSourceHasBeenSet = true;
88 m_dataSource = std::forward<DataSourceT>(value);
89 }
90 template <typename DataSourceT = Aws::String>
92 SetDataSource(std::forward<DataSourceT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
142 CreateRouteCalculatorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_calculatorName;
150
151 Aws::String m_dataSource;
152
153 Aws::String m_description;
154
156 bool m_calculatorNameHasBeenSet = false;
157 bool m_dataSourceHasBeenSet = false;
158 bool m_descriptionHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace LocationService
164} // namespace Aws
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateRouteCalculatorRequest & WithDescription(DescriptionT &&value)
CreateRouteCalculatorRequest & WithCalculatorName(CalculatorNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_LOCATIONSERVICE_API CreateRouteCalculatorRequest()=default
CreateRouteCalculatorRequest & WithDataSource(DataSourceT &&value)
CreateRouteCalculatorRequest & AddTags(TagsKeyT &&key, TagsValueT &&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