/* * Copyright 2018-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.dlm.model; import javax.annotation.Generated; /** *
* A requested resource was not found. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceNotFoundException extends com.amazonaws.services.dlm.model.AmazonDLMException { private static final long serialVersionUID = 1L; private String code; /** ** Value is the type of resource that was not found. *
*/ private String resourceType; /** ** Value is a list of resource IDs that were not found. *
*/ private java.util.List* Value is the type of resource that was not found. *
* * @param resourceType * Value is the type of resource that was not found. */ @com.fasterxml.jackson.annotation.JsonProperty("ResourceType") public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** ** Value is the type of resource that was not found. *
* * @return Value is the type of resource that was not found. */ @com.fasterxml.jackson.annotation.JsonProperty("ResourceType") public String getResourceType() { return this.resourceType; } /** ** Value is the type of resource that was not found. *
* * @param resourceType * Value is the type of resource that was not found. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceNotFoundException withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** ** Value is a list of resource IDs that were not found. *
* * @return Value is a list of resource IDs that were not found. */ @com.fasterxml.jackson.annotation.JsonProperty("ResourceIds") public java.util.List* Value is a list of resource IDs that were not found. *
* * @param resourceIds * Value is a list of resource IDs that were not found. */ @com.fasterxml.jackson.annotation.JsonProperty("ResourceIds") public void setResourceIds(java.util.Collection* Value is a list of resource IDs that were not found. *
** 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 * Value is a list of resource IDs that were not found. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceNotFoundException withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new java.util.ArrayList* Value is a list of resource IDs that were not found. *
* * @param resourceIds * Value is a list of resource IDs that were not found. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceNotFoundException withResourceIds(java.util.Collection