/* * 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.resiliencehub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A list of errors retrieving an application's resources. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceErrorsDetails implements Serializable, Cloneable, StructuredPojo { /** ** This indicates if there are more errors not listed in the resourceErrors list. *
*/ private Boolean hasMoreErrors; /** ** A list of errors retrieving an application's resources. *
*/ private java.util.List* This indicates if there are more errors not listed in the resourceErrors list. *
* * @param hasMoreErrors * This indicates if there are more errors not listed in the resourceErrors list. */ public void setHasMoreErrors(Boolean hasMoreErrors) { this.hasMoreErrors = hasMoreErrors; } /** ** This indicates if there are more errors not listed in the resourceErrors list. *
* * @return This indicates if there are more errors not listed in the resourceErrors list. */ public Boolean getHasMoreErrors() { return this.hasMoreErrors; } /** ** This indicates if there are more errors not listed in the resourceErrors list. *
* * @param hasMoreErrors * This indicates if there are more errors not listed in the resourceErrors list. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceErrorsDetails withHasMoreErrors(Boolean hasMoreErrors) { setHasMoreErrors(hasMoreErrors); return this; } /** ** This indicates if there are more errors not listed in the resourceErrors list. *
* * @return This indicates if there are more errors not listed in the resourceErrors list. */ public Boolean isHasMoreErrors() { return this.hasMoreErrors; } /** ** A list of errors retrieving an application's resources. *
* * @return A list of errors retrieving an application's resources. */ public java.util.List* A list of errors retrieving an application's resources. *
* * @param resourceErrors * A list of errors retrieving an application's resources. */ public void setResourceErrors(java.util.Collection* A list of errors retrieving an application's resources. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceErrors(java.util.Collection)} or {@link #withResourceErrors(java.util.Collection)} if you want * to override the existing values. *
* * @param resourceErrors * A list of errors retrieving an application's resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceErrorsDetails withResourceErrors(ResourceError... resourceErrors) { if (this.resourceErrors == null) { setResourceErrors(new java.util.ArrayList* A list of errors retrieving an application's resources. *
* * @param resourceErrors * A list of errors retrieving an application's resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceErrorsDetails withResourceErrors(java.util.Collection