/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.geo.model; import java.io.Serializable; public class BatchPutGeofenceResult implements Serializable { /** *
* Contains additional error details for each geofence that failed to be * stored in a geofence collection. *
*/ private java.util.List* Contains each geofence that was successfully stored in a geofence * collection. *
*/ private java.util.List* Contains additional error details for each geofence that failed to be * stored in a geofence collection. *
* * @return* Contains additional error details for each geofence that failed * to be stored in a geofence collection. *
*/ public java.util.List* Contains additional error details for each geofence that failed to be * stored in a geofence collection. *
* * @param errors* Contains additional error details for each geofence that * failed to be stored in a geofence collection. *
*/ public void setErrors(java.util.Collection* Contains additional error details for each geofence that failed to be * stored in a geofence collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* Contains additional error details for each geofence that * failed to be stored in a geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceResult withErrors(BatchPutGeofenceError... errors) { if (getErrors() == null) { this.errors = new java.util.ArrayList* Contains additional error details for each geofence that failed to be * stored in a geofence collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param errors
* Contains additional error details for each geofence that * failed to be stored in a geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceResult withErrors(java.util.Collection* Contains each geofence that was successfully stored in a geofence * collection. *
* * @return* Contains each geofence that was successfully stored in a geofence * collection. *
*/ public java.util.List* Contains each geofence that was successfully stored in a geofence * collection. *
* * @param successes* Contains each geofence that was successfully stored in a * geofence collection. *
*/ public void setSuccesses(java.util.Collection* Contains each geofence that was successfully stored in a geofence * collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param successes
* Contains each geofence that was successfully stored in a * geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceResult withSuccesses(BatchPutGeofenceSuccess... successes) { if (getSuccesses() == null) { this.successes = new java.util.ArrayList* Contains each geofence that was successfully stored in a geofence * collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param successes
* Contains each geofence that was successfully stored in a * geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceResult withSuccesses( java.util.Collection