From 9c02fa9efedff8e3f768bdb5dd43e547865b72d9 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:26:55 -0300 Subject: [PATCH] feat(aws-android-sdk-location): update models to latest (#3350) --- .../services/geo/AmazonLocation.java | 39 +- .../services/geo/AmazonLocationClient.java | 39 +- .../geo/model/ApiKeyRestrictions.java | 1238 +++++++++++------ .../model/BatchPutGeofenceRequestEntry.java | 64 +- .../model/CalculateRouteMatrixRequest.java | 85 ++ .../geo/model/CalculateRouteRequest.java | 85 ++ .../services/geo/model/CreateKeyRequest.java | 10 +- .../geo/model/CreateTrackerRequest.java | 146 ++ .../geo/model/DescribeKeyRequest.java | 8 - .../geo/model/DescribeTrackerResult.java | 92 ++ .../services/geo/model/GetGeofenceResult.java | 64 +- .../services/geo/model/GetPlaceRequest.java | 85 ++ .../geo/model/ListGeofenceResponseEntry.java | 64 +- .../services/geo/model/ListKeysRequest.java | 8 - .../geo/model/PutGeofenceRequest.java | 64 +- .../SearchPlaceIndexForPositionRequest.java | 85 ++ ...SearchPlaceIndexForSuggestionsRequest.java | 85 ++ .../model/SearchPlaceIndexForTextRequest.java | 85 ++ .../services/geo/model/UpdateKeyRequest.java | 8 - .../geo/model/UpdateTrackerRequest.java | 146 ++ ...CalculateRouteMatrixRequestMarshaller.java | 4 + .../CalculateRouteRequestMarshaller.java | 3 + .../CreateTrackerRequestMarshaller.java | 5 + ...DescribeTrackerResultJsonUnmarshaller.java | 3 + .../transform/GetPlaceRequestMarshaller.java | 3 + ...laceIndexForPositionRequestMarshaller.java | 4 + ...eIndexForSuggestionsRequestMarshaller.java | 4 + ...rchPlaceIndexForTextRequestMarshaller.java | 4 + .../UpdateTrackerRequestMarshaller.java | 5 + 29 files changed, 1962 insertions(+), 573 deletions(-) diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java index 9f706a69cb..1a01678ccf 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java @@ -544,18 +544,16 @@ CreateGeofenceCollectionResult createGeofenceCollection( /** *

* Creates an API key resource in your Amazon Web Services account, which - * lets you grant geo:GetMap* actions for Amazon Location Map - * resources to the API key bearer. + * lets you grant actions for Amazon Location resources to the API key + * bearer. *

- * + * *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. *

- *
+ * * * @param createKeyRequest * @return createKeyResult The response from the CreateKey service method, @@ -929,15 +927,6 @@ DescribeGeofenceCollectionResult describeGeofenceCollection( *

* Retrieves the API key resource details. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param describeKeyRequest * @return describeKeyResult The response from the DescribeKey service @@ -1415,15 +1404,6 @@ ListGeofencesResult listGeofences(ListGeofencesRequest listGeofencesRequest) *

* Lists API key resources in your Amazon Web Services account. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param listKeysRequest * @return listKeysResult The response from the ListKeys service method, as @@ -1823,15 +1803,6 @@ UpdateGeofenceCollectionResult updateGeofenceCollection( *

* Updates the specified properties of a given API key resource. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param updateKeyRequest * @return updateKeyResult The response from the UpdateKey service method, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java index 6daac3c947..56fa7ad19f 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java @@ -1077,18 +1077,16 @@ public CreateGeofenceCollectionResult createGeofenceCollection( /** *

* Creates an API key resource in your Amazon Web Services account, which - * lets you grant geo:GetMap* actions for Amazon Location Map - * resources to the API key bearer. + * lets you grant actions for Amazon Location resources to the API key + * bearer. *

- * + * *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. *

- *
+ * * * @param createKeyRequest * @return createKeyResult The response from the CreateKey service method, @@ -1778,15 +1776,6 @@ public DescribeGeofenceCollectionResult describeGeofenceCollection( *

* Retrieves the API key resource details. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param describeKeyRequest * @return describeKeyResult The response from the DescribeKey service @@ -2716,15 +2705,6 @@ public ListGeofencesResult listGeofences(ListGeofencesRequest listGeofencesReque *

* Lists API key resources in your Amazon Web Services account. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param listKeysRequest * @return listKeysResult The response from the ListKeys service method, as @@ -3495,15 +3475,6 @@ public UpdateGeofenceCollectionResult updateGeofenceCollection( *

* Updates the specified properties of a given API key resource. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove - * features before announcing general availability. For more information, - * see Using API keys. - *

- *
* * @param updateKeyRequest * @return updateKeyResult The response from the UpdateKey service method, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ApiKeyRestrictions.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ApiKeyRestrictions.java index 1fb9fd1544..93cd5722a6 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ApiKeyRestrictions.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ApiKeyRestrictions.java @@ -27,13 +27,81 @@ public class ApiKeyRestrictions implements Serializable { /** *

* A list of allowed actions that an API key resource grants permissions to - * perform + * perform. You must have at least one action for each type of resource. For + * example, if you have a place resource, you must include at least one + * place action. *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* as an input - * to the list. For example, ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide access to map + * rendering, the only valid action is geo:GetMap* as an input + * to the list. ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of the + * Place actions separately. *

*
*/ @@ -86,91 +154,207 @@ public class ApiKeyRestrictions implements Serializable { /** *

* A list of allowed resource ARNs that a API key bearer can perform actions - * on + * on. + *

+ * *

* For more information about ARN format, see Amazon Resource Names (ARNs). *

- * + */ + private java.util.List allowResources; + + /** *

- * In this preview, you can allow only map resources. + * A list of allowed actions that an API key resource grants permissions to + * perform. You must have at least one action for each type of resource. For + * example, if you have a place resource, you must include at least one + * place action. *

- *
*

- * Requirements: + * The following are valid values for the actions. *

* * *

- * Currently, the only valid action is geo:GetMap* as an input - * to the list. For example, ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide access to map + * rendering, the only valid action is geo:GetMap* as an input + * to the list. ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of the + * Place actions separately. *

*
* * @return

* A list of allowed actions that an API key resource grants - * permissions to perform + * permissions to perform. You must have at least one action for + * each type of resource. For example, if you have a place resource, + * you must include at least one place action. + *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* as - * an input to the list. For example, ["geo:GetMap*"] - * is valid but ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide + * access to map rendering, the only valid action is + * geo:GetMap* as an input to the list. + * ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of + * the Place actions separately. *

*
*/ @@ -181,26 +365,165 @@ public java.util.List getAllowActions() { /** *

* A list of allowed actions that an API key resource grants permissions to - * perform + * perform. You must have at least one action for each type of resource. For + * example, if you have a place resource, you must include at least one + * place action. + *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* as an input - * to the list. For example, ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide access to map + * rendering, the only valid action is geo:GetMap* as an input + * to the list. ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of the + * Place actions separately. *

*
* * @param allowActions

* A list of allowed actions that an API key resource grants - * permissions to perform + * permissions to perform. You must have at least one action for + * each type of resource. For example, if you have a place + * resource, you must include at least one place action. + *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* - * as an input to the list. For example, + * You must use these strings exactly. For example, to provide + * access to map rendering, the only valid action is + * geo:GetMap* as an input to the list. * ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * ["geo:GetMapTile"] is not. Similarly, you cannot + * use ["geo:SearchPlaceIndexFor*"] - you must list + * each of the Place actions separately. *

*
*/ @@ -216,13 +539,81 @@ public void setAllowActions(java.util.Collection allowActions) { /** *

* A list of allowed actions that an API key resource grants permissions to - * perform + * perform. You must have at least one action for each type of resource. For + * example, if you have a place resource, you must include at least one + * place action. + *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* as an input - * to the list. For example, ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide access to map + * rendering, the only valid action is geo:GetMap* as an input + * to the list. ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of the + * Place actions separately. *

*
*

@@ -231,55 +622,265 @@ public void setAllowActions(java.util.Collection allowActions) { * * @param allowActions

* A list of allowed actions that an API key resource grants - * permissions to perform + * permissions to perform. You must have at least one action for + * each type of resource. For example, if you have a place + * resource, you must include at least one place action. + *

+ *

+ * The following are valid values for the actions. + *

+ * * *

- * Currently, the only valid action is geo:GetMap* - * as an input to the list. For example, - * ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * You must use these strings exactly. For example, to provide + * access to map rendering, the only valid action is + * geo:GetMap* as an input to the list. + * ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot + * use ["geo:SearchPlaceIndexFor*"] - you must list + * each of the Place actions separately. + *

+ *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ApiKeyRestrictions withAllowActions(String... allowActions) { + if (getAllowActions() == null) { + this.allowActions = new java.util.ArrayList(allowActions.length); + } + for (String value : allowActions) { + this.allowActions.add(value); + } + return this; + } + + /** + *

+ * A list of allowed actions that an API key resource grants permissions to + * perform. You must have at least one action for each type of resource. For + * example, if you have a place resource, you must include at least one + * place action. + *

+ *

+ * The following are valid values for the actions. + *

+ *
    + *
  • + *

    + * Map actions + *

    + *
      + *
    • + *

      + * geo:GetMap* - Allows all actions needed for map rendering. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * Place actions + *

    + *
      + *
    • + *

      + * geo:SearchPlaceIndexForText - Allows geocoding. + *

      + *
    • + *
    • + *

      + * geo:SearchPlaceIndexForPosition - Allows reverse geocoding. + *

      + *
    • + *
    • + *

      + * geo:SearchPlaceIndexForSuggestions - Allows generating + * suggestions from text. + *

      + *
    • + *
    • + *

      + * GetPlace - Allows finding a place by place ID. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * Route actions + *

    + *
      + *
    • + *

      + * geo:CalculateRoute - Allows point to point routing. + *

      + *
    • + *
    • + *

      + * geo:CalculateRouteMatrix - Allows calculating a matrix of + * routes. + *

      + *
    • + *
    + *
  • + *
+ * + *

+ * You must use these strings exactly. For example, to provide access to map + * rendering, the only valid action is geo:GetMap* as an input + * to the list. ["geo:GetMap*"] is valid but + * ["geo:GetMapTile"] is not. Similarly, you cannot use + * ["geo:SearchPlaceIndexFor*"] - you must list each of the + * Place actions separately. + *

+ *
+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param allowActions

+ * A list of allowed actions that an API key resource grants + * permissions to perform. You must have at least one action for + * each type of resource. For example, if you have a place + * resource, you must include at least one place action. + *

+ *

+ * The following are valid values for the actions. + *

+ *
    + *
  • + *

    + * Map actions + *

    + *
      + *
    • + *

      + * geo:GetMap* - Allows all actions needed for map + * rendering. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * Place actions + *

    + *
      + *
    • + *

      + * geo:SearchPlaceIndexForText - Allows geocoding. + *

      + *
    • + *
    • + *

      + * geo:SearchPlaceIndexForPosition - Allows reverse + * geocoding. + *

      + *
    • + *
    • + *

      + * geo:SearchPlaceIndexForSuggestions - Allows + * generating suggestions from text. + *

      + *
    • + *
    • + *

      + * GetPlace - Allows finding a place by place ID. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * Route actions + *

    + *
      + *
    • + *

      + * geo:CalculateRoute - Allows point to point + * routing. *

      - * - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public ApiKeyRestrictions withAllowActions(String... allowActions) { - if (getAllowActions() == null) { - this.allowActions = new java.util.ArrayList(allowActions.length); - } - for (String value : allowActions) { - this.allowActions.add(value); - } - return this; - } - - /** - *

      - * A list of allowed actions that an API key resource grants permissions to - * perform - *

      - * - *

      - * Currently, the only valid action is geo:GetMap* as an input - * to the list. For example, ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. - *

      - *
      - *

      - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param allowActions

      - * A list of allowed actions that an API key resource grants - * permissions to perform + *

    • + *
    • + *

      + * geo:CalculateRouteMatrix - Allows calculating a + * matrix of routes. *

      + *
    • + *
    + *
  • + *
* *

- * Currently, the only valid action is geo:GetMap* - * as an input to the list. For example, + * You must use these strings exactly. For example, to provide + * access to map rendering, the only valid action is + * geo:GetMap* as an input to the list. * ["geo:GetMap*"] is valid but - * ["geo:GetMapTile"] is not. + * ["geo:GetMapTile"] is not. Similarly, you cannot + * use ["geo:SearchPlaceIndexFor*"] - you must list + * each of the Place actions separately. *

*
* @return A reference to this updated object so that method calls can be @@ -670,132 +1271,85 @@ public ApiKeyRestrictions withAllowReferers(java.util.Collection allowRe /** *

* A list of allowed resource ARNs that a API key bearer can perform actions - * on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be empty and - * should begin with only alphanumeric characters (A–Z, a–z, 0–9) and - * contain only alphanumeric numbers, hyphens (-) and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty or should - * begin with only alphanumeric characters (A–Z, a–z, 0–9) and contain only - * alphanumeric numbers, hyphens (-) and periods (.). + * The ARN must be the correct ARN for a map, place, or route ARN. You may + * include wildcards in the resource-id to match multiple resources of the + * same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except for forward - * slash (/) and contain any characters after, including forward slashes to - * form a path. - *

    - *

    - * resource-id can also include wildcard characters, denoted by - * an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key that is being + * created. *

    *
  • *
  • *

    + * Other than wildcards, you must include the full ARN, including the * arn, partition, service, * region, account-id and resource-id - * must be delimited by a colon (:). + * , delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap*. *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

* * @return

* A list of allowed resource ARNs that a API key bearer can perform - * actions on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * actions on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be empty - * and should begin with only alphanumeric characters (A–Z, a–z, - * 0–9) and contain only alphanumeric numbers, hyphens (-) and - * periods (.). + * The ARN must be the correct ARN for a map, place, or route ARN. + * You may include wildcards in the resource-id to match multiple + * resources of the same type. *

    *
  • *
  • *

    - * region and account-id can be empty or - * should begin with only alphanumeric characters (A–Z, a–z, 0–9) - * and contain only alphanumeric numbers, hyphens (-) and periods - * (.). + * The resources must be in the same partition, + * region, and account-id as the key that + * is being created. *

    *
  • *
  • *

    - * resource-id can begin with any character except for - * forward slash (/) and contain any characters after, including - * forward slashes to form a path. - *

    - *

    - * resource-id can also include wildcard characters, - * denoted by an asterisk (*). - *

    - *
  • - *
  • - *

    - * arn, partition, service, - * region, account-id and - * resource-id must be delimited by a colon (:). + * Other than wildcards, you must include the full ARN, including + * the arn, partition, + * service, region, + * account-id and resource-id, delimited + * by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap* * . *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

*/ public java.util.List getAllowResources() { return allowResources; @@ -804,131 +1358,85 @@ public java.util.List getAllowResources() { /** *

* A list of allowed resource ARNs that a API key bearer can perform actions - * on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be empty and - * should begin with only alphanumeric characters (A–Z, a–z, 0–9) and - * contain only alphanumeric numbers, hyphens (-) and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty or should - * begin with only alphanumeric characters (A–Z, a–z, 0–9) and contain only - * alphanumeric numbers, hyphens (-) and periods (.). + * The ARN must be the correct ARN for a map, place, or route ARN. You may + * include wildcards in the resource-id to match multiple resources of the + * same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except for forward - * slash (/) and contain any characters after, including forward slashes to - * form a path. - *

    - *

    - * resource-id can also include wildcard characters, denoted by - * an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key that is being + * created. *

    *
  • *
  • *

    + * Other than wildcards, you must include the full ARN, including the * arn, partition, service, * region, account-id and resource-id - * must be delimited by a colon (:). + * , delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap*. *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

* * @param allowResources

* A list of allowed resource ARNs that a API key bearer can - * perform actions on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * perform actions on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be - * empty and should begin with only alphanumeric characters (A–Z, - * a–z, 0–9) and contain only alphanumeric numbers, hyphens (-) - * and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty - * or should begin with only alphanumeric characters (A–Z, a–z, - * 0–9) and contain only alphanumeric numbers, hyphens (-) and - * periods (.). + * The ARN must be the correct ARN for a map, place, or route + * ARN. You may include wildcards in the resource-id to match + * multiple resources of the same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except - * for forward slash (/) and contain any characters after, - * including forward slashes to form a path. - *

    - *

    - * resource-id can also include wildcard characters, - * denoted by an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key + * that is being created. *

    *
  • *
  • *

    - * arn, partition, service, region, account-id and - * resource-id must be delimited by a colon (:). + * Other than wildcards, you must include the full ARN, including + * the arn, partition, + * service, region, + * account-id and resource-id, + * delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap* * . *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

*/ public void setAllowResources(java.util.Collection allowResources) { if (allowResources == null) { @@ -942,134 +1450,88 @@ public void setAllowResources(java.util.Collection allowResources) { /** *

* A list of allowed resource ARNs that a API key bearer can perform actions - * on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be empty and - * should begin with only alphanumeric characters (A–Z, a–z, 0–9) and - * contain only alphanumeric numbers, hyphens (-) and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty or should - * begin with only alphanumeric characters (A–Z, a–z, 0–9) and contain only - * alphanumeric numbers, hyphens (-) and periods (.). + * The ARN must be the correct ARN for a map, place, or route ARN. You may + * include wildcards in the resource-id to match multiple resources of the + * same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except for forward - * slash (/) and contain any characters after, including forward slashes to - * form a path. - *

    - *

    - * resource-id can also include wildcard characters, denoted by - * an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key that is being + * created. *

    *
  • *
  • *

    + * Other than wildcards, you must include the full ARN, including the * arn, partition, service, * region, account-id and resource-id - * must be delimited by a colon (:). + * , delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap*. *

    *
  • *
*

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

+ *

* Returns a reference to this object so that method calls can be chained * together. * * @param allowResources

* A list of allowed resource ARNs that a API key bearer can - * perform actions on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * perform actions on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be - * empty and should begin with only alphanumeric characters (A–Z, - * a–z, 0–9) and contain only alphanumeric numbers, hyphens (-) - * and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty - * or should begin with only alphanumeric characters (A–Z, a–z, - * 0–9) and contain only alphanumeric numbers, hyphens (-) and - * periods (.). + * The ARN must be the correct ARN for a map, place, or route + * ARN. You may include wildcards in the resource-id to match + * multiple resources of the same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except - * for forward slash (/) and contain any characters after, - * including forward slashes to form a path. - *

    - *

    - * resource-id can also include wildcard characters, - * denoted by an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key + * that is being created. *

    *
  • *
  • *

    - * arn, partition, service, region, account-id and - * resource-id must be delimited by a colon (:). + * Other than wildcards, you must include the full ARN, including + * the arn, partition, + * service, region, + * account-id and resource-id, + * delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap* * . *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

* @return A reference to this updated object so that method calls can be * chained together. */ @@ -1086,134 +1548,88 @@ public ApiKeyRestrictions withAllowResources(String... allowResources) { /** *

* A list of allowed resource ARNs that a API key bearer can perform actions - * on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * on. *

*
    *
  • *

    - * Must be prefixed with arn. - *

    - *
  • - *
  • - *

    - * partition and service must not be empty and - * should begin with only alphanumeric characters (A–Z, a–z, 0–9) and - * contain only alphanumeric numbers, hyphens (-) and periods (.). - *

    - *
  • - *
  • - *

    - * region and account-id can be empty or should - * begin with only alphanumeric characters (A–Z, a–z, 0–9) and contain only - * alphanumeric numbers, hyphens (-) and periods (.). + * The ARN must be the correct ARN for a map, place, or route ARN. You may + * include wildcards in the resource-id to match multiple resources of the + * same type. *

    *
  • *
  • *

    - * resource-id can begin with any character except for forward - * slash (/) and contain any characters after, including forward slashes to - * form a path. - *

    - *

    - * resource-id can also include wildcard characters, denoted by - * an asterisk (*). + * The resources must be in the same partition, + * region, and account-id as the key that is being + * created. *

    *
  • *
  • *

    + * Other than wildcards, you must include the full ARN, including the * arn, partition, service, * region, account-id and resource-id - * must be delimited by a colon (:). + * , delimited by colons (:). *

    *
  • *
  • *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap*. *

    *
  • *
*

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

+ *

* Returns a reference to this object so that method calls can be chained * together. * * @param allowResources

* A list of allowed resource ARNs that a API key bearer can - * perform actions on - *

- *

- * For more information about ARN format, see Amazon Resource Names (ARNs). - *

- * - *

- * In this preview, you can allow only map resources. - *

- *
- *

- * Requirements: + * perform actions on. *

*
    *
  • *

    - * Must be prefixed with arn. + * The ARN must be the correct ARN for a map, place, or route + * ARN. You may include wildcards in the resource-id to match + * multiple resources of the same type. *

    *
  • *
  • *

    - * partition and service must not be - * empty and should begin with only alphanumeric characters (A–Z, - * a–z, 0–9) and contain only alphanumeric numbers, hyphens (-) - * and periods (.). + * The resources must be in the same partition, + * region, and account-id as the key + * that is being created. *

    *
  • *
  • *

    - * region and account-id can be empty - * or should begin with only alphanumeric characters (A–Z, a–z, - * 0–9) and contain only alphanumeric numbers, hyphens (-) and - * periods (.). + * Other than wildcards, you must include the full ARN, including + * the arn, partition, + * service, region, + * account-id and resource-id, + * delimited by colons (:). *

    *
  • *
  • *

    - * resource-id can begin with any character except - * for forward slash (/) and contain any characters after, - * including forward slashes to form a path. - *

    - *

    - * resource-id can also include wildcard characters, - * denoted by an asterisk (*). - *

    - *
  • - *
  • - *

    - * arn, partition, service, region, account-id and - * resource-id must be delimited by a colon (:). - *

    - *
  • - *
  • - *

    - * No spaces allowed. For example, + * No spaces allowed, even with wildcards. For example, * arn:aws:geo:region:account-id:map/ExampleMap* * . *

    *
  • *
+ *

+ * For more information about ARN format, see Amazon Resource Names (ARNs). + *

* @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/BatchPutGeofenceRequestEntry.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/BatchPutGeofenceRequestEntry.java index 81da6aeff0..d5e7bfe8a7 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/BatchPutGeofenceRequestEntry.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/BatchPutGeofenceRequestEntry.java @@ -37,8 +37,12 @@ public class BatchPutGeofenceRequestEntry implements Serializable { /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ private java.util.Map geofenceProperties; @@ -123,13 +127,21 @@ public BatchPutGeofenceRequestEntry withGeofenceId(String geofenceId) { /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @return

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A property + * is a key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public java.util.Map getGeofenceProperties() { @@ -138,13 +150,21 @@ public java.util.Map getGeofenceProperties() { /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @param geofenceProperties

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A + * property is a key-value pair stored with the geofence and + * added to any geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public void setGeofenceProperties(java.util.Map geofenceProperties) { @@ -153,16 +173,24 @@ public void setGeofenceProperties(java.util.Map geofenceProperti /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param geofenceProperties

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A + * property is a key-value pair stored with the geofence and + * added to any geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* @return A reference to this updated object so that method calls can be * chained together. @@ -175,8 +203,12 @@ public BatchPutGeofenceRequestEntry withGeofenceProperties( /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* The method adds a new key-value pair into GeofenceProperties parameter, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteMatrixRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteMatrixRequest.java index cdb3296dc1..60112d3a27 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteMatrixRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteMatrixRequest.java @@ -224,6 +224,18 @@ public class CalculateRouteMatrixRequest extends AmazonWebServiceRequest impleme */ private String distanceUnit; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* Specifies the mode of transport when calculating a route. Used in @@ -1427,6 +1439,72 @@ public CalculateRouteMatrixRequest withDistanceUnit(DistanceUnit distanceUnit) { return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CalculateRouteMatrixRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* Specifies the mode of transport when calculating a route. Used in @@ -2008,6 +2086,8 @@ public String toString() { sb.append("DestinationPositions: " + getDestinationPositions() + ","); if (getDistanceUnit() != null) sb.append("DistanceUnit: " + getDistanceUnit() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getTravelMode() != null) sb.append("TravelMode: " + getTravelMode() + ","); if (getTruckModeOptions() != null) @@ -2034,6 +2114,7 @@ public int hashCode() { + ((getDestinationPositions() == null) ? 0 : getDestinationPositions().hashCode()); hashCode = prime * hashCode + ((getDistanceUnit() == null) ? 0 : getDistanceUnit().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getTravelMode() == null) ? 0 : getTravelMode().hashCode()); hashCode = prime * hashCode + ((getTruckModeOptions() == null) ? 0 : getTruckModeOptions().hashCode()); @@ -2086,6 +2167,10 @@ public boolean equals(Object obj) { if (other.getDistanceUnit() != null && other.getDistanceUnit().equals(this.getDistanceUnit()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getTravelMode() == null ^ this.getTravelMode() == null) return false; if (other.getTravelMode() != null diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteRequest.java index 211aebb7e7..49b149c64e 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteRequest.java @@ -218,6 +218,18 @@ public class CalculateRouteRequest extends AmazonWebServiceRequest implements Se */ private Boolean includeLegGeometry; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* Specifies the mode of transport when calculating a route. Used in @@ -1482,6 +1494,72 @@ public CalculateRouteRequest withIncludeLegGeometry(Boolean includeLegGeometry) return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CalculateRouteRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* Specifies the mode of transport when calculating a route. Used in @@ -2431,6 +2509,8 @@ public String toString() { sb.append("DistanceUnit: " + getDistanceUnit() + ","); if (getIncludeLegGeometry() != null) sb.append("IncludeLegGeometry: " + getIncludeLegGeometry() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getTravelMode() != null) sb.append("TravelMode: " + getTravelMode() + ","); if (getTruckModeOptions() != null) @@ -2461,6 +2541,7 @@ public int hashCode() { + ((getDistanceUnit() == null) ? 0 : getDistanceUnit().hashCode()); hashCode = prime * hashCode + ((getIncludeLegGeometry() == null) ? 0 : getIncludeLegGeometry().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getTravelMode() == null) ? 0 : getTravelMode().hashCode()); hashCode = prime * hashCode + ((getTruckModeOptions() == null) ? 0 : getTruckModeOptions().hashCode()); @@ -2520,6 +2601,10 @@ public boolean equals(Object obj) { if (other.getIncludeLegGeometry() != null && other.getIncludeLegGeometry().equals(this.getIncludeLegGeometry()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getTravelMode() == null ^ this.getTravelMode() == null) return false; if (other.getTravelMode() != null diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateKeyRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateKeyRequest.java index a8d9fcb1d8..e8af0e72ee 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateKeyRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateKeyRequest.java @@ -22,17 +22,15 @@ /** *

* Creates an API key resource in your Amazon Web Services account, which lets - * you grant geo:GetMap* actions for Amazon Location Map resources - * to the API key bearer. + * you grant actions for Amazon Location resources to the API key bearer. *

- * + * *

- * The API keys feature is in preview. We may add, change, or remove features - * before announcing general availability. For more information, see Using API keys. *

- *
+ * */ public class CreateKeyRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateTrackerRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateTrackerRequest.java index c282c5294b..b816e0ac39 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateTrackerRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateTrackerRequest.java @@ -36,6 +36,21 @@ public class CreateTrackerRequest extends AmazonWebServiceRequest implements Ser */ private String description; + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ */ + private Boolean eventBridgeEnabled; + /** *

* A key identifier for an + * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @return

+ * Whether to enable position UPDATE events from this + * tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those + * events are always sent to EventBridge. + *

+ *
+ */ + public Boolean isEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @return

+ * Whether to enable position UPDATE events from this + * tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those + * events are always sent to EventBridge. + *

+ *
+ */ + public Boolean getEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @param eventBridgeEnabled

+ * Whether to enable position UPDATE events from + * this tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER + * and EXIT events for geofences with this tracker. + * Those events are always sent to EventBridge. + *

+ *
+ */ + public void setEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param eventBridgeEnabled

+ * Whether to enable position UPDATE events from + * this tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER + * and EXIT events for geofences with this tracker. + * Those events are always sent to EventBridge. + *

+ *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateTrackerRequest withEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + return this; + } + /** *

* A key identifier for an * Retrieves the API key resource details. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove features - * before announcing general availability. For more information, see Using API keys. - *

- * */ public class DescribeKeyRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/DescribeTrackerResult.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/DescribeTrackerResult.java index cf2ce0b21a..41b9214329 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/DescribeTrackerResult.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/DescribeTrackerResult.java @@ -37,6 +37,15 @@ public class DescribeTrackerResult implements Serializable { */ private String description; + /** + *

+ * Whether UPDATE events from this tracker in EventBridge are + * enabled. If set to true these events will be sent to + * EventBridge. + *

+ */ + private Boolean eventBridgeEnabled; + /** *

* A key identifier for an + * Whether UPDATE events from this tracker in EventBridge are + * enabled. If set to true these events will be sent to + * EventBridge. + *

+ * + * @return

+ * Whether UPDATE events from this tracker in + * EventBridge are enabled. If set to true these events + * will be sent to EventBridge. + *

+ */ + public Boolean isEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether UPDATE events from this tracker in EventBridge are + * enabled. If set to true these events will be sent to + * EventBridge. + *

+ * + * @return

+ * Whether UPDATE events from this tracker in + * EventBridge are enabled. If set to true these events + * will be sent to EventBridge. + *

+ */ + public Boolean getEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether UPDATE events from this tracker in EventBridge are + * enabled. If set to true these events will be sent to + * EventBridge. + *

+ * + * @param eventBridgeEnabled

+ * Whether UPDATE events from this tracker in + * EventBridge are enabled. If set to true these + * events will be sent to EventBridge. + *

+ */ + public void setEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + } + + /** + *

+ * Whether UPDATE events from this tracker in EventBridge are + * enabled. If set to true these events will be sent to + * EventBridge. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param eventBridgeEnabled

+ * Whether UPDATE events from this tracker in + * EventBridge are enabled. If set to true these + * events will be sent to EventBridge. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeTrackerResult withEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + return this; + } + /** *

* A key identifier for an - * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ private java.util.Map geofenceProperties; @@ -217,13 +221,21 @@ public GetGeofenceResult withGeofenceId(String geofenceId) { /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @return

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence + * event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public java.util.Map getGeofenceProperties() { @@ -232,13 +244,21 @@ public java.util.Map getGeofenceProperties() { /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @param geofenceProperties

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public void setGeofenceProperties(java.util.Map geofenceProperties) { @@ -247,16 +267,24 @@ public void setGeofenceProperties(java.util.Map geofenceProperti /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param geofenceProperties

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* @return A reference to this updated object so that method calls can be * chained together. @@ -268,8 +296,12 @@ public GetGeofenceResult withGeofenceProperties(java.util.Map ge /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* The method adds a new key-value pair into GeofenceProperties parameter, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/GetPlaceRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/GetPlaceRequest.java index aa32e46a00..192a891eda 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/GetPlaceRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/GetPlaceRequest.java @@ -60,6 +60,18 @@ public class GetPlaceRequest extends AmazonWebServiceRequest implements Serializ */ private String indexName; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* The preferred language used to return results. The value must be a valid @@ -160,6 +172,72 @@ public GetPlaceRequest withIndexName(String indexName) { return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetPlaceRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* The preferred language used to return results. The value must be a valid @@ -410,6 +488,8 @@ public String toString() { sb.append("{"); if (getIndexName() != null) sb.append("IndexName: " + getIndexName() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getLanguage() != null) sb.append("Language: " + getLanguage() + ","); if (getPlaceId() != null) @@ -424,6 +504,7 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getPlaceId() == null) ? 0 : getPlaceId().hashCode()); return hashCode; @@ -445,6 +526,10 @@ public boolean equals(Object obj) { if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListGeofenceResponseEntry.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListGeofenceResponseEntry.java index 8e9493e721..9052daa572 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListGeofenceResponseEntry.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListGeofenceResponseEntry.java @@ -45,8 +45,12 @@ public class ListGeofenceResponseEntry implements Serializable { /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ private java.util.Map geofenceProperties; @@ -223,13 +227,21 @@ public ListGeofenceResponseEntry withGeofenceId(String geofenceId) { /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @return

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence + * event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public java.util.Map getGeofenceProperties() { @@ -238,13 +250,21 @@ public java.util.Map getGeofenceProperties() { /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @param geofenceProperties

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public void setGeofenceProperties(java.util.Map geofenceProperties) { @@ -253,16 +273,24 @@ public void setGeofenceProperties(java.util.Map geofenceProperti /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param geofenceProperties

- * Contains additional user-defined properties stored with the - * geofence. An array of key-value pairs. + * User defined properties of the geofence. A property is a + * key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* @return A reference to this updated object so that method calls can be * chained together. @@ -275,8 +303,12 @@ public ListGeofenceResponseEntry withGeofenceProperties( /** *

- * Contains additional user-defined properties stored with the geofence. An - * array of key-value pairs. + * User defined properties of the geofence. A property is a key-value pair + * stored with the geofence and added to any geofence event triggered with + * that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* The method adds a new key-value pair into GeofenceProperties parameter, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListKeysRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListKeysRequest.java index d78ceee2f5..0b139c6989 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListKeysRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/ListKeysRequest.java @@ -23,14 +23,6 @@ *

* Lists API key resources in your Amazon Web Services account. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove features - * before announcing general availability. For more information, see Using API keys. - *

- *
*/ public class ListKeysRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/PutGeofenceRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/PutGeofenceRequest.java index 15fc378f97..1b413884d0 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/PutGeofenceRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/PutGeofenceRequest.java @@ -51,8 +51,12 @@ public class PutGeofenceRequest extends AmazonWebServiceRequest implements Seria /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ private java.util.Map geofenceProperties; @@ -195,13 +199,21 @@ public PutGeofenceRequest withGeofenceId(String geofenceId) { /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @return

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A property + * is a key-value pair stored with the geofence and added to any + * geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public java.util.Map getGeofenceProperties() { @@ -210,13 +222,21 @@ public java.util.Map getGeofenceProperties() { /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* * @param geofenceProperties

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A + * property is a key-value pair stored with the geofence and + * added to any geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*/ public void setGeofenceProperties(java.util.Map geofenceProperties) { @@ -225,16 +245,24 @@ public void setGeofenceProperties(java.util.Map geofenceProperti /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param geofenceProperties

- * Specifies additional user-defined properties to store with the - * Geofence. An array of key-value pairs. + * Associates one of more properties with the geofence. A + * property is a key-value pair stored with the geofence and + * added to any geofence event triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

* @return A reference to this updated object so that method calls can be * chained together. @@ -247,8 +275,12 @@ public PutGeofenceRequest withGeofenceProperties( /** *

- * Specifies additional user-defined properties to store with the Geofence. - * An array of key-value pairs. + * Associates one of more properties with the geofence. A property is a + * key-value pair stored with the geofence and added to any geofence event + * triggered with that geofence. + *

+ *

+ * Format: "key" : "value" *

*

* The method adds a new key-value pair into GeofenceProperties parameter, diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForPositionRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForPositionRequest.java index bf680b09a9..e55c5a9464 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForPositionRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForPositionRequest.java @@ -38,6 +38,18 @@ public class SearchPlaceIndexForPositionRequest extends AmazonWebServiceRequest */ private String indexName; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* The preferred language used to return results. The value must be a valid @@ -161,6 +173,72 @@ public SearchPlaceIndexForPositionRequest withIndexName(String indexName) { return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPlaceIndexForPositionRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* The preferred language used to return results. The value must be a valid @@ -594,6 +672,8 @@ public String toString() { sb.append("{"); if (getIndexName() != null) sb.append("IndexName: " + getIndexName() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getLanguage() != null) sb.append("Language: " + getLanguage() + ","); if (getMaxResults() != null) @@ -610,6 +690,7 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getPosition() == null) ? 0 : getPosition().hashCode()); @@ -632,6 +713,10 @@ public boolean equals(Object obj) { if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForSuggestionsRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForSuggestionsRequest.java index 287ffb55b0..0613d803f3 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForSuggestionsRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForSuggestionsRequest.java @@ -137,6 +137,18 @@ public class SearchPlaceIndexForSuggestionsRequest extends AmazonWebServiceReque */ private String indexName; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* The preferred language used to return results. The value must be a valid @@ -1039,6 +1051,72 @@ public SearchPlaceIndexForSuggestionsRequest withIndexName(String indexName) { return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPlaceIndexForSuggestionsRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* The preferred language used to return results. The value must be a valid @@ -1389,6 +1467,8 @@ public String toString() { sb.append("FilterCountries: " + getFilterCountries() + ","); if (getIndexName() != null) sb.append("IndexName: " + getIndexName() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getLanguage() != null) sb.append("Language: " + getLanguage() + ","); if (getMaxResults() != null) @@ -1412,6 +1492,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getFilterCountries() == null) ? 0 : getFilterCountries().hashCode()); hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode()); @@ -1454,6 +1535,10 @@ public boolean equals(Object obj) { if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForTextRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForTextRequest.java index 0af0fd3e67..c7c9553176 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForTextRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/SearchPlaceIndexForTextRequest.java @@ -138,6 +138,18 @@ public class SearchPlaceIndexForTextRequest extends AmazonWebServiceRequest impl */ private String indexName; + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ */ + private String key; + /** *

* The preferred language used to return results. The value must be a valid @@ -1046,6 +1058,72 @@ public SearchPlaceIndexForTextRequest withIndexName(String indexName) { return this; } + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @return

+ * The optional API key to authorize the request. + *

+ */ + public String getKey() { + return key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ */ + public void setKey(String key) { + this.key = key; + } + + /** + *

+ * The optional API key to authorize the request. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 0 - 1000
+ * + * @param key

+ * The optional API key to authorize the request. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPlaceIndexForTextRequest withKey(String key) { + this.key = key; + return this; + } + /** *

* The preferred language used to return results. The value must be a valid @@ -1399,6 +1477,8 @@ public String toString() { sb.append("FilterCountries: " + getFilterCountries() + ","); if (getIndexName() != null) sb.append("IndexName: " + getIndexName() + ","); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); if (getLanguage() != null) sb.append("Language: " + getLanguage() + ","); if (getMaxResults() != null) @@ -1422,6 +1502,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getFilterCountries() == null) ? 0 : getFilterCountries().hashCode()); hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode()); + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode()); @@ -1464,6 +1545,10 @@ public boolean equals(Object obj) { if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false) return false; + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateKeyRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateKeyRequest.java index 2676dc4ad6..077be82a4c 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateKeyRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateKeyRequest.java @@ -23,14 +23,6 @@ *

* Updates the specified properties of a given API key resource. *

- * - *

- * The API keys feature is in preview. We may add, change, or remove features - * before announcing general availability. For more information, see Using API keys. - *

- *
*/ public class UpdateKeyRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateTrackerRequest.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateTrackerRequest.java index 5fe7f257c0..916d7c0065 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateTrackerRequest.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/UpdateTrackerRequest.java @@ -35,6 +35,21 @@ public class UpdateTrackerRequest extends AmazonWebServiceRequest implements Ser */ private String description; + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ */ + private Boolean eventBridgeEnabled; + /** *

* Updates the position filtering for the tracker resource. @@ -165,6 +180,128 @@ public UpdateTrackerRequest withDescription(String description) { return this; } + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @return

+ * Whether to enable position UPDATE events from this + * tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those + * events are always sent to EventBridge. + *

+ *
+ */ + public Boolean isEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @return

+ * Whether to enable position UPDATE events from this + * tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those + * events are always sent to EventBridge. + *

+ *
+ */ + public Boolean getEventBridgeEnabled() { + return eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ * + * @param eventBridgeEnabled

+ * Whether to enable position UPDATE events from + * this tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER + * and EXIT events for geofences with this tracker. + * Those events are always sent to EventBridge. + *

+ *
+ */ + public void setEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + } + + /** + *

+ * Whether to enable position UPDATE events from this tracker + * to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER and + * EXIT events for geofences with this tracker. Those events + * are always sent to EventBridge. + *

+ *
+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param eventBridgeEnabled

+ * Whether to enable position UPDATE events from + * this tracker to be sent to EventBridge. + *

+ * + *

+ * You do not need enable this feature to get ENTER + * and EXIT events for geofences with this tracker. + * Those events are always sent to EventBridge. + *

+ *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateTrackerRequest withEventBridgeEnabled(Boolean eventBridgeEnabled) { + this.eventBridgeEnabled = eventBridgeEnabled; + return this; + } + /** *

* Updates the position filtering for the tracker resource. @@ -868,6 +1005,8 @@ public String toString() { sb.append("{"); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); + if (getEventBridgeEnabled() != null) + sb.append("EventBridgeEnabled: " + getEventBridgeEnabled() + ","); if (getPositionFiltering() != null) sb.append("PositionFiltering: " + getPositionFiltering() + ","); if (getPricingPlan() != null) @@ -887,6 +1026,8 @@ public int hashCode() { hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + + ((getEventBridgeEnabled() == null) ? 0 : getEventBridgeEnabled().hashCode()); hashCode = prime * hashCode + ((getPositionFiltering() == null) ? 0 : getPositionFiltering().hashCode()); hashCode = prime * hashCode @@ -915,6 +1056,11 @@ public boolean equals(Object obj) { if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; + if (other.getEventBridgeEnabled() == null ^ this.getEventBridgeEnabled() == null) + return false; + if (other.getEventBridgeEnabled() != null + && other.getEventBridgeEnabled().equals(this.getEventBridgeEnabled()) == false) + return false; if (other.getPositionFiltering() == null ^ this.getPositionFiltering() == null) return false; if (other.getPositionFiltering() != null diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteMatrixRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteMatrixRequestMarshaller.java index 5d6a189e4a..2be89fe0a7 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteMatrixRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteMatrixRequestMarshaller.java @@ -59,6 +59,10 @@ public Request marshall( "{CalculatorName}", (calculateRouteMatrixRequest.getCalculatorName() == null) ? "" : StringUtils .fromString(calculateRouteMatrixRequest.getCalculatorName())); + if (calculateRouteMatrixRequest.getKey() != null) { + request.addParameter("key", + StringUtils.fromString(calculateRouteMatrixRequest.getKey())); + } request.setResourcePath(uriResourcePath); try { StringWriter stringWriter = new StringWriter(); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteRequestMarshaller.java index 022ecf0ac3..746911c305 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CalculateRouteRequestMarshaller.java @@ -58,6 +58,9 @@ public Request marshall(CalculateRouteRequest calculateRo "{CalculatorName}", (calculateRouteRequest.getCalculatorName() == null) ? "" : StringUtils .fromString(calculateRouteRequest.getCalculatorName())); + if (calculateRouteRequest.getKey() != null) { + request.addParameter("key", StringUtils.fromString(calculateRouteRequest.getKey())); + } request.setResourcePath(uriResourcePath); try { StringWriter stringWriter = new StringWriter(); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CreateTrackerRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CreateTrackerRequestMarshaller.java index 963ea2c637..20bb6fb7c0 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CreateTrackerRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/CreateTrackerRequestMarshaller.java @@ -65,6 +65,11 @@ public Request marshall(CreateTrackerRequest createTracker jsonWriter.name("Description"); jsonWriter.value(description); } + if (createTrackerRequest.getEventBridgeEnabled() != null) { + Boolean eventBridgeEnabled = createTrackerRequest.getEventBridgeEnabled(); + jsonWriter.name("EventBridgeEnabled"); + jsonWriter.value(eventBridgeEnabled); + } if (createTrackerRequest.getKmsKeyId() != null) { String kmsKeyId = createTrackerRequest.getKmsKeyId(); jsonWriter.name("KmsKeyId"); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/DescribeTrackerResultJsonUnmarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/DescribeTrackerResultJsonUnmarshaller.java index 8959bfa198..2e5b81b843 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/DescribeTrackerResultJsonUnmarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/DescribeTrackerResultJsonUnmarshaller.java @@ -40,6 +40,9 @@ public DescribeTrackerResult unmarshall(JsonUnmarshallerContext context) throws } else if (name.equals("Description")) { describeTrackerResult.setDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("EventBridgeEnabled")) { + describeTrackerResult.setEventBridgeEnabled(BooleanJsonUnmarshaller.getInstance() + .unmarshall(context)); } else if (name.equals("KmsKeyId")) { describeTrackerResult.setKmsKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/GetPlaceRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/GetPlaceRequestMarshaller.java index 5beb253628..025e519493 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/GetPlaceRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/GetPlaceRequestMarshaller.java @@ -57,6 +57,9 @@ public Request marshall(GetPlaceRequest getPlaceRequest) { "{IndexName}", (getPlaceRequest.getIndexName() == null) ? "" : StringUtils .fromString(getPlaceRequest.getIndexName())); + if (getPlaceRequest.getKey() != null) { + request.addParameter("key", StringUtils.fromString(getPlaceRequest.getKey())); + } if (getPlaceRequest.getLanguage() != null) { request.addParameter("language", StringUtils.fromString(getPlaceRequest.getLanguage())); } diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForPositionRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForPositionRequestMarshaller.java index 33d9bd8359..45b14b4e89 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForPositionRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForPositionRequestMarshaller.java @@ -59,6 +59,10 @@ public Request marshall( "{IndexName}", (searchPlaceIndexForPositionRequest.getIndexName() == null) ? "" : StringUtils .fromString(searchPlaceIndexForPositionRequest.getIndexName())); + if (searchPlaceIndexForPositionRequest.getKey() != null) { + request.addParameter("key", + StringUtils.fromString(searchPlaceIndexForPositionRequest.getKey())); + } request.setResourcePath(uriResourcePath); try { StringWriter stringWriter = new StringWriter(); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForSuggestionsRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForSuggestionsRequestMarshaller.java index 530f097ca3..377b319b51 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForSuggestionsRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForSuggestionsRequestMarshaller.java @@ -60,6 +60,10 @@ public Request marshall( "{IndexName}", (searchPlaceIndexForSuggestionsRequest.getIndexName() == null) ? "" : StringUtils .fromString(searchPlaceIndexForSuggestionsRequest.getIndexName())); + if (searchPlaceIndexForSuggestionsRequest.getKey() != null) { + request.addParameter("key", + StringUtils.fromString(searchPlaceIndexForSuggestionsRequest.getKey())); + } request.setResourcePath(uriResourcePath); try { StringWriter stringWriter = new StringWriter(); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForTextRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForTextRequestMarshaller.java index 91abc1892f..b03cc7f7ac 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForTextRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/SearchPlaceIndexForTextRequestMarshaller.java @@ -59,6 +59,10 @@ public Request marshall( "{IndexName}", (searchPlaceIndexForTextRequest.getIndexName() == null) ? "" : StringUtils .fromString(searchPlaceIndexForTextRequest.getIndexName())); + if (searchPlaceIndexForTextRequest.getKey() != null) { + request.addParameter("key", + StringUtils.fromString(searchPlaceIndexForTextRequest.getKey())); + } request.setResourcePath(uriResourcePath); try { StringWriter stringWriter = new StringWriter(); diff --git a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/UpdateTrackerRequestMarshaller.java b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/UpdateTrackerRequestMarshaller.java index 54b1f3e7b2..c935862871 100644 --- a/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/UpdateTrackerRequestMarshaller.java +++ b/aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/transform/UpdateTrackerRequestMarshaller.java @@ -69,6 +69,11 @@ public Request marshall(UpdateTrackerRequest updateTracker jsonWriter.name("Description"); jsonWriter.value(description); } + if (updateTrackerRequest.getEventBridgeEnabled() != null) { + Boolean eventBridgeEnabled = updateTrackerRequest.getEventBridgeEnabled(); + jsonWriter.name("EventBridgeEnabled"); + jsonWriter.value(eventBridgeEnabled); + } if (updateTrackerRequest.getPositionFiltering() != null) { String positionFiltering = updateTrackerRequest.getPositionFiltering(); jsonWriter.name("PositionFiltering");