/* * 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 CreateGeofenceCollectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A custom name for the geofence collection. *
** Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* An optional description for the geofence collection. *
*/ private String description; /** ** A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. *
*/ private String kmsKeyId; /** *
* No longer used. If included, the only allowed value is RequestBasedUsage
.
*
* This parameter is no longer used. *
*/ @Deprecated private String pricingPlanDataSource; /** ** Applies one or more tags to the geofence collection. 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. *
** A custom name for the geofence collection. *
** Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* A custom name for the geofence collection. *
** Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* A custom name for the geofence collection. *
** Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* Requirements: *
** Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). *
** Must be a unique geofence collection name. *
*
* No spaces allowed. For example, ExampleGeofenceCollection
.
*
* An optional description for the geofence collection. *
* * @param description * An optional description for the geofence collection. */ public void setDescription(String description) { this.description = description; } /** ** An optional description for the geofence collection. *
* * @return An optional description for the geofence collection. */ public String getDescription() { return this.description; } /** ** An optional description for the geofence collection. *
* * @param description * An optional description for the geofence collection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGeofenceCollectionRequest withDescription(String description) { setDescription(description); return this; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. *
* * @param kmsKeyId * A key identifier for an Amazon Web Services KMS * customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. *
* * @return A key identifier for an Amazon Web Services KMS * customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. *
* * @param kmsKeyId * A key identifier for an Amazon Web Services KMS * customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGeofenceCollectionRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *
* 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 CreateGeofenceCollectionRequest 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 CreateGeofenceCollectionRequest withPricingPlan(PricingPlan pricingPlan) {
this.pricingPlan = pricingPlan.toString();
return this;
}
/**
* * This parameter is no longer used. *
* * @param pricingPlanDataSource * This parameter is no longer used. */ @Deprecated public void setPricingPlanDataSource(String pricingPlanDataSource) { this.pricingPlanDataSource = pricingPlanDataSource; } /** ** This parameter is no longer used. *
* * @return This parameter is no longer used. */ @Deprecated public String getPricingPlanDataSource() { return this.pricingPlanDataSource; } /** ** This parameter is no longer used. *
* * @param pricingPlanDataSource * This parameter is no longer used. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public CreateGeofenceCollectionRequest withPricingPlanDataSource(String pricingPlanDataSource) { setPricingPlanDataSource(pricingPlanDataSource); return this; } /** ** Applies one or more tags to the geofence collection. 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. *
*
* 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. *
** Applies one or more tags to the geofence collection. 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. *
*
* 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. *
** Applies one or more tags to the geofence collection. 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. *
*
* 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. *
*