/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.location.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreatePlaceIndexRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* 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. *

*/ private String dataSource; /** *

* Specifies the data storage option requesting Places. *

*/ private DataSourceConfiguration dataSourceConfiguration; /** *

* The optional description for the place index resource. *

*/ private String description; /** *

* The name of the place index resource. *

*

* Requirements: *

* */ private String indexName; /** *

* No longer used. If included, the only allowed value is RequestBasedUsage. *

*/ @Deprecated private String pricingPlan; /** *

* 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: *

* */ private java.util.Map tags; /** *

* 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. *

* * @param 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. */ public void setDataSource(String dataSource) { this.dataSource = 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. *

* * @return 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. */ public String getDataSource() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlaceIndexRequest withDataSource(String dataSource) { setDataSource(dataSource); return this; } /** *

* Specifies the data storage option requesting Places. *

* * @param dataSourceConfiguration * Specifies the data storage option requesting Places. */ public void setDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration) { this.dataSourceConfiguration = dataSourceConfiguration; } /** *

* Specifies the data storage option requesting Places. *

* * @return Specifies the data storage option requesting Places. */ public DataSourceConfiguration getDataSourceConfiguration() { return this.dataSourceConfiguration; } /** *

* Specifies the data storage option requesting Places. *

* * @param dataSourceConfiguration * Specifies the data storage option requesting Places. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlaceIndexRequest withDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration) { setDataSourceConfiguration(dataSourceConfiguration); return this; } /** *

* The optional description for the place index resource. *

* * @param description * The optional description for the place index resource. */ public void setDescription(String description) { this.description = description; } /** *

* The optional description for the place index resource. *

* * @return The optional description for the place index resource. */ public String getDescription() { return this.description; } /** *

* The optional description for the place index resource. *

* * @param description * The optional description for the place index resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlaceIndexRequest withDescription(String description) { setDescription(description); return this; } /** *

* The name of the place index resource. *

*

* Requirements: *

* * * @param indexName * The name of the place index resource.

*

* Requirements: *

*