com.amazonaws.services.quicksight.model.GaugeChartConfiguration 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 of a GaugeChartVisual
.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GaugeChartConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* The field well configuration of a GaugeChartVisual
.
*
*/
private GaugeChartFieldWells fieldWells;
/**
*
* The options that determine the presentation of the GaugeChartVisual
.
*
*/
private GaugeChartOptions gaugeChartOptions;
/**
*
* The data label configuration of a GaugeChartVisual
.
*
*/
private DataLabelOptions dataLabels;
/**
*
* The tooltip configuration of a GaugeChartVisual
.
*
*/
private TooltipOptions tooltipOptions;
/**
*
* The visual palette configuration of a GaugeChartVisual
.
*
*/
private VisualPalette visualPalette;
/**
*
* The color configuration of a GaugeChartVisual
.
*
*/
private GaugeChartColorConfiguration colorConfiguration;
/**
*
* The general visual interactions setup for a visual.
*
*/
private VisualInteractionOptions interactions;
/**
*
* The field well configuration of a GaugeChartVisual
.
*
*
* @param fieldWells
* The field well configuration of a GaugeChartVisual
.
*/
public void setFieldWells(GaugeChartFieldWells fieldWells) {
this.fieldWells = fieldWells;
}
/**
*
* The field well configuration of a GaugeChartVisual
.
*
*
* @return The field well configuration of a GaugeChartVisual
.
*/
public GaugeChartFieldWells getFieldWells() {
return this.fieldWells;
}
/**
*
* The field well configuration of a GaugeChartVisual
.
*
*
* @param fieldWells
* The field well configuration of a GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withFieldWells(GaugeChartFieldWells fieldWells) {
setFieldWells(fieldWells);
return this;
}
/**
*
* The options that determine the presentation of the GaugeChartVisual
.
*
*
* @param gaugeChartOptions
* The options that determine the presentation of the GaugeChartVisual
.
*/
public void setGaugeChartOptions(GaugeChartOptions gaugeChartOptions) {
this.gaugeChartOptions = gaugeChartOptions;
}
/**
*
* The options that determine the presentation of the GaugeChartVisual
.
*
*
* @return The options that determine the presentation of the GaugeChartVisual
.
*/
public GaugeChartOptions getGaugeChartOptions() {
return this.gaugeChartOptions;
}
/**
*
* The options that determine the presentation of the GaugeChartVisual
.
*
*
* @param gaugeChartOptions
* The options that determine the presentation of the GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withGaugeChartOptions(GaugeChartOptions gaugeChartOptions) {
setGaugeChartOptions(gaugeChartOptions);
return this;
}
/**
*
* The data label configuration of a GaugeChartVisual
.
*
*
* @param dataLabels
* The data label configuration of a GaugeChartVisual
.
*/
public void setDataLabels(DataLabelOptions dataLabels) {
this.dataLabels = dataLabels;
}
/**
*
* The data label configuration of a GaugeChartVisual
.
*
*
* @return The data label configuration of a GaugeChartVisual
.
*/
public DataLabelOptions getDataLabels() {
return this.dataLabels;
}
/**
*
* The data label configuration of a GaugeChartVisual
.
*
*
* @param dataLabels
* The data label configuration of a GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withDataLabels(DataLabelOptions dataLabels) {
setDataLabels(dataLabels);
return this;
}
/**
*
* The tooltip configuration of a GaugeChartVisual
.
*
*
* @param tooltipOptions
* The tooltip configuration of a GaugeChartVisual
.
*/
public void setTooltipOptions(TooltipOptions tooltipOptions) {
this.tooltipOptions = tooltipOptions;
}
/**
*
* The tooltip configuration of a GaugeChartVisual
.
*
*
* @return The tooltip configuration of a GaugeChartVisual
.
*/
public TooltipOptions getTooltipOptions() {
return this.tooltipOptions;
}
/**
*
* The tooltip configuration of a GaugeChartVisual
.
*
*
* @param tooltipOptions
* The tooltip configuration of a GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withTooltipOptions(TooltipOptions tooltipOptions) {
setTooltipOptions(tooltipOptions);
return this;
}
/**
*
* The visual palette configuration of a GaugeChartVisual
.
*
*
* @param visualPalette
* The visual palette configuration of a GaugeChartVisual
.
*/
public void setVisualPalette(VisualPalette visualPalette) {
this.visualPalette = visualPalette;
}
/**
*
* The visual palette configuration of a GaugeChartVisual
.
*
*
* @return The visual palette configuration of a GaugeChartVisual
.
*/
public VisualPalette getVisualPalette() {
return this.visualPalette;
}
/**
*
* The visual palette configuration of a GaugeChartVisual
.
*
*
* @param visualPalette
* The visual palette configuration of a GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withVisualPalette(VisualPalette visualPalette) {
setVisualPalette(visualPalette);
return this;
}
/**
*
* The color configuration of a GaugeChartVisual
.
*
*
* @param colorConfiguration
* The color configuration of a GaugeChartVisual
.
*/
public void setColorConfiguration(GaugeChartColorConfiguration colorConfiguration) {
this.colorConfiguration = colorConfiguration;
}
/**
*
* The color configuration of a GaugeChartVisual
.
*
*
* @return The color configuration of a GaugeChartVisual
.
*/
public GaugeChartColorConfiguration getColorConfiguration() {
return this.colorConfiguration;
}
/**
*
* The color configuration of a GaugeChartVisual
.
*
*
* @param colorConfiguration
* The color configuration of a GaugeChartVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GaugeChartConfiguration withColorConfiguration(GaugeChartColorConfiguration colorConfiguration) {
setColorConfiguration(colorConfiguration);
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 GaugeChartConfiguration 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 (getGaugeChartOptions() != null)
sb.append("GaugeChartOptions: ").append(getGaugeChartOptions()).append(",");
if (getDataLabels() != null)
sb.append("DataLabels: ").append(getDataLabels()).append(",");
if (getTooltipOptions() != null)
sb.append("TooltipOptions: ").append(getTooltipOptions()).append(",");
if (getVisualPalette() != null)
sb.append("VisualPalette: ").append(getVisualPalette()).append(",");
if (getColorConfiguration() != null)
sb.append("ColorConfiguration: ").append(getColorConfiguration()).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 GaugeChartConfiguration == false)
return false;
GaugeChartConfiguration other = (GaugeChartConfiguration) obj;
if (other.getFieldWells() == null ^ this.getFieldWells() == null)
return false;
if (other.getFieldWells() != null && other.getFieldWells().equals(this.getFieldWells()) == false)
return false;
if (other.getGaugeChartOptions() == null ^ this.getGaugeChartOptions() == null)
return false;
if (other.getGaugeChartOptions() != null && other.getGaugeChartOptions().equals(this.getGaugeChartOptions()) == 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.getTooltipOptions() == null ^ this.getTooltipOptions() == null)
return false;
if (other.getTooltipOptions() != null && other.getTooltipOptions().equals(this.getTooltipOptions()) == 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.getColorConfiguration() == null ^ this.getColorConfiguration() == null)
return false;
if (other.getColorConfiguration() != null && other.getColorConfiguration().equals(this.getColorConfiguration()) == 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 + ((getGaugeChartOptions() == null) ? 0 : getGaugeChartOptions().hashCode());
hashCode = prime * hashCode + ((getDataLabels() == null) ? 0 : getDataLabels().hashCode());
hashCode = prime * hashCode + ((getTooltipOptions() == null) ? 0 : getTooltipOptions().hashCode());
hashCode = prime * hashCode + ((getVisualPalette() == null) ? 0 : getVisualPalette().hashCode());
hashCode = prime * hashCode + ((getColorConfiguration() == null) ? 0 : getColorConfiguration().hashCode());
hashCode = prime * hashCode + ((getInteractions() == null) ? 0 : getInteractions().hashCode());
return hashCode;
}
@Override
public GaugeChartConfiguration clone() {
try {
return (GaugeChartConfiguration) 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.GaugeChartConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}