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

com.amazonaws.services.quicksight.model.KPIConfiguration 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 configuration of a KPI visual. *

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

* The field well configuration of a KPI visual. *

*/ private KPIFieldWells fieldWells; /** *

* The sort configuration of a KPI visual. *

*/ private KPISortConfiguration sortConfiguration; /** *

* The options that determine the presentation of a KPI visual. *

*/ private KPIOptions kPIOptions; /** *

* The general visual interactions setup for a visual. *

*/ private VisualInteractionOptions interactions; /** *

* The field well configuration of a KPI visual. *

* * @param fieldWells * The field well configuration of a KPI visual. */ public void setFieldWells(KPIFieldWells fieldWells) { this.fieldWells = fieldWells; } /** *

* The field well configuration of a KPI visual. *

* * @return The field well configuration of a KPI visual. */ public KPIFieldWells getFieldWells() { return this.fieldWells; } /** *

* The field well configuration of a KPI visual. *

* * @param fieldWells * The field well configuration of a KPI visual. * @return Returns a reference to this object so that method calls can be chained together. */ public KPIConfiguration withFieldWells(KPIFieldWells fieldWells) { setFieldWells(fieldWells); return this; } /** *

* The sort configuration of a KPI visual. *

* * @param sortConfiguration * The sort configuration of a KPI visual. */ public void setSortConfiguration(KPISortConfiguration sortConfiguration) { this.sortConfiguration = sortConfiguration; } /** *

* The sort configuration of a KPI visual. *

* * @return The sort configuration of a KPI visual. */ public KPISortConfiguration getSortConfiguration() { return this.sortConfiguration; } /** *

* The sort configuration of a KPI visual. *

* * @param sortConfiguration * The sort configuration of a KPI visual. * @return Returns a reference to this object so that method calls can be chained together. */ public KPIConfiguration withSortConfiguration(KPISortConfiguration sortConfiguration) { setSortConfiguration(sortConfiguration); return this; } /** *

* The options that determine the presentation of a KPI visual. *

* * @param kPIOptions * The options that determine the presentation of a KPI visual. */ public void setKPIOptions(KPIOptions kPIOptions) { this.kPIOptions = kPIOptions; } /** *

* The options that determine the presentation of a KPI visual. *

* * @return The options that determine the presentation of a KPI visual. */ public KPIOptions getKPIOptions() { return this.kPIOptions; } /** *

* The options that determine the presentation of a KPI visual. *

* * @param kPIOptions * The options that determine the presentation of a KPI visual. * @return Returns a reference to this object so that method calls can be chained together. */ public KPIConfiguration withKPIOptions(KPIOptions kPIOptions) { setKPIOptions(kPIOptions); 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 KPIConfiguration 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 (getKPIOptions() != null) sb.append("KPIOptions: ").append(getKPIOptions()).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 KPIConfiguration == false) return false; KPIConfiguration other = (KPIConfiguration) 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.getKPIOptions() == null ^ this.getKPIOptions() == null) return false; if (other.getKPIOptions() != null && other.getKPIOptions().equals(this.getKPIOptions()) == 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 + ((getKPIOptions() == null) ? 0 : getKPIOptions().hashCode()); hashCode = prime * hashCode + ((getInteractions() == null) ? 0 : getInteractions().hashCode()); return hashCode; } @Override public KPIConfiguration clone() { try { return (KPIConfiguration) 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.KPIConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy