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

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.

*/ inline const Aws::String& GetCollectionName() const{ return m_collectionName; } /** *

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.

*/ inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; } /** *

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.

*/ inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; } /** *

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.

*/ inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); } /** *

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.

*/ inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); } /** *

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.

*/ inline CreateGeofenceCollectionRequest& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;} /** *

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.

*/ inline CreateGeofenceCollectionRequest& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;} /** *

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.

*/ inline CreateGeofenceCollectionRequest& WithCollectionName(const char* value) { SetCollectionName(value); return *this;} /** *

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

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

An optional description for the geofence collection.

*/ inline CreateGeofenceCollectionRequest& WithDescription(const char* value) { SetDescription(value); 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.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, * or alias ARN.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, * or alias ARN.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, * or alias ARN.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, * or alias ARN.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

A key identifier for an Amazon * Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, * or alias ARN.

*/ inline CreateGeofenceCollectionRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); 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.

*/ inline CreateGeofenceCollectionRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); 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.

*/ inline CreateGeofenceCollectionRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); 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.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

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.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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.

*/ inline CreateGeofenceCollectionRequest& WithTags(const Aws::Map& value) { SetTags(value); 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.

*/ inline CreateGeofenceCollectionRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& 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 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.

*/ inline CreateGeofenceCollectionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_collectionName; bool m_collectionNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws