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

com.amazonaws.services.quicksight.model.PivotTotalOptions 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 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 optional configuration of totals cells in a PivotTableVisual. *

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

* The visibility configuration for the total cells. *

*/ private String totalsVisibility; /** *

* The placement (start, end) for the total cells. *

*/ private String placement; /** *

* The scroll status (pinned, scrolled) for the total cells. *

*/ private String scrollStatus; /** *

* The custom label string for the total cells. *

*/ private String customLabel; /** *

* The cell styling options for the total cells. *

*/ private TableCellStyle totalCellStyle; /** *

* The cell styling options for the totals of value cells. *

*/ private TableCellStyle valueCellStyle; /** *

* The cell styling options for the total of header cells. *

*/ private TableCellStyle metricHeaderCellStyle; /** *

* The visibility configuration for the total cells. *

* * @param totalsVisibility * The visibility configuration for the total cells. * @see Visibility */ public void setTotalsVisibility(String totalsVisibility) { this.totalsVisibility = totalsVisibility; } /** *

* The visibility configuration for the total cells. *

* * @return The visibility configuration for the total cells. * @see Visibility */ public String getTotalsVisibility() { return this.totalsVisibility; } /** *

* The visibility configuration for the total cells. *

* * @param totalsVisibility * The visibility configuration for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see Visibility */ public PivotTotalOptions withTotalsVisibility(String totalsVisibility) { setTotalsVisibility(totalsVisibility); return this; } /** *

* The visibility configuration for the total cells. *

* * @param totalsVisibility * The visibility configuration for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see Visibility */ public PivotTotalOptions withTotalsVisibility(Visibility totalsVisibility) { this.totalsVisibility = totalsVisibility.toString(); return this; } /** *

* The placement (start, end) for the total cells. *

* * @param placement * The placement (start, end) for the total cells. * @see TableTotalsPlacement */ public void setPlacement(String placement) { this.placement = placement; } /** *

* The placement (start, end) for the total cells. *

* * @return The placement (start, end) for the total cells. * @see TableTotalsPlacement */ public String getPlacement() { return this.placement; } /** *

* The placement (start, end) for the total cells. *

* * @param placement * The placement (start, end) for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see TableTotalsPlacement */ public PivotTotalOptions withPlacement(String placement) { setPlacement(placement); return this; } /** *

* The placement (start, end) for the total cells. *

* * @param placement * The placement (start, end) for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see TableTotalsPlacement */ public PivotTotalOptions withPlacement(TableTotalsPlacement placement) { this.placement = placement.toString(); return this; } /** *

* The scroll status (pinned, scrolled) for the total cells. *

* * @param scrollStatus * The scroll status (pinned, scrolled) for the total cells. * @see TableTotalsScrollStatus */ public void setScrollStatus(String scrollStatus) { this.scrollStatus = scrollStatus; } /** *

* The scroll status (pinned, scrolled) for the total cells. *

* * @return The scroll status (pinned, scrolled) for the total cells. * @see TableTotalsScrollStatus */ public String getScrollStatus() { return this.scrollStatus; } /** *

* The scroll status (pinned, scrolled) for the total cells. *

* * @param scrollStatus * The scroll status (pinned, scrolled) for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see TableTotalsScrollStatus */ public PivotTotalOptions withScrollStatus(String scrollStatus) { setScrollStatus(scrollStatus); return this; } /** *

* The scroll status (pinned, scrolled) for the total cells. *

* * @param scrollStatus * The scroll status (pinned, scrolled) for the total cells. * @return Returns a reference to this object so that method calls can be chained together. * @see TableTotalsScrollStatus */ public PivotTotalOptions withScrollStatus(TableTotalsScrollStatus scrollStatus) { this.scrollStatus = scrollStatus.toString(); return this; } /** *

* The custom label string for the total cells. *

* * @param customLabel * The custom label string for the total cells. */ public void setCustomLabel(String customLabel) { this.customLabel = customLabel; } /** *

* The custom label string for the total cells. *

* * @return The custom label string for the total cells. */ public String getCustomLabel() { return this.customLabel; } /** *

* The custom label string for the total cells. *

* * @param customLabel * The custom label string for the total cells. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTotalOptions withCustomLabel(String customLabel) { setCustomLabel(customLabel); return this; } /** *

* The cell styling options for the total cells. *

* * @param totalCellStyle * The cell styling options for the total cells. */ public void setTotalCellStyle(TableCellStyle totalCellStyle) { this.totalCellStyle = totalCellStyle; } /** *

* The cell styling options for the total cells. *

* * @return The cell styling options for the total cells. */ public TableCellStyle getTotalCellStyle() { return this.totalCellStyle; } /** *

* The cell styling options for the total cells. *

* * @param totalCellStyle * The cell styling options for the total cells. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTotalOptions withTotalCellStyle(TableCellStyle totalCellStyle) { setTotalCellStyle(totalCellStyle); return this; } /** *

* The cell styling options for the totals of value cells. *

* * @param valueCellStyle * The cell styling options for the totals of value cells. */ public void setValueCellStyle(TableCellStyle valueCellStyle) { this.valueCellStyle = valueCellStyle; } /** *

* The cell styling options for the totals of value cells. *

* * @return The cell styling options for the totals of value cells. */ public TableCellStyle getValueCellStyle() { return this.valueCellStyle; } /** *

* The cell styling options for the totals of value cells. *

* * @param valueCellStyle * The cell styling options for the totals of value cells. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTotalOptions withValueCellStyle(TableCellStyle valueCellStyle) { setValueCellStyle(valueCellStyle); return this; } /** *

* The cell styling options for the total of header cells. *

* * @param metricHeaderCellStyle * The cell styling options for the total of header cells. */ public void setMetricHeaderCellStyle(TableCellStyle metricHeaderCellStyle) { this.metricHeaderCellStyle = metricHeaderCellStyle; } /** *

* The cell styling options for the total of header cells. *

* * @return The cell styling options for the total of header cells. */ public TableCellStyle getMetricHeaderCellStyle() { return this.metricHeaderCellStyle; } /** *

* The cell styling options for the total of header cells. *

* * @param metricHeaderCellStyle * The cell styling options for the total of header cells. * @return Returns a reference to this object so that method calls can be chained together. */ public PivotTotalOptions withMetricHeaderCellStyle(TableCellStyle metricHeaderCellStyle) { setMetricHeaderCellStyle(metricHeaderCellStyle); 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 (getTotalsVisibility() != null) sb.append("TotalsVisibility: ").append(getTotalsVisibility()).append(","); if (getPlacement() != null) sb.append("Placement: ").append(getPlacement()).append(","); if (getScrollStatus() != null) sb.append("ScrollStatus: ").append(getScrollStatus()).append(","); if (getCustomLabel() != null) sb.append("CustomLabel: ").append(getCustomLabel()).append(","); if (getTotalCellStyle() != null) sb.append("TotalCellStyle: ").append(getTotalCellStyle()).append(","); if (getValueCellStyle() != null) sb.append("ValueCellStyle: ").append(getValueCellStyle()).append(","); if (getMetricHeaderCellStyle() != null) sb.append("MetricHeaderCellStyle: ").append(getMetricHeaderCellStyle()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PivotTotalOptions == false) return false; PivotTotalOptions other = (PivotTotalOptions) obj; if (other.getTotalsVisibility() == null ^ this.getTotalsVisibility() == null) return false; if (other.getTotalsVisibility() != null && other.getTotalsVisibility().equals(this.getTotalsVisibility()) == false) return false; if (other.getPlacement() == null ^ this.getPlacement() == null) return false; if (other.getPlacement() != null && other.getPlacement().equals(this.getPlacement()) == false) return false; if (other.getScrollStatus() == null ^ this.getScrollStatus() == null) return false; if (other.getScrollStatus() != null && other.getScrollStatus().equals(this.getScrollStatus()) == false) return false; if (other.getCustomLabel() == null ^ this.getCustomLabel() == null) return false; if (other.getCustomLabel() != null && other.getCustomLabel().equals(this.getCustomLabel()) == false) return false; if (other.getTotalCellStyle() == null ^ this.getTotalCellStyle() == null) return false; if (other.getTotalCellStyle() != null && other.getTotalCellStyle().equals(this.getTotalCellStyle()) == false) return false; if (other.getValueCellStyle() == null ^ this.getValueCellStyle() == null) return false; if (other.getValueCellStyle() != null && other.getValueCellStyle().equals(this.getValueCellStyle()) == false) return false; if (other.getMetricHeaderCellStyle() == null ^ this.getMetricHeaderCellStyle() == null) return false; if (other.getMetricHeaderCellStyle() != null && other.getMetricHeaderCellStyle().equals(this.getMetricHeaderCellStyle()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTotalsVisibility() == null) ? 0 : getTotalsVisibility().hashCode()); hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode()); hashCode = prime * hashCode + ((getScrollStatus() == null) ? 0 : getScrollStatus().hashCode()); hashCode = prime * hashCode + ((getCustomLabel() == null) ? 0 : getCustomLabel().hashCode()); hashCode = prime * hashCode + ((getTotalCellStyle() == null) ? 0 : getTotalCellStyle().hashCode()); hashCode = prime * hashCode + ((getValueCellStyle() == null) ? 0 : getValueCellStyle().hashCode()); hashCode = prime * hashCode + ((getMetricHeaderCellStyle() == null) ? 0 : getMetricHeaderCellStyle().hashCode()); return hashCode; } @Override public PivotTotalOptions clone() { try { return (PivotTotalOptions) 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.PivotTotalOptionsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy