/* * 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 field options for a pivot table visual. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PivotTableFieldOptions implements Serializable, Cloneable, StructuredPojo { /** ** The selected field options for the pivot table field options. *
*/ private java.util.List* The data path options for the pivot table field options. *
*/ private java.util.List* The collapse state options for the pivot table field options. *
*/ private java.util.List* The selected field options for the pivot table field options. *
* * @return The selected field options for the pivot table field options. */ public java.util.List* The selected field options for the pivot table field options. *
* * @param selectedFieldOptions * The selected field options for the pivot table field options. */ public void setSelectedFieldOptions(java.util.Collection* The selected field options for the pivot table field options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSelectedFieldOptions(java.util.Collection)} or {@link #withSelectedFieldOptions(java.util.Collection)} * if you want to override the existing values. *
* * @param selectedFieldOptions * The selected field options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withSelectedFieldOptions(PivotTableFieldOption... selectedFieldOptions) { if (this.selectedFieldOptions == null) { setSelectedFieldOptions(new java.util.ArrayList* The selected field options for the pivot table field options. *
* * @param selectedFieldOptions * The selected field options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withSelectedFieldOptions(java.util.Collection* The data path options for the pivot table field options. *
* * @return The data path options for the pivot table field options. */ public java.util.List* The data path options for the pivot table field options. *
* * @param dataPathOptions * The data path options for the pivot table field options. */ public void setDataPathOptions(java.util.Collection* The data path options for the pivot table field options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataPathOptions(java.util.Collection)} or {@link #withDataPathOptions(java.util.Collection)} if you * want to override the existing values. *
* * @param dataPathOptions * The data path options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withDataPathOptions(PivotTableDataPathOption... dataPathOptions) { if (this.dataPathOptions == null) { setDataPathOptions(new java.util.ArrayList* The data path options for the pivot table field options. *
* * @param dataPathOptions * The data path options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withDataPathOptions(java.util.Collection* The collapse state options for the pivot table field options. *
* * @return The collapse state options for the pivot table field options. */ public java.util.List* The collapse state options for the pivot table field options. *
* * @param collapseStateOptions * The collapse state options for the pivot table field options. */ public void setCollapseStateOptions(java.util.Collection* The collapse state options for the pivot table field options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCollapseStateOptions(java.util.Collection)} or {@link #withCollapseStateOptions(java.util.Collection)} * if you want to override the existing values. *
* * @param collapseStateOptions * The collapse state options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withCollapseStateOptions(PivotTableFieldCollapseStateOption... collapseStateOptions) { if (this.collapseStateOptions == null) { setCollapseStateOptions(new java.util.ArrayList* The collapse state options for the pivot table field options. *
* * @param collapseStateOptions * The collapse state options for the pivot table field options. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableFieldOptions withCollapseStateOptions(java.util.Collection