/* * 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.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Dashboard error. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DashboardError implements Serializable, Cloneable, StructuredPojo { /** ** Type. *
*/ private String type; /** ** Message. *
*/ private String message; /** ** Lists the violated entities that caused the dashboard error. *
*/ private java.util.List* Type. *
* * @param type * Type. * @see DashboardErrorType */ public void setType(String type) { this.type = type; } /** ** Type. *
* * @return Type. * @see DashboardErrorType */ public String getType() { return this.type; } /** ** Type. *
* * @param type * Type. * @return Returns a reference to this object so that method calls can be chained together. * @see DashboardErrorType */ public DashboardError withType(String type) { setType(type); return this; } /** ** Type. *
* * @param type * Type. * @return Returns a reference to this object so that method calls can be chained together. * @see DashboardErrorType */ public DashboardError withType(DashboardErrorType type) { this.type = type.toString(); return this; } /** ** Message. *
* * @param message * Message. */ public void setMessage(String message) { this.message = message; } /** ** Message. *
* * @return Message. */ public String getMessage() { return this.message; } /** ** Message. *
* * @param message * Message. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardError withMessage(String message) { setMessage(message); return this; } /** ** Lists the violated entities that caused the dashboard error. *
* * @return Lists the violated entities that caused the dashboard error. */ public java.util.List* Lists the violated entities that caused the dashboard error. *
* * @param violatedEntities * Lists the violated entities that caused the dashboard error. */ public void setViolatedEntities(java.util.Collection* Lists the violated entities that caused the dashboard error. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setViolatedEntities(java.util.Collection)} or {@link #withViolatedEntities(java.util.Collection)} if you * want to override the existing values. *
* * @param violatedEntities * Lists the violated entities that caused the dashboard error. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardError withViolatedEntities(Entity... violatedEntities) { if (this.violatedEntities == null) { setViolatedEntities(new java.util.ArrayList* Lists the violated entities that caused the dashboard error. *
* * @param violatedEntities * Lists the violated entities that caused the dashboard error. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardError withViolatedEntities(java.util.Collection