/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace LocationService { namespace Model { /** */ class CreateRouteCalculatorRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API CreateRouteCalculatorRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateRouteCalculator"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline const Aws::String& GetCalculatorName() const{ return m_calculatorName; } /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline bool CalculatorNameHasBeenSet() const { return m_calculatorNameHasBeenSet; } /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline void SetCalculatorName(const Aws::String& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = value; } /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline void SetCalculatorName(Aws::String&& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = std::move(value); } /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline void SetCalculatorName(const char* value) { m_calculatorNameHasBeenSet = true; m_calculatorName.assign(value); } /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline CreateRouteCalculatorRequest& WithCalculatorName(const Aws::String& value) { SetCalculatorName(value); return *this;} /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline CreateRouteCalculatorRequest& WithCalculatorName(Aws::String&& value) { SetCalculatorName(std::move(value)); return *this;} /** *

The name of the route calculator resource.

Requirements:

    *
  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods * (.), and underscores (_).

  • Must be a unique Route calculator * resource name.

  • No spaces allowed. For example, * ExampleRouteCalculator.

*/ inline CreateRouteCalculatorRequest& WithCalculatorName(const char* value) { SetCalculatorName(value); return *this;} /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline const Aws::String& GetDataSource() const{ return m_dataSource; } /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); } /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline CreateRouteCalculatorRequest& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;} /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline CreateRouteCalculatorRequest& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;} /** *

Specifies the data provider of traffic and road network data.

*

This field is case-sensitive. Enter the valid values as shown. For example, * entering HERE returns an error.

Valid values * include:

For additional information , see * Data * providers on the Amazon Location Service Developer Guide.

*/ inline CreateRouteCalculatorRequest& WithDataSource(const char* value) { SetDataSource(value); return *this;} /** *

The optional description for the route calculator resource.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The optional description for the route calculator resource.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The optional description for the route calculator resource.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The optional description for the route calculator resource.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The optional description for the route calculator resource.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The optional description for the route calculator resource.

*/ inline CreateRouteCalculatorRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The optional description for the route calculator resource.

*/ inline CreateRouteCalculatorRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The optional description for the route calculator resource.

*/ inline CreateRouteCalculatorRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Applies one or more tags to the route calculator resource. A tag is a * key-value pair helps manage, identify, search, and filter your resources by * labelling them.

  • For example: { "tag1" : "value1", * "tag2" : "value2"}

Format: "key" : * "value"

Restrictions:

  • Maximum 50 tags per * resource

  • Each resource tag must be unique with a maximum of * one value.

  • Maximum key length: 128 Unicode characters in * UTF-8

  • Maximum value length: 256 Unicode characters in * UTF-8

  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the * following characters: + - = . _ : / @.

  • Cannot use "aws:" as a * prefix for a key.

*/ inline CreateRouteCalculatorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_calculatorName; bool m_calculatorNameHasBeenSet = false; Aws::String m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws