/* * 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: *
*
* Esri – For additional information about Esri's coverage in your region of
* interest, see Esri
* details on geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information about
* GrabMaps' coverage, see GrabMaps countries
* and areas covered.
*
* Here – For additional information about HERE Technologies' coverage in
* your region of interest, see HERE details on
* goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store
* results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location Service.
*
* 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: *
** 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.
*
* No longer used. If included, the only allowed value is RequestBasedUsage.
*
* 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. *
** 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: *
*
* Esri – For additional information about Esri's coverage in your region of
* interest, see Esri
* details on geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information about
* GrabMaps' coverage, see GrabMaps countries
* and areas covered.
*
* Here – For additional information about HERE Technologies' coverage in
* your region of interest, see HERE details on
* goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store
* results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location Service.
*
* 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: *
*
* Esri – For additional information about Esri's coverage in your
* region of interest, see Esri details on
* geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information
* about GrabMaps'
* coverage, see GrabMaps
* countries and areas covered.
*
* Here – For additional information about HERE Technologies'
* coverage in your region of interest, see HERE
* details on goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location
* Service.
*
* 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: *
*
* Esri – For additional information about Esri's coverage in your region of
* interest, see Esri
* details on geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information about
* GrabMaps' coverage, see GrabMaps countries
* and areas covered.
*
* Here – For additional information about HERE Technologies' coverage in
* your region of interest, see HERE details on
* goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store
* results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location Service.
*
* 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: *
*
* Esri – For additional information about Esri's coverage in your
* region of interest, see Esri details on
* geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional
* information about GrabMaps' coverage, see
* GrabMaps
* countries and areas covered.
*
* Here – For additional information about HERE Technologies'
* coverage in your region of interest, see HERE
* details on goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location
* Service.
*
* 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: *
*
* Esri – For additional information about Esri's coverage in your region of
* interest, see Esri
* details on geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information about
* GrabMaps' coverage, see GrabMaps countries
* and areas covered.
*
* Here – For additional information about HERE Technologies' coverage in
* your region of interest, see HERE details on
* goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store
* results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location Service.
*
* 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: *
*
* Esri – For additional information about Esri's coverage in your
* region of interest, see Esri details on
* geocoding coverage.
*
* Grab – Grab provides place index functionality for Southeast Asia. For additional information
* about GrabMaps'
* coverage, see GrabMaps
* countries and areas covered.
*
* Here – For additional information about HERE Technologies'
* coverage in your region of interest, see HERE
* details on goecoding coverage.
*
* If you specify HERE Technologies (Here) as the data provider, you may not store results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location
* Service.
*
* 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: *
** 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* No longer used. If included, the only allowed value is RequestBasedUsage.
*
RequestBasedUsage.
* @see PricingPlan
*/
@Deprecated
public void setPricingPlan(String pricingPlan) {
this.pricingPlan = pricingPlan;
}
/**
*
* No longer used. If included, the only allowed value is RequestBasedUsage.
*
RequestBasedUsage.
* @see PricingPlan
*/
@Deprecated
public String getPricingPlan() {
return this.pricingPlan;
}
/**
*
* No longer used. If included, the only allowed value is RequestBasedUsage.
*
RequestBasedUsage.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public CreatePlaceIndexRequest withPricingPlan(String pricingPlan) {
setPricingPlan(pricingPlan);
return this;
}
/**
*
* No longer used. If included, the only allowed value is RequestBasedUsage.
*
RequestBasedUsage.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public CreatePlaceIndexRequest withPricingPlan(PricingPlan pricingPlan) {
this.pricingPlan = pricingPlan.toString();
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. *
*
* 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. *
** 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. *
*
* 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. *
** 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. *
*
* 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. *
*