AWS SDK for C++  1.9.126
AWS SDK for C++
CreateRouteCalculatorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace LocationService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CreateRouteCalculator"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
44  inline const Aws::String& GetCalculatorName() const{ return m_calculatorName; }
45 
53  inline bool CalculatorNameHasBeenSet() const { return m_calculatorNameHasBeenSet; }
54 
62  inline void SetCalculatorName(const Aws::String& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = value; }
63 
71  inline void SetCalculatorName(Aws::String&& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = std::move(value); }
72 
80  inline void SetCalculatorName(const char* value) { m_calculatorNameHasBeenSet = true; m_calculatorName.assign(value); }
81 
89  inline CreateRouteCalculatorRequest& WithCalculatorName(const Aws::String& value) { SetCalculatorName(value); return *this;}
90 
98  inline CreateRouteCalculatorRequest& WithCalculatorName(Aws::String&& value) { SetCalculatorName(std::move(value)); return *this;}
99 
107  inline CreateRouteCalculatorRequest& WithCalculatorName(const char* value) { SetCalculatorName(value); return *this;}
108 
109 
132  inline const Aws::String& GetDataSource() const{ return m_dataSource; }
133 
156  inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
157 
180  inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
181 
204  inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
205 
228  inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); }
229 
252  inline CreateRouteCalculatorRequest& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;}
253 
276  inline CreateRouteCalculatorRequest& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;}
277 
300  inline CreateRouteCalculatorRequest& WithDataSource(const char* value) { SetDataSource(value); return *this;}
301 
302 
306  inline const Aws::String& GetDescription() const{ return m_description; }
307 
311  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
312 
316  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
317 
321  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
322 
326  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
327 
331  inline CreateRouteCalculatorRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
332 
336  inline CreateRouteCalculatorRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
337 
341  inline CreateRouteCalculatorRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
342 
343 
350  inline const PricingPlan& GetPricingPlan() const{ return m_pricingPlan; }
351 
358  inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
359 
366  inline void SetPricingPlan(const PricingPlan& value) { m_pricingPlanHasBeenSet = true; m_pricingPlan = value; }
367 
374  inline void SetPricingPlan(PricingPlan&& value) { m_pricingPlanHasBeenSet = true; m_pricingPlan = std::move(value); }
375 
382  inline CreateRouteCalculatorRequest& WithPricingPlan(const PricingPlan& value) { SetPricingPlan(value); return *this;}
383 
390  inline CreateRouteCalculatorRequest& WithPricingPlan(PricingPlan&& value) { SetPricingPlan(std::move(value)); return *this;}
391 
392 
405  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
406 
419  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
420 
433  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
434 
447  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
448 
461  inline CreateRouteCalculatorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
462 
475  inline CreateRouteCalculatorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
476 
489  inline CreateRouteCalculatorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
490 
503  inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
504 
517  inline CreateRouteCalculatorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
518 
531  inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
532 
545  inline CreateRouteCalculatorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
546 
559  inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
560 
573  inline CreateRouteCalculatorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
574 
575  private:
576 
577  Aws::String m_calculatorName;
578  bool m_calculatorNameHasBeenSet;
579 
580  Aws::String m_dataSource;
581  bool m_dataSourceHasBeenSet;
582 
583  Aws::String m_description;
584  bool m_descriptionHasBeenSet;
585 
586  PricingPlan m_pricingPlan;
587  bool m_pricingPlanHasBeenSet;
588 
590  bool m_tagsHasBeenSet;
591  };
592 
593 } // namespace Model
594 } // namespace LocationService
595 } // namespace Aws
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDescription
CreateRouteCalculatorRequest & WithDescription(const char *value)
Definition: CreateRouteCalculatorRequest.h:341
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDataSource
CreateRouteCalculatorRequest & WithDataSource(const char *value)
Definition: CreateRouteCalculatorRequest.h:300
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDescription
CreateRouteCalculatorRequest & WithDescription(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:331
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDataSource
void SetDataSource(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:204
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithTags
CreateRouteCalculatorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRouteCalculatorRequest.h:461
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetCalculatorName
void SetCalculatorName(const char *value)
Definition: CreateRouteCalculatorRequest.h:80
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDescription
CreateRouteCalculatorRequest & WithDescription(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:336
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetDataSource
const Aws::String & GetDataSource() const
Definition: CreateRouteCalculatorRequest.h:132
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:489
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateRouteCalculatorRequest.h:405
Aws::LocationService::Model::CreateRouteCalculatorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LocationService::Model::CreateRouteCalculatorRequest::CreateRouteCalculatorRequest
CreateRouteCalculatorRequest()
Aws::LocationService::Model::PricingPlan
PricingPlan
Definition: PricingPlan.h:17
Aws::LocationService::Model::CreateRouteCalculatorRequest::CalculatorNameHasBeenSet
bool CalculatorNameHasBeenSet() const
Definition: CreateRouteCalculatorRequest.h:53
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateRouteCalculatorRequest.h:306
AWS_LOCATIONSERVICE_API
#define AWS_LOCATIONSERVICE_API
Definition: LocationService_EXPORTS.h:28
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:316
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:545
PricingPlan.h
LocationServiceRequest.h
LocationService_EXPORTS.h
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetPricingPlan
void SetPricingPlan(PricingPlan &&value)
Definition: CreateRouteCalculatorRequest.h:374
Aws::LocationService::Model::CreateRouteCalculatorRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateRouteCalculatorRequest.h:311
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateRouteCalculatorRequest.h:326
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDataSource
CreateRouteCalculatorRequest & WithDataSource(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:276
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithTags
CreateRouteCalculatorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRouteCalculatorRequest.h:475
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithCalculatorName
CreateRouteCalculatorRequest & WithCalculatorName(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:98
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetPricingPlan
void SetPricingPlan(const PricingPlan &value)
Definition: CreateRouteCalculatorRequest.h:366
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithPricingPlan
CreateRouteCalculatorRequest & WithPricingPlan(const PricingPlan &value)
Definition: CreateRouteCalculatorRequest.h:382
Aws::LocationService::Model::CreateRouteCalculatorRequest::DataSourceHasBeenSet
bool DataSourceHasBeenSet() const
Definition: CreateRouteCalculatorRequest.h:156
AWSString.h
Aws::LocationService::Model::CreateRouteCalculatorRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRouteCalculatorRequest.h:419
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithDataSource
CreateRouteCalculatorRequest & WithDataSource(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:252
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:517
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetCalculatorName
void SetCalculatorName(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:71
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithCalculatorName
CreateRouteCalculatorRequest & WithCalculatorName(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:89
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:503
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDataSource
void SetDataSource(const char *value)
Definition: CreateRouteCalculatorRequest.h:228
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:531
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetCalculatorName
void SetCalculatorName(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:62
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRouteCalculatorRequest.h:447
Aws
Definition: AccessManagementClient.h:15
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDataSource
void SetDataSource(const Aws::String &value)
Definition: CreateRouteCalculatorRequest.h:180
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithCalculatorName
CreateRouteCalculatorRequest & WithCalculatorName(const char *value)
Definition: CreateRouteCalculatorRequest.h:107
Aws::LocationService::Model::CreateRouteCalculatorRequest::WithPricingPlan
CreateRouteCalculatorRequest & WithPricingPlan(PricingPlan &&value)
Definition: CreateRouteCalculatorRequest.h:390
Aws::LocationService::Model::CreateRouteCalculatorRequest::PricingPlanHasBeenSet
bool PricingPlanHasBeenSet() const
Definition: CreateRouteCalculatorRequest.h:358
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LocationService::Model::CreateRouteCalculatorRequest
Definition: CreateRouteCalculatorRequest.h:24
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateRouteCalculatorRequest.h:321
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetPricingPlan
const PricingPlan & GetPricingPlan() const
Definition: CreateRouteCalculatorRequest.h:350
Aws::LocationService::Model::CreateRouteCalculatorRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRouteCalculatorRequest.h:433
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRouteCalculatorRequest.h:32
AWSMap.h
Aws::LocationService::LocationServiceRequest
Definition: LocationServiceRequest.h:17
Aws::LocationService::Model::CreateRouteCalculatorRequest::GetCalculatorName
const Aws::String & GetCalculatorName() const
Definition: CreateRouteCalculatorRequest.h:44
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(const char *key, const char *value)
Definition: CreateRouteCalculatorRequest.h:573
Aws::LocationService::Model::CreateRouteCalculatorRequest::AddTags
CreateRouteCalculatorRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateRouteCalculatorRequest.h:559
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19