All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.quicksight.model.PivotTableAggregatedFieldWells Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 aggregated field well for the pivot table. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PivotTableAggregatedFieldWells implements Serializable, Cloneable, StructuredPojo { /** *

* The rows field well for a pivot table. Values are grouped by rows fields. *

*/ private java.util.List rows; /** *

* The columns field well for a pivot table. Values are grouped by columns fields. *

*/ private java.util.List columns; /** *

* The values field well for a pivot table. Values are aggregated based on rows and columns fields. *

*/ private java.util.List values; /** *

* The rows field well for a pivot table. Values are grouped by rows fields. *

* * @return The rows field well for a pivot table. Values are grouped by rows fields. */ public java.util.List getRows() { return rows; } /** *

* The rows field well for a pivot table. Values are grouped by rows fields. *

* * @param rows * The rows field well for a pivot table. Values are grouped by rows fields. */ public void setRows(java.util.Collection rows) { if (rows == null) { this.rows = null; return; } this.rows = new java.util.ArrayList(rows); } /** *

* The rows field well for a pivot table. Values are grouped by rows fields. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRows(java.util.Collection)} or {@link #withRows(java.util.Collection)} if you want to override the * existing values. *

* * @param rows * The rows field well for a pivot table. Values are grouped by rows fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withRows(DimensionField... rows) { if (this.rows == null) { setRows(new java.util.ArrayList(rows.length)); } for (DimensionField ele : rows) { this.rows.add(ele); } return this; } /** *

* The rows field well for a pivot table. Values are grouped by rows fields. *

* * @param rows * The rows field well for a pivot table. Values are grouped by rows fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withRows(java.util.Collection rows) { setRows(rows); return this; } /** *

* The columns field well for a pivot table. Values are grouped by columns fields. *

* * @return The columns field well for a pivot table. Values are grouped by columns fields. */ public java.util.List getColumns() { return columns; } /** *

* The columns field well for a pivot table. Values are grouped by columns fields. *

* * @param columns * The columns field well for a pivot table. Values are grouped by columns fields. */ public void setColumns(java.util.Collection columns) { if (columns == null) { this.columns = null; return; } this.columns = new java.util.ArrayList(columns); } /** *

* The columns field well for a pivot table. Values are grouped by columns fields. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumns(java.util.Collection)} or {@link #withColumns(java.util.Collection)} if you want to override * the existing values. *

* * @param columns * The columns field well for a pivot table. Values are grouped by columns fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withColumns(DimensionField... columns) { if (this.columns == null) { setColumns(new java.util.ArrayList(columns.length)); } for (DimensionField ele : columns) { this.columns.add(ele); } return this; } /** *

* The columns field well for a pivot table. Values are grouped by columns fields. *

* * @param columns * The columns field well for a pivot table. Values are grouped by columns fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withColumns(java.util.Collection columns) { setColumns(columns); return this; } /** *

* The values field well for a pivot table. Values are aggregated based on rows and columns fields. *

* * @return The values field well for a pivot table. Values are aggregated based on rows and columns fields. */ public java.util.List getValues() { return values; } /** *

* The values field well for a pivot table. Values are aggregated based on rows and columns fields. *

* * @param values * The values field well for a pivot table. Values are aggregated based on rows and columns fields. */ public void setValues(java.util.Collection values) { if (values == null) { this.values = null; return; } this.values = new java.util.ArrayList(values); } /** *

* The values field well for a pivot table. Values are aggregated based on rows and columns fields. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the * existing values. *

* * @param values * The values field well for a pivot table. Values are aggregated based on rows and columns fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withValues(MeasureField... values) { if (this.values == null) { setValues(new java.util.ArrayList(values.length)); } for (MeasureField ele : values) { this.values.add(ele); } return this; } /** *

* The values field well for a pivot table. Values are aggregated based on rows and columns fields. *

* * @param values * The values field well for a pivot table. Values are aggregated based on rows and columns fields. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTableAggregatedFieldWells withValues(java.util.Collection values) { setValues(values); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRows() != null) sb.append("Rows: ").append(getRows()).append(","); if (getColumns() != null) sb.append("Columns: ").append(getColumns()).append(","); if (getValues() != null) sb.append("Values: ").append(getValues()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PivotTableAggregatedFieldWells == false) return false; PivotTableAggregatedFieldWells other = (PivotTableAggregatedFieldWells) obj; if (other.getRows() == null ^ this.getRows() == null) return false; if (other.getRows() != null && other.getRows().equals(this.getRows()) == false) return false; if (other.getColumns() == null ^ this.getColumns() == null) return false; if (other.getColumns() != null && other.getColumns().equals(this.getColumns()) == false) return false; if (other.getValues() == null ^ this.getValues() == null) return false; if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRows() == null) ? 0 : getRows().hashCode()); hashCode = prime * hashCode + ((getColumns() == null) ? 0 : getColumns().hashCode()); hashCode = prime * hashCode + ((getValues() == null) ? 0 : getValues().hashCode()); return hashCode; } @Override public PivotTableAggregatedFieldWells clone() { try { return (PivotTableAggregatedFieldWells) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.quicksight.model.transform.PivotTableAggregatedFieldWellsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy