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

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

/*
 * 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 configuration for a TableVisual. *

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

* The field wells of the visual. *

*/ private TableFieldWells fieldWells; /** *

* The sort configuration for a TableVisual. *

*/ private TableSortConfiguration sortConfiguration; /** *

* The table options for a table visual. *

*/ private TableOptions tableOptions; /** *

* The total options for a table visual. *

*/ private TotalOptions totalOptions; /** *

* The field options for a table visual. *

*/ private TableFieldOptions fieldOptions; /** *

* The paginated report options for a table visual. *

*/ private TablePaginatedReportOptions paginatedReportOptions; /** *

* A collection of inline visualizations to display within a chart. *

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

* The general visual interactions setup for a visual. *

*/ private VisualInteractionOptions interactions; /** *

* The field wells of the visual. *

* * @param fieldWells * The field wells of the visual. */ public void setFieldWells(TableFieldWells fieldWells) { this.fieldWells = fieldWells; } /** *

* The field wells of the visual. *

* * @return The field wells of the visual. */ public TableFieldWells getFieldWells() { return this.fieldWells; } /** *

* The field wells of the visual. *

* * @param fieldWells * The field wells of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withFieldWells(TableFieldWells fieldWells) { setFieldWells(fieldWells); return this; } /** *

* The sort configuration for a TableVisual. *

* * @param sortConfiguration * The sort configuration for a TableVisual. */ public void setSortConfiguration(TableSortConfiguration sortConfiguration) { this.sortConfiguration = sortConfiguration; } /** *

* The sort configuration for a TableVisual. *

* * @return The sort configuration for a TableVisual. */ public TableSortConfiguration getSortConfiguration() { return this.sortConfiguration; } /** *

* The sort configuration for a TableVisual. *

* * @param sortConfiguration * The sort configuration for a TableVisual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withSortConfiguration(TableSortConfiguration sortConfiguration) { setSortConfiguration(sortConfiguration); return this; } /** *

* The table options for a table visual. *

* * @param tableOptions * The table options for a table visual. */ public void setTableOptions(TableOptions tableOptions) { this.tableOptions = tableOptions; } /** *

* The table options for a table visual. *

* * @return The table options for a table visual. */ public TableOptions getTableOptions() { return this.tableOptions; } /** *

* The table options for a table visual. *

* * @param tableOptions * The table options for a table visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withTableOptions(TableOptions tableOptions) { setTableOptions(tableOptions); return this; } /** *

* The total options for a table visual. *

* * @param totalOptions * The total options for a table visual. */ public void setTotalOptions(TotalOptions totalOptions) { this.totalOptions = totalOptions; } /** *

* The total options for a table visual. *

* * @return The total options for a table visual. */ public TotalOptions getTotalOptions() { return this.totalOptions; } /** *

* The total options for a table visual. *

* * @param totalOptions * The total options for a table visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withTotalOptions(TotalOptions totalOptions) { setTotalOptions(totalOptions); return this; } /** *

* The field options for a table visual. *

* * @param fieldOptions * The field options for a table visual. */ public void setFieldOptions(TableFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } /** *

* The field options for a table visual. *

* * @return The field options for a table visual. */ public TableFieldOptions getFieldOptions() { return this.fieldOptions; } /** *

* The field options for a table visual. *

* * @param fieldOptions * The field options for a table visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withFieldOptions(TableFieldOptions fieldOptions) { setFieldOptions(fieldOptions); return this; } /** *

* The paginated report options for a table visual. *

* * @param paginatedReportOptions * The paginated report options for a table visual. */ public void setPaginatedReportOptions(TablePaginatedReportOptions paginatedReportOptions) { this.paginatedReportOptions = paginatedReportOptions; } /** *

* The paginated report options for a table visual. *

* * @return The paginated report options for a table visual. */ public TablePaginatedReportOptions getPaginatedReportOptions() { return this.paginatedReportOptions; } /** *

* The paginated report options for a table visual. *

* * @param paginatedReportOptions * The paginated report options for a table visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withPaginatedReportOptions(TablePaginatedReportOptions paginatedReportOptions) { setPaginatedReportOptions(paginatedReportOptions); return this; } /** *

* A collection of inline visualizations to display within a chart. *

* * @return A collection of inline visualizations to display within a chart. */ public java.util.List getTableInlineVisualizations() { return tableInlineVisualizations; } /** *

* A collection of inline visualizations to display within a chart. *

* * @param tableInlineVisualizations * A collection of inline visualizations to display within a chart. */ public void setTableInlineVisualizations(java.util.Collection tableInlineVisualizations) { if (tableInlineVisualizations == null) { this.tableInlineVisualizations = null; return; } this.tableInlineVisualizations = new java.util.ArrayList(tableInlineVisualizations); } /** *

* A collection of inline visualizations to display within a chart. *

*

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

* * @param tableInlineVisualizations * A collection of inline visualizations to display within a chart. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withTableInlineVisualizations(TableInlineVisualization... tableInlineVisualizations) { if (this.tableInlineVisualizations == null) { setTableInlineVisualizations(new java.util.ArrayList(tableInlineVisualizations.length)); } for (TableInlineVisualization ele : tableInlineVisualizations) { this.tableInlineVisualizations.add(ele); } return this; } /** *

* A collection of inline visualizations to display within a chart. *

* * @param tableInlineVisualizations * A collection of inline visualizations to display within a chart. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withTableInlineVisualizations(java.util.Collection tableInlineVisualizations) { setTableInlineVisualizations(tableInlineVisualizations); return this; } /** *

* The general visual interactions setup for a visual. *

* * @param interactions * The general visual interactions setup for a visual. */ public void setInteractions(VisualInteractionOptions interactions) { this.interactions = interactions; } /** *

* The general visual interactions setup for a visual. *

* * @return The general visual interactions setup for a visual. */ public VisualInteractionOptions getInteractions() { return this.interactions; } /** *

* The general visual interactions setup for a visual. *

* * @param interactions * The general visual interactions setup for a visual. * @return Returns a reference to this object so that method calls can be chained together. */ public TableConfiguration withInteractions(VisualInteractionOptions interactions) { setInteractions(interactions); 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 (getFieldWells() != null) sb.append("FieldWells: ").append(getFieldWells()).append(","); if (getSortConfiguration() != null) sb.append("SortConfiguration: ").append(getSortConfiguration()).append(","); if (getTableOptions() != null) sb.append("TableOptions: ").append(getTableOptions()).append(","); if (getTotalOptions() != null) sb.append("TotalOptions: ").append(getTotalOptions()).append(","); if (getFieldOptions() != null) sb.append("FieldOptions: ").append(getFieldOptions()).append(","); if (getPaginatedReportOptions() != null) sb.append("PaginatedReportOptions: ").append(getPaginatedReportOptions()).append(","); if (getTableInlineVisualizations() != null) sb.append("TableInlineVisualizations: ").append(getTableInlineVisualizations()).append(","); if (getInteractions() != null) sb.append("Interactions: ").append(getInteractions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TableConfiguration == false) return false; TableConfiguration other = (TableConfiguration) obj; if (other.getFieldWells() == null ^ this.getFieldWells() == null) return false; if (other.getFieldWells() != null && other.getFieldWells().equals(this.getFieldWells()) == false) return false; if (other.getSortConfiguration() == null ^ this.getSortConfiguration() == null) return false; if (other.getSortConfiguration() != null && other.getSortConfiguration().equals(this.getSortConfiguration()) == false) return false; if (other.getTableOptions() == null ^ this.getTableOptions() == null) return false; if (other.getTableOptions() != null && other.getTableOptions().equals(this.getTableOptions()) == false) return false; if (other.getTotalOptions() == null ^ this.getTotalOptions() == null) return false; if (other.getTotalOptions() != null && other.getTotalOptions().equals(this.getTotalOptions()) == false) return false; if (other.getFieldOptions() == null ^ this.getFieldOptions() == null) return false; if (other.getFieldOptions() != null && other.getFieldOptions().equals(this.getFieldOptions()) == false) return false; if (other.getPaginatedReportOptions() == null ^ this.getPaginatedReportOptions() == null) return false; if (other.getPaginatedReportOptions() != null && other.getPaginatedReportOptions().equals(this.getPaginatedReportOptions()) == false) return false; if (other.getTableInlineVisualizations() == null ^ this.getTableInlineVisualizations() == null) return false; if (other.getTableInlineVisualizations() != null && other.getTableInlineVisualizations().equals(this.getTableInlineVisualizations()) == false) return false; if (other.getInteractions() == null ^ this.getInteractions() == null) return false; if (other.getInteractions() != null && other.getInteractions().equals(this.getInteractions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFieldWells() == null) ? 0 : getFieldWells().hashCode()); hashCode = prime * hashCode + ((getSortConfiguration() == null) ? 0 : getSortConfiguration().hashCode()); hashCode = prime * hashCode + ((getTableOptions() == null) ? 0 : getTableOptions().hashCode()); hashCode = prime * hashCode + ((getTotalOptions() == null) ? 0 : getTotalOptions().hashCode()); hashCode = prime * hashCode + ((getFieldOptions() == null) ? 0 : getFieldOptions().hashCode()); hashCode = prime * hashCode + ((getPaginatedReportOptions() == null) ? 0 : getPaginatedReportOptions().hashCode()); hashCode = prime * hashCode + ((getTableInlineVisualizations() == null) ? 0 : getTableInlineVisualizations().hashCode()); hashCode = prime * hashCode + ((getInteractions() == null) ? 0 : getInteractions().hashCode()); return hashCode; } @Override public TableConfiguration clone() { try { return (TableConfiguration) 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.TableConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy