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

com.amazonaws.services.quicksight.model.NewDefaultValues 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

The 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 that overrides the existing default values for a dataset parameter that is inherited from another * dataset. *

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

* A list of static default values for a given string parameter. *

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

* A list of static default values for a given decimal parameter. *

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

* A list of static default values for a given date time parameter. *

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

* A list of static default values for a given integer parameter. *

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

* A list of static default values for a given string parameter. *

* * @return A list of static default values for a given string parameter. */ public java.util.List getStringStaticValues() { return stringStaticValues; } /** *

* A list of static default values for a given string parameter. *

* * @param stringStaticValues * A list of static default values for a given string parameter. */ public void setStringStaticValues(java.util.Collection stringStaticValues) { if (stringStaticValues == null) { this.stringStaticValues = null; return; } this.stringStaticValues = new java.util.ArrayList(stringStaticValues); } /** *

* A list of static default values for a given string parameter. *

*

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

* * @param stringStaticValues * A list of static default values for a given string parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withStringStaticValues(String... stringStaticValues) { if (this.stringStaticValues == null) { setStringStaticValues(new java.util.ArrayList(stringStaticValues.length)); } for (String ele : stringStaticValues) { this.stringStaticValues.add(ele); } return this; } /** *

* A list of static default values for a given string parameter. *

* * @param stringStaticValues * A list of static default values for a given string parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withStringStaticValues(java.util.Collection stringStaticValues) { setStringStaticValues(stringStaticValues); return this; } /** *

* A list of static default values for a given decimal parameter. *

* * @return A list of static default values for a given decimal parameter. */ public java.util.List getDecimalStaticValues() { return decimalStaticValues; } /** *

* A list of static default values for a given decimal parameter. *

* * @param decimalStaticValues * A list of static default values for a given decimal parameter. */ public void setDecimalStaticValues(java.util.Collection decimalStaticValues) { if (decimalStaticValues == null) { this.decimalStaticValues = null; return; } this.decimalStaticValues = new java.util.ArrayList(decimalStaticValues); } /** *

* A list of static default values for a given decimal parameter. *

*

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

* * @param decimalStaticValues * A list of static default values for a given decimal parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withDecimalStaticValues(Double... decimalStaticValues) { if (this.decimalStaticValues == null) { setDecimalStaticValues(new java.util.ArrayList(decimalStaticValues.length)); } for (Double ele : decimalStaticValues) { this.decimalStaticValues.add(ele); } return this; } /** *

* A list of static default values for a given decimal parameter. *

* * @param decimalStaticValues * A list of static default values for a given decimal parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withDecimalStaticValues(java.util.Collection decimalStaticValues) { setDecimalStaticValues(decimalStaticValues); return this; } /** *

* A list of static default values for a given date time parameter. *

* * @return A list of static default values for a given date time parameter. */ public java.util.List getDateTimeStaticValues() { return dateTimeStaticValues; } /** *

* A list of static default values for a given date time parameter. *

* * @param dateTimeStaticValues * A list of static default values for a given date time parameter. */ public void setDateTimeStaticValues(java.util.Collection dateTimeStaticValues) { if (dateTimeStaticValues == null) { this.dateTimeStaticValues = null; return; } this.dateTimeStaticValues = new java.util.ArrayList(dateTimeStaticValues); } /** *

* A list of static default values for a given date time parameter. *

*

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

* * @param dateTimeStaticValues * A list of static default values for a given date time parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withDateTimeStaticValues(java.util.Date... dateTimeStaticValues) { if (this.dateTimeStaticValues == null) { setDateTimeStaticValues(new java.util.ArrayList(dateTimeStaticValues.length)); } for (java.util.Date ele : dateTimeStaticValues) { this.dateTimeStaticValues.add(ele); } return this; } /** *

* A list of static default values for a given date time parameter. *

* * @param dateTimeStaticValues * A list of static default values for a given date time parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withDateTimeStaticValues(java.util.Collection dateTimeStaticValues) { setDateTimeStaticValues(dateTimeStaticValues); return this; } /** *

* A list of static default values for a given integer parameter. *

* * @return A list of static default values for a given integer parameter. */ public java.util.List getIntegerStaticValues() { return integerStaticValues; } /** *

* A list of static default values for a given integer parameter. *

* * @param integerStaticValues * A list of static default values for a given integer parameter. */ public void setIntegerStaticValues(java.util.Collection integerStaticValues) { if (integerStaticValues == null) { this.integerStaticValues = null; return; } this.integerStaticValues = new java.util.ArrayList(integerStaticValues); } /** *

* A list of static default values for a given integer parameter. *

*

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

* * @param integerStaticValues * A list of static default values for a given integer parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withIntegerStaticValues(Long... integerStaticValues) { if (this.integerStaticValues == null) { setIntegerStaticValues(new java.util.ArrayList(integerStaticValues.length)); } for (Long ele : integerStaticValues) { this.integerStaticValues.add(ele); } return this; } /** *

* A list of static default values for a given integer parameter. *

* * @param integerStaticValues * A list of static default values for a given integer parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public NewDefaultValues withIntegerStaticValues(java.util.Collection integerStaticValues) { setIntegerStaticValues(integerStaticValues); 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 (getStringStaticValues() != null) sb.append("StringStaticValues: ").append(getStringStaticValues()).append(","); if (getDecimalStaticValues() != null) sb.append("DecimalStaticValues: ").append(getDecimalStaticValues()).append(","); if (getDateTimeStaticValues() != null) sb.append("DateTimeStaticValues: ").append(getDateTimeStaticValues()).append(","); if (getIntegerStaticValues() != null) sb.append("IntegerStaticValues: ").append(getIntegerStaticValues()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NewDefaultValues == false) return false; NewDefaultValues other = (NewDefaultValues) obj; if (other.getStringStaticValues() == null ^ this.getStringStaticValues() == null) return false; if (other.getStringStaticValues() != null && other.getStringStaticValues().equals(this.getStringStaticValues()) == false) return false; if (other.getDecimalStaticValues() == null ^ this.getDecimalStaticValues() == null) return false; if (other.getDecimalStaticValues() != null && other.getDecimalStaticValues().equals(this.getDecimalStaticValues()) == false) return false; if (other.getDateTimeStaticValues() == null ^ this.getDateTimeStaticValues() == null) return false; if (other.getDateTimeStaticValues() != null && other.getDateTimeStaticValues().equals(this.getDateTimeStaticValues()) == false) return false; if (other.getIntegerStaticValues() == null ^ this.getIntegerStaticValues() == null) return false; if (other.getIntegerStaticValues() != null && other.getIntegerStaticValues().equals(this.getIntegerStaticValues()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStringStaticValues() == null) ? 0 : getStringStaticValues().hashCode()); hashCode = prime * hashCode + ((getDecimalStaticValues() == null) ? 0 : getDecimalStaticValues().hashCode()); hashCode = prime * hashCode + ((getDateTimeStaticValues() == null) ? 0 : getDateTimeStaticValues().hashCode()); hashCode = prime * hashCode + ((getIntegerStaticValues() == null) ? 0 : getIntegerStaticValues().hashCode()); return hashCode; } @Override public NewDefaultValues clone() { try { return (NewDefaultValues) 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.NewDefaultValuesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy