All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ecs.model.ConflictException Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.ecs.model;

import javax.annotation.Generated;

/**
 * 

* The RunTask request could not be processed due to conflicts. The provided clientToken is * already in use with a different RunTask request. The resourceIds are the existing task ARNs * which are already associated with the clientToken. *

*

* To fix this issue: *

*
    *
  • *

    * Run RunTask with a unique clientToken. *

    *
  • *
  • *

    * Run RunTask with the clientToken and the original set of parameters *

    *
  • *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConflictException extends com.amazonaws.services.ecs.model.AmazonECSException { private static final long serialVersionUID = 1L; /** *

* The existing task ARNs which are already associated with the clientToken. *

*/ private com.amazonaws.internal.SdkInternalList resourceIds; /** * Constructs a new ConflictException with the specified error message. * * @param message * Describes the error encountered. */ public ConflictException(String message) { super(message); } /** *

* The existing task ARNs which are already associated with the clientToken. *

* * @return The existing task ARNs which are already associated with the clientToken. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") public java.util.List getResourceIds() { if (resourceIds == null) { resourceIds = new com.amazonaws.internal.SdkInternalList(); } return resourceIds; } /** *

* The existing task ARNs which are already associated with the clientToken. *

* * @param resourceIds * The existing task ARNs which are already associated with the clientToken. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") public void setResourceIds(java.util.Collection resourceIds) { if (resourceIds == null) { this.resourceIds = null; return; } this.resourceIds = new com.amazonaws.internal.SdkInternalList(resourceIds); } /** *

* The existing task ARNs which are already associated with the clientToken. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceIds(java.util.Collection)} or {@link #withResourceIds(java.util.Collection)} if you want to * override the existing values. *

* * @param resourceIds * The existing task ARNs which are already associated with the clientToken. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new com.amazonaws.internal.SdkInternalList(resourceIds.length)); } for (String ele : resourceIds) { this.resourceIds.add(ele); } return this; } /** *

* The existing task ARNs which are already associated with the clientToken. *

* * @param resourceIds * The existing task ARNs which are already associated with the clientToken. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withResourceIds(java.util.Collection resourceIds) { setResourceIds(resourceIds); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy