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

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

/**
 * 

* An integer parameter for a dataset. *

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

* An identifier for the integer parameter created in the dataset. *

*/ private String id; /** *

* The name of the integer parameter that is created in the dataset. *

*/ private String name; /** *

* The value type of the dataset parameter. Valid values are single value or multi value. *

*/ private String valueType; /** *

* A list of default values for a given integer parameter. This structure only accepts static values. *

*/ private IntegerDatasetParameterDefaultValues defaultValues; /** *

* An identifier for the integer parameter created in the dataset. *

* * @param id * An identifier for the integer parameter created in the dataset. */ public void setId(String id) { this.id = id; } /** *

* An identifier for the integer parameter created in the dataset. *

* * @return An identifier for the integer parameter created in the dataset. */ public String getId() { return this.id; } /** *

* An identifier for the integer parameter created in the dataset. *

* * @param id * An identifier for the integer parameter created in the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public IntegerDatasetParameter withId(String id) { setId(id); return this; } /** *

* The name of the integer parameter that is created in the dataset. *

* * @param name * The name of the integer parameter that is created in the dataset. */ public void setName(String name) { this.name = name; } /** *

* The name of the integer parameter that is created in the dataset. *

* * @return The name of the integer parameter that is created in the dataset. */ public String getName() { return this.name; } /** *

* The name of the integer parameter that is created in the dataset. *

* * @param name * The name of the integer parameter that is created in the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public IntegerDatasetParameter withName(String name) { setName(name); return this; } /** *

* The value type of the dataset parameter. Valid values are single value or multi value. *

* * @param valueType * The value type of the dataset parameter. Valid values are single value or * multi value. * @see DatasetParameterValueType */ public void setValueType(String valueType) { this.valueType = valueType; } /** *

* The value type of the dataset parameter. Valid values are single value or multi value. *

* * @return The value type of the dataset parameter. Valid values are single value or * multi value. * @see DatasetParameterValueType */ public String getValueType() { return this.valueType; } /** *

* The value type of the dataset parameter. Valid values are single value or multi value. *

* * @param valueType * The value type of the dataset parameter. Valid values are single value or * multi value. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetParameterValueType */ public IntegerDatasetParameter withValueType(String valueType) { setValueType(valueType); return this; } /** *

* The value type of the dataset parameter. Valid values are single value or multi value. *

* * @param valueType * The value type of the dataset parameter. Valid values are single value or * multi value. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetParameterValueType */ public IntegerDatasetParameter withValueType(DatasetParameterValueType valueType) { this.valueType = valueType.toString(); return this; } /** *

* A list of default values for a given integer parameter. This structure only accepts static values. *

* * @param defaultValues * A list of default values for a given integer parameter. This structure only accepts static values. */ public void setDefaultValues(IntegerDatasetParameterDefaultValues defaultValues) { this.defaultValues = defaultValues; } /** *

* A list of default values for a given integer parameter. This structure only accepts static values. *

* * @return A list of default values for a given integer parameter. This structure only accepts static values. */ public IntegerDatasetParameterDefaultValues getDefaultValues() { return this.defaultValues; } /** *

* A list of default values for a given integer parameter. This structure only accepts static values. *

* * @param defaultValues * A list of default values for a given integer parameter. This structure only accepts static values. * @return Returns a reference to this object so that method calls can be chained together. */ public IntegerDatasetParameter withDefaultValues(IntegerDatasetParameterDefaultValues defaultValues) { setDefaultValues(defaultValues); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getValueType() != null) sb.append("ValueType: ").append(getValueType()).append(","); if (getDefaultValues() != null) sb.append("DefaultValues: ").append(getDefaultValues()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IntegerDatasetParameter == false) return false; IntegerDatasetParameter other = (IntegerDatasetParameter) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getValueType() == null ^ this.getValueType() == null) return false; if (other.getValueType() != null && other.getValueType().equals(this.getValueType()) == false) return false; if (other.getDefaultValues() == null ^ this.getDefaultValues() == null) return false; if (other.getDefaultValues() != null && other.getDefaultValues().equals(this.getDefaultValues()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getValueType() == null) ? 0 : getValueType().hashCode()); hashCode = prime * hashCode + ((getDefaultValues() == null) ? 0 : getDefaultValues().hashCode()); return hashCode; } @Override public IntegerDatasetParameter clone() { try { return (IntegerDatasetParameter) 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.IntegerDatasetParameterMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy