/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace LocationService { namespace Model { /** */ class CreateMapRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API CreateMapRequest(); // 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 "CreateMap"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline const MapConfiguration& GetConfiguration() const{ return m_configuration; } /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline void SetConfiguration(const MapConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline void SetConfiguration(MapConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline CreateMapRequest& WithConfiguration(const MapConfiguration& value) { SetConfiguration(value); return *this;} /** *

Specifies the MapConfiguration, including the map style, for the * map resource that you create. The map style defines the look of maps and the * data provider for your map resource.

*/ inline CreateMapRequest& WithConfiguration(MapConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

An optional description for the map resource.

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

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline const Aws::String& GetMapName() const{ return m_mapName; } /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline bool MapNameHasBeenSet() const { return m_mapNameHasBeenSet; } /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline void SetMapName(const Aws::String& value) { m_mapNameHasBeenSet = true; m_mapName = value; } /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline void SetMapName(Aws::String&& value) { m_mapNameHasBeenSet = true; m_mapName = std::move(value); } /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline void SetMapName(const char* value) { m_mapNameHasBeenSet = true; m_mapName.assign(value); } /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline CreateMapRequest& WithMapName(const Aws::String& value) { SetMapName(value); return *this;} /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline CreateMapRequest& WithMapName(Aws::String&& value) { SetMapName(std::move(value)); return *this;} /** *

The name for the map resource.

Requirements:

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

  • Must be a unique map resource name.

    *
  • No spaces allowed. For example, ExampleMap.

  • *
*/ inline CreateMapRequest& WithMapName(const char* value) { SetMapName(value); return *this;} /** *

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

*

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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

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

*

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 CreateMapRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

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

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& 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 map resource. A tag is a key-value pair helps * manage, identify, search, and filter your resources by labelling them.

*

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 CreateMapRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: MapConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_mapName; bool m_mapNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws