com.amazonaws.services.quicksight.model.HistogramConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-quicksight Show documentation
/*
* 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 HistogramVisual
.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class HistogramConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* The field well configuration of a histogram.
*
*/
private HistogramFieldWells fieldWells;
/**
*
* The options that determine the presentation of the x-axis.
*
*/
private AxisDisplayOptions xAxisDisplayOptions;
/**
*
* The options that determine the presentation of the x-axis label.
*
*/
private ChartAxisLabelOptions xAxisLabelOptions;
/**
*
* The options that determine the presentation of the y-axis.
*
*/
private AxisDisplayOptions yAxisDisplayOptions;
/**
*
* The options that determine the presentation of histogram bins.
*
*/
private HistogramBinOptions binOptions;
/**
*
* The data label configuration of a histogram.
*
*/
private DataLabelOptions dataLabels;
/**
*
* The tooltip configuration of a histogram.
*
*/
private TooltipOptions tooltip;
/**
*
* The visual palette configuration of a histogram.
*
*/
private VisualPalette visualPalette;
/**
*
* The general visual interactions setup for a visual.
*
*/
private VisualInteractionOptions interactions;
/**
*
* The field well configuration of a histogram.
*
*
* @param fieldWells
* The field well configuration of a histogram.
*/
public void setFieldWells(HistogramFieldWells fieldWells) {
this.fieldWells = fieldWells;
}
/**
*
* The field well configuration of a histogram.
*
*
* @return The field well configuration of a histogram.
*/
public HistogramFieldWells getFieldWells() {
return this.fieldWells;
}
/**
*
* The field well configuration of a histogram.
*
*
* @param fieldWells
* The field well configuration of a histogram.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withFieldWells(HistogramFieldWells fieldWells) {
setFieldWells(fieldWells);
return this;
}
/**
*
* The options that determine the presentation of the x-axis.
*
*
* @param xAxisDisplayOptions
* The options that determine the presentation of the x-axis.
*/
public void setXAxisDisplayOptions(AxisDisplayOptions xAxisDisplayOptions) {
this.xAxisDisplayOptions = xAxisDisplayOptions;
}
/**
*
* The options that determine the presentation of the x-axis.
*
*
* @return The options that determine the presentation of the x-axis.
*/
public AxisDisplayOptions getXAxisDisplayOptions() {
return this.xAxisDisplayOptions;
}
/**
*
* The options that determine the presentation of the x-axis.
*
*
* @param xAxisDisplayOptions
* The options that determine the presentation of the x-axis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withXAxisDisplayOptions(AxisDisplayOptions xAxisDisplayOptions) {
setXAxisDisplayOptions(xAxisDisplayOptions);
return this;
}
/**
*
* The options that determine the presentation of the x-axis label.
*
*
* @param xAxisLabelOptions
* The options that determine the presentation of the x-axis label.
*/
public void setXAxisLabelOptions(ChartAxisLabelOptions xAxisLabelOptions) {
this.xAxisLabelOptions = xAxisLabelOptions;
}
/**
*
* The options that determine the presentation of the x-axis label.
*
*
* @return The options that determine the presentation of the x-axis label.
*/
public ChartAxisLabelOptions getXAxisLabelOptions() {
return this.xAxisLabelOptions;
}
/**
*
* The options that determine the presentation of the x-axis label.
*
*
* @param xAxisLabelOptions
* The options that determine the presentation of the x-axis label.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withXAxisLabelOptions(ChartAxisLabelOptions xAxisLabelOptions) {
setXAxisLabelOptions(xAxisLabelOptions);
return this;
}
/**
*
* The options that determine the presentation of the y-axis.
*
*
* @param yAxisDisplayOptions
* The options that determine the presentation of the y-axis.
*/
public void setYAxisDisplayOptions(AxisDisplayOptions yAxisDisplayOptions) {
this.yAxisDisplayOptions = yAxisDisplayOptions;
}
/**
*
* The options that determine the presentation of the y-axis.
*
*
* @return The options that determine the presentation of the y-axis.
*/
public AxisDisplayOptions getYAxisDisplayOptions() {
return this.yAxisDisplayOptions;
}
/**
*
* The options that determine the presentation of the y-axis.
*
*
* @param yAxisDisplayOptions
* The options that determine the presentation of the y-axis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withYAxisDisplayOptions(AxisDisplayOptions yAxisDisplayOptions) {
setYAxisDisplayOptions(yAxisDisplayOptions);
return this;
}
/**
*
* The options that determine the presentation of histogram bins.
*
*
* @param binOptions
* The options that determine the presentation of histogram bins.
*/
public void setBinOptions(HistogramBinOptions binOptions) {
this.binOptions = binOptions;
}
/**
*
* The options that determine the presentation of histogram bins.
*
*
* @return The options that determine the presentation of histogram bins.
*/
public HistogramBinOptions getBinOptions() {
return this.binOptions;
}
/**
*
* The options that determine the presentation of histogram bins.
*
*
* @param binOptions
* The options that determine the presentation of histogram bins.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withBinOptions(HistogramBinOptions binOptions) {
setBinOptions(binOptions);
return this;
}
/**
*
* The data label configuration of a histogram.
*
*
* @param dataLabels
* The data label configuration of a histogram.
*/
public void setDataLabels(DataLabelOptions dataLabels) {
this.dataLabels = dataLabels;
}
/**
*
* The data label configuration of a histogram.
*
*
* @return The data label configuration of a histogram.
*/
public DataLabelOptions getDataLabels() {
return this.dataLabels;
}
/**
*
* The data label configuration of a histogram.
*
*
* @param dataLabels
* The data label configuration of a histogram.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withDataLabels(DataLabelOptions dataLabels) {
setDataLabels(dataLabels);
return this;
}
/**
*
* The tooltip configuration of a histogram.
*
*
* @param tooltip
* The tooltip configuration of a histogram.
*/
public void setTooltip(TooltipOptions tooltip) {
this.tooltip = tooltip;
}
/**
*
* The tooltip configuration of a histogram.
*
*
* @return The tooltip configuration of a histogram.
*/
public TooltipOptions getTooltip() {
return this.tooltip;
}
/**
*
* The tooltip configuration of a histogram.
*
*
* @param tooltip
* The tooltip configuration of a histogram.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withTooltip(TooltipOptions tooltip) {
setTooltip(tooltip);
return this;
}
/**
*
* The visual palette configuration of a histogram.
*
*
* @param visualPalette
* The visual palette configuration of a histogram.
*/
public void setVisualPalette(VisualPalette visualPalette) {
this.visualPalette = visualPalette;
}
/**
*
* The visual palette configuration of a histogram.
*
*
* @return The visual palette configuration of a histogram.
*/
public VisualPalette getVisualPalette() {
return this.visualPalette;
}
/**
*
* The visual palette configuration of a histogram.
*
*
* @param visualPalette
* The visual palette configuration of a histogram.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HistogramConfiguration withVisualPalette(VisualPalette visualPalette) {
setVisualPalette(visualPalette);
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 HistogramConfiguration 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 (getXAxisDisplayOptions() != null)
sb.append("XAxisDisplayOptions: ").append(getXAxisDisplayOptions()).append(",");
if (getXAxisLabelOptions() != null)
sb.append("XAxisLabelOptions: ").append(getXAxisLabelOptions()).append(",");
if (getYAxisDisplayOptions() != null)
sb.append("YAxisDisplayOptions: ").append(getYAxisDisplayOptions()).append(",");
if (getBinOptions() != null)
sb.append("BinOptions: ").append(getBinOptions()).append(",");
if (getDataLabels() != null)
sb.append("DataLabels: ").append(getDataLabels()).append(",");
if (getTooltip() != null)
sb.append("Tooltip: ").append(getTooltip()).append(",");
if (getVisualPalette() != null)
sb.append("VisualPalette: ").append(getVisualPalette()).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 HistogramConfiguration == false)
return false;
HistogramConfiguration other = (HistogramConfiguration) obj;
if (other.getFieldWells() == null ^ this.getFieldWells() == null)
return false;
if (other.getFieldWells() != null && other.getFieldWells().equals(this.getFieldWells()) == false)
return false;
if (other.getXAxisDisplayOptions() == null ^ this.getXAxisDisplayOptions() == null)
return false;
if (other.getXAxisDisplayOptions() != null && other.getXAxisDisplayOptions().equals(this.getXAxisDisplayOptions()) == false)
return false;
if (other.getXAxisLabelOptions() == null ^ this.getXAxisLabelOptions() == null)
return false;
if (other.getXAxisLabelOptions() != null && other.getXAxisLabelOptions().equals(this.getXAxisLabelOptions()) == false)
return false;
if (other.getYAxisDisplayOptions() == null ^ this.getYAxisDisplayOptions() == null)
return false;
if (other.getYAxisDisplayOptions() != null && other.getYAxisDisplayOptions().equals(this.getYAxisDisplayOptions()) == false)
return false;
if (other.getBinOptions() == null ^ this.getBinOptions() == null)
return false;
if (other.getBinOptions() != null && other.getBinOptions().equals(this.getBinOptions()) == false)
return false;
if (other.getDataLabels() == null ^ this.getDataLabels() == null)
return false;
if (other.getDataLabels() != null && other.getDataLabels().equals(this.getDataLabels()) == false)
return false;
if (other.getTooltip() == null ^ this.getTooltip() == null)
return false;
if (other.getTooltip() != null && other.getTooltip().equals(this.getTooltip()) == false)
return false;
if (other.getVisualPalette() == null ^ this.getVisualPalette() == null)
return false;
if (other.getVisualPalette() != null && other.getVisualPalette().equals(this.getVisualPalette()) == 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 + ((getXAxisDisplayOptions() == null) ? 0 : getXAxisDisplayOptions().hashCode());
hashCode = prime * hashCode + ((getXAxisLabelOptions() == null) ? 0 : getXAxisLabelOptions().hashCode());
hashCode = prime * hashCode + ((getYAxisDisplayOptions() == null) ? 0 : getYAxisDisplayOptions().hashCode());
hashCode = prime * hashCode + ((getBinOptions() == null) ? 0 : getBinOptions().hashCode());
hashCode = prime * hashCode + ((getDataLabels() == null) ? 0 : getDataLabels().hashCode());
hashCode = prime * hashCode + ((getTooltip() == null) ? 0 : getTooltip().hashCode());
hashCode = prime * hashCode + ((getVisualPalette() == null) ? 0 : getVisualPalette().hashCode());
hashCode = prime * hashCode + ((getInteractions() == null) ? 0 : getInteractions().hashCode());
return hashCode;
}
@Override
public HistogramConfiguration clone() {
try {
return (HistogramConfiguration) 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.HistogramConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}