/** * 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 CreatePlaceIndexRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API CreatePlaceIndexRequest(); // 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 "CreatePlaceIndex"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; /** *

Specifies the geospatial data provider for the new place index.

*

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 geospatial data provider for the new place index.

*

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 geospatial data provider for the new place index.

*

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 geospatial data provider for the new place index.

*

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 geospatial data provider for the new place index.

*

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 geospatial data provider for the new place index.

*

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 CreatePlaceIndexRequest& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;} /** *

Specifies the geospatial data provider for the new place index.

*

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 CreatePlaceIndexRequest& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;} /** *

Specifies the geospatial data provider for the new place index.

*

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 CreatePlaceIndexRequest& WithDataSource(const char* value) { SetDataSource(value); return *this;} /** *

Specifies the data storage option requesting Places.

*/ inline const DataSourceConfiguration& GetDataSourceConfiguration() const{ return m_dataSourceConfiguration; } /** *

Specifies the data storage option requesting Places.

*/ inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; } /** *

Specifies the data storage option requesting Places.

*/ inline void SetDataSourceConfiguration(const DataSourceConfiguration& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = value; } /** *

Specifies the data storage option requesting Places.

*/ inline void SetDataSourceConfiguration(DataSourceConfiguration&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::move(value); } /** *

Specifies the data storage option requesting Places.

*/ inline CreatePlaceIndexRequest& WithDataSourceConfiguration(const DataSourceConfiguration& value) { SetDataSourceConfiguration(value); return *this;} /** *

Specifies the data storage option requesting Places.

*/ inline CreatePlaceIndexRequest& WithDataSourceConfiguration(DataSourceConfiguration&& value) { SetDataSourceConfiguration(std::move(value)); return *this;} /** *

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The optional description for the place index resource.

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

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline CreatePlaceIndexRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline CreatePlaceIndexRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the place index resource.

Requirements:

  • *

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

  • Must be a unique place index * resource name.

  • No spaces allowed. For example, * ExamplePlaceIndex.

*/ inline CreatePlaceIndexRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

Applies one or more tags to the place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Applies one or more tags to the place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Applies one or more tags to the place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& 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 place index resource. A tag is a key-value * pair that helps you manage, identify, search, and filter your resources.

*

Format: "key" : "value"

Restrictions:

  • *

    Maximum 50 tags per resource.

  • Each tag key must be unique * and must have exactly one associated 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 CreatePlaceIndexRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_dataSource; bool m_dataSourceHasBeenSet = false; DataSourceConfiguration m_dataSourceConfiguration; bool m_dataSourceConfigurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws