Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.redshift.model;
 

Describes a parameter in a cluster parameter group.

 
 public class Parameter implements SerializableCloneable {

    
The name of the parameter.
 
     private String parameterName;

    
The value of the parameter.
 
     private String parameterValue;

    
A description of the parameter.
 
     private String description;

    
The source of the parameter value, such as "engine-default" or "user".
 
     private String source;

    
The data type of the parameter.
 
     private String dataType;

    
The valid range of values for the parameter.
 
     private String allowedValues;

    
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
 
     private Boolean isModifiable;

    
The earliest engine version to which the parameter can apply.
 
     private String minimumEngineVersion;

    
The name of the parameter.

Returns:
The name of the parameter.
 
     public String getParameterName() {
         return ;
     }
    
    
The name of the parameter.

Parameters:
parameterName The name of the parameter.
 
     public void setParameterName(String parameterName) {
         this. = parameterName;
     }
    
    
The name of the parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameterName The name of the parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Parameter withParameterName(String parameterName) {
         this. = parameterName;
         return this;
     }

    
The value of the parameter.

Returns:
The value of the parameter.
    public String getParameterValue() {
        return ;
    }
    
    
The value of the parameter.

Parameters:
parameterValue The value of the parameter.
    public void setParameterValue(String parameterValue) {
        this. = parameterValue;
    }
    
    
The value of the parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameterValue The value of the parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withParameterValue(String parameterValue) {
        this. = parameterValue;
        return this;
    }

    
A description of the parameter.

Returns:
A description of the parameter.
    public String getDescription() {
        return ;
    }
    
    
A description of the parameter.

Parameters:
description A description of the parameter.
    public void setDescription(String description) {
        this. = description;
    }
    
    
A description of the parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description A description of the parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withDescription(String description) {
        this. = description;
        return this;
    }

    
The source of the parameter value, such as "engine-default" or "user".

Returns:
The source of the parameter value, such as "engine-default" or "user".
    public String getSource() {
        return ;
    }
    
    
The source of the parameter value, such as "engine-default" or "user".

Parameters:
source The source of the parameter value, such as "engine-default" or "user".
    public void setSource(String source) {
        this. = source;
    }
    
    
The source of the parameter value, such as "engine-default" or "user".

Returns a reference to this object so that method calls can be chained together.

Parameters:
source The source of the parameter value, such as "engine-default" or "user".
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withSource(String source) {
        this. = source;
        return this;
    }

    
The data type of the parameter.

Returns:
The data type of the parameter.
    public String getDataType() {
        return ;
    }
    
    
The data type of the parameter.

Parameters:
dataType The data type of the parameter.
    public void setDataType(String dataType) {
        this. = dataType;
    }
    
    
The data type of the parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dataType The data type of the parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withDataType(String dataType) {
        this. = dataType;
        return this;
    }

    
The valid range of values for the parameter.

Returns:
The valid range of values for the parameter.
    public String getAllowedValues() {
        return ;
    }
    
    
The valid range of values for the parameter.

Parameters:
allowedValues The valid range of values for the parameter.
    public void setAllowedValues(String allowedValues) {
        this. = allowedValues;
    }
    
    
The valid range of values for the parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allowedValues The valid range of values for the parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withAllowedValues(String allowedValues) {
        this. = allowedValues;
        return this;
    }

    
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

Returns:
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
    public Boolean isModifiable() {
        return ;
    }
    
    
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

Parameters:
isModifiable If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
    public void setIsModifiable(Boolean isModifiable) {
        this. = isModifiable;
    }
    
    
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
isModifiable If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withIsModifiable(Boolean isModifiable) {
        this. = isModifiable;
        return this;
    }

    
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

Returns:
If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
    public Boolean getIsModifiable() {
        return ;
    }

    
The earliest engine version to which the parameter can apply.

Returns:
The earliest engine version to which the parameter can apply.
    public String getMinimumEngineVersion() {
        return ;
    }
    
    
The earliest engine version to which the parameter can apply.

Parameters:
minimumEngineVersion The earliest engine version to which the parameter can apply.
    public void setMinimumEngineVersion(String minimumEngineVersion) {
        this. = minimumEngineVersion;
    }
    
    
The earliest engine version to which the parameter can apply.

Returns a reference to this object so that method calls can be chained together.

Parameters:
minimumEngineVersion The earliest engine version to which the parameter can apply.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withMinimumEngineVersion(String minimumEngineVersion) {
        this. = minimumEngineVersion;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getParameterName() != nullsb.append("ParameterName: " + getParameterName() + ",");
        if (getParameterValue() != nullsb.append("ParameterValue: " + getParameterValue() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getSource() != nullsb.append("Source: " + getSource() + ",");
        if (getDataType() != nullsb.append("DataType: " + getDataType() + ",");
        if (getAllowedValues() != nullsb.append("AllowedValues: " + getAllowedValues() + ",");
        if (isModifiable() != nullsb.append("IsModifiable: " + isModifiable() + ",");
        if (getMinimumEngineVersion() != nullsb.append("MinimumEngineVersion: " + getMinimumEngineVersion() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getParameterName() == null) ? 0 : getParameterName().hashCode()); 
        hashCode = prime * hashCode + ((getParameterValue() == null) ? 0 : getParameterValue().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); 
        hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); 
        hashCode = prime * hashCode + ((getAllowedValues() == null) ? 0 : getAllowedValues().hashCode()); 
        hashCode = prime * hashCode + ((isModifiable() == null) ? 0 : isModifiable().hashCode()); 
        hashCode = prime * hashCode + ((getMinimumEngineVersion() == null) ? 0 : getMinimumEngineVersion().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof Parameter == falsereturn false;
        Parameter other = (Parameter)obj;
        
        if (other.getParameterName() == null ^ this.getParameterName() == nullreturn false;
        if (other.getParameterName() != null && other.getParameterName().equals(this.getParameterName()) == falsereturn false
        if (other.getParameterValue() == null ^ this.getParameterValue() == nullreturn false;
        if (other.getParameterValue() != null && other.getParameterValue().equals(this.getParameterValue()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getSource() == null ^ this.getSource() == nullreturn false;
        if (other.getSource() != null && other.getSource().equals(this.getSource()) == falsereturn false
        if (other.getDataType() == null ^ this.getDataType() == nullreturn false;
        if (other.getDataType() != null && other.getDataType().equals(this.getDataType()) == falsereturn false
        if (other.getAllowedValues() == null ^ this.getAllowedValues() == nullreturn false;
        if (other.getAllowedValues() != null && other.getAllowedValues().equals(this.getAllowedValues()) == falsereturn false
        if (other.isModifiable() == null ^ this.isModifiable() == nullreturn false;
        if (other.isModifiable() != null && other.isModifiable().equals(this.isModifiable()) == falsereturn false
        if (other.getMinimumEngineVersion() == null ^ this.getMinimumEngineVersion() == nullreturn false;
        if (other.getMinimumEngineVersion() != null && other.getMinimumEngineVersion().equals(this.getMinimumEngineVersion()) == falsereturn false
        return true;
    }
    
    @Override
    public Parameter clone() {
        try {
            return (Parametersuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X