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

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

Go to download

The AWS Java SDK for Application Migration module holds the client classes that are used for communicating with Application Migration Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.mgn.model;

import javax.annotation.Generated;

/**
 * 

* The request could not be completed due to a conflict with the current state of the target resource. *

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

* Conflict Exception specific errors. *

*/ private java.util.List errors; /** *

* A conflict occurred when prompting for the Resource ID. *

*/ private String resourceId; /** *

* A conflict occurred when prompting for resource type. *

*/ private String resourceType; /** * Constructs a new ConflictException with the specified error message. * * @param message * Describes the error encountered. */ public ConflictException(String message) { super(message); } /** * @param code */ @com.fasterxml.jackson.annotation.JsonProperty("code") public void setCode(String code) { this.code = code; } /** * @return */ @com.fasterxml.jackson.annotation.JsonProperty("code") public String getCode() { return this.code; } /** * @param code * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withCode(String code) { setCode(code); return this; } /** *

* Conflict Exception specific errors. *

* * @return Conflict Exception specific errors. */ @com.fasterxml.jackson.annotation.JsonProperty("errors") public java.util.List getErrors() { return errors; } /** *

* Conflict Exception specific errors. *

* * @param errors * Conflict Exception specific errors. */ @com.fasterxml.jackson.annotation.JsonProperty("errors") public void setErrors(java.util.Collection errors) { if (errors == null) { this.errors = null; return; } this.errors = new java.util.ArrayList(errors); } /** *

* Conflict Exception specific errors. *

*

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

* * @param errors * Conflict Exception specific errors. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withErrors(ErrorDetails... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList(errors.length)); } for (ErrorDetails ele : errors) { this.errors.add(ele); } return this; } /** *

* Conflict Exception specific errors. *

* * @param errors * Conflict Exception specific errors. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withErrors(java.util.Collection errors) { setErrors(errors); return this; } /** *

* A conflict occurred when prompting for the Resource ID. *

* * @param resourceId * A conflict occurred when prompting for the Resource ID. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceId") public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* A conflict occurred when prompting for the Resource ID. *

* * @return A conflict occurred when prompting for the Resource ID. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceId") public String getResourceId() { return this.resourceId; } /** *

* A conflict occurred when prompting for the Resource ID. *

* * @param resourceId * A conflict occurred when prompting for the Resource ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* A conflict occurred when prompting for resource type. *

* * @param resourceType * A conflict occurred when prompting for resource type. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* A conflict occurred when prompting for resource type. *

* * @return A conflict occurred when prompting for resource type. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") public String getResourceType() { return this.resourceType; } /** *

* A conflict occurred when prompting for resource type. *

* * @param resourceType * A conflict occurred when prompting for resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictException withResourceType(String resourceType) { setResourceType(resourceType); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy