/* * 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; /** *
* The cell conditional formatting option for a pivot table. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PivotTableCellConditionalFormatting implements Serializable, Cloneable, StructuredPojo { /** ** The field ID of the cell for conditional formatting. *
*/ private String fieldId; /** ** The text format of the cell for conditional formatting. *
*/ private TextConditionalFormat textFormat; /** ** The scope of the cell for conditional formatting. *
*/ private PivotTableConditionalFormattingScope scope; /** ** A list of cell scopes for conditional formatting. *
*/ private java.util.List* The field ID of the cell for conditional formatting. *
* * @param fieldId * The field ID of the cell for conditional formatting. */ public void setFieldId(String fieldId) { this.fieldId = fieldId; } /** ** The field ID of the cell for conditional formatting. *
* * @return The field ID of the cell for conditional formatting. */ public String getFieldId() { return this.fieldId; } /** ** The field ID of the cell for conditional formatting. *
* * @param fieldId * The field ID of the cell for conditional formatting. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableCellConditionalFormatting withFieldId(String fieldId) { setFieldId(fieldId); return this; } /** ** The text format of the cell for conditional formatting. *
* * @param textFormat * The text format of the cell for conditional formatting. */ public void setTextFormat(TextConditionalFormat textFormat) { this.textFormat = textFormat; } /** ** The text format of the cell for conditional formatting. *
* * @return The text format of the cell for conditional formatting. */ public TextConditionalFormat getTextFormat() { return this.textFormat; } /** ** The text format of the cell for conditional formatting. *
* * @param textFormat * The text format of the cell for conditional formatting. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableCellConditionalFormatting withTextFormat(TextConditionalFormat textFormat) { setTextFormat(textFormat); return this; } /** ** The scope of the cell for conditional formatting. *
* * @param scope * The scope of the cell for conditional formatting. */ public void setScope(PivotTableConditionalFormattingScope scope) { this.scope = scope; } /** ** The scope of the cell for conditional formatting. *
* * @return The scope of the cell for conditional formatting. */ public PivotTableConditionalFormattingScope getScope() { return this.scope; } /** ** The scope of the cell for conditional formatting. *
* * @param scope * The scope of the cell for conditional formatting. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableCellConditionalFormatting withScope(PivotTableConditionalFormattingScope scope) { setScope(scope); return this; } /** ** A list of cell scopes for conditional formatting. *
* * @return A list of cell scopes for conditional formatting. */ public java.util.List* A list of cell scopes for conditional formatting. *
* * @param scopes * A list of cell scopes for conditional formatting. */ public void setScopes(java.util.Collection* A list of cell scopes for conditional formatting. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setScopes(java.util.Collection)} or {@link #withScopes(java.util.Collection)} if you want to override the * existing values. *
* * @param scopes * A list of cell scopes for conditional formatting. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableCellConditionalFormatting withScopes(PivotTableConditionalFormattingScope... scopes) { if (this.scopes == null) { setScopes(new java.util.ArrayList* A list of cell scopes for conditional formatting. *
* * @param scopes * A list of cell scopes for conditional formatting. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableCellConditionalFormatting withScopes(java.util.Collection