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.rds.model;
 

This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

 
 public class Parameter implements SerializableCloneable {

    
Specifies the name of the parameter.
 
     private String parameterName;

    
Specifies the value of the parameter.
 
     private String parameterValue;

    
Provides a description of the parameter.
 
     private String description;

    
Indicates the source of the parameter value.
 
     private String source;

    
Specifies the engine specific parameters type.
 
     private String applyType;

    
Specifies the valid data type for the parameter.
 
     private String dataType;

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

    
Indicates whether (true) or not (false) 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;

    
Indicates when to apply parameter updates.

Constraints:
Allowed Values: immediate, pending-reboot

 
     private String applyMethod;

    
Default constructor for a new Parameter object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public Parameter() {}
    
    
Specifies the name of the parameter.

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

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

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

Parameters:
parameterName Specifies 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;
    }

    
Specifies the value of the parameter.

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

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

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

Parameters:
parameterValue Specifies 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;
    }

    
Provides a description of the parameter.

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

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

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

Parameters:
description Provides 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;
    }

    
Indicates the source of the parameter value.

Returns:
Indicates the source of the parameter value.
    public String getSource() {
        return ;
    }
    
    
Indicates the source of the parameter value.

Parameters:
source Indicates the source of the parameter value.
    public void setSource(String source) {
        this. = source;
    }
    
    
Indicates the source of the parameter value.

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

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

    
Specifies the engine specific parameters type.

Returns:
Specifies the engine specific parameters type.
    public String getApplyType() {
        return ;
    }
    
    
Specifies the engine specific parameters type.

Parameters:
applyType Specifies the engine specific parameters type.
    public void setApplyType(String applyType) {
        this. = applyType;
    }
    
    
Specifies the engine specific parameters type.

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

Parameters:
applyType Specifies the engine specific parameters type.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Parameter withApplyType(String applyType) {
        this. = applyType;
        return this;
    }

    
Specifies the valid data type for the parameter.

Returns:
Specifies the valid data type for the parameter.
    public String getDataType() {
        return ;
    }
    
    
Specifies the valid data type for the parameter.

Parameters:
dataType Specifies the valid data type for the parameter.
    public void setDataType(String dataType) {
        this. = dataType;
    }
    
    
Specifies the valid data type for the parameter.

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

Parameters:
dataType Specifies the valid data type for 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;
    }

    
Specifies the valid range of values for the parameter.

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

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

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

Parameters:
allowedValues Specifies 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;
    }

    
Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

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

Parameters:
isModifiable Indicates whether (true) or not (false) 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;
    }
    
    
Indicates whether (true) or not (false) 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 Indicates whether (true) or not (false) 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;
    }

    
Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

Returns:
Indicates whether (true) or not (false) 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;
    }

    
Indicates when to apply parameter updates.

Constraints:
Allowed Values: immediate, pending-reboot

Returns:
Indicates when to apply parameter updates.
See also:
ApplyMethod
    public String getApplyMethod() {
        return ;
    }
    
    
Indicates when to apply parameter updates.

Constraints:
Allowed Values: immediate, pending-reboot

Parameters:
applyMethod Indicates when to apply parameter updates.
See also:
ApplyMethod
    public void setApplyMethod(String applyMethod) {
        this. = applyMethod;
    }
    
    
Indicates when to apply parameter updates.

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

Constraints:
Allowed Values: immediate, pending-reboot

Parameters:
applyMethod Indicates when to apply parameter updates.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ApplyMethod
    public Parameter withApplyMethod(String applyMethod) {
        this. = applyMethod;
        return this;
    }

    
Indicates when to apply parameter updates.

Constraints:
Allowed Values: immediate, pending-reboot

Parameters:
applyMethod Indicates when to apply parameter updates.
See also:
ApplyMethod
    public void setApplyMethod(ApplyMethod applyMethod) {
        this. = applyMethod.toString();
    }
    
    
Indicates when to apply parameter updates.

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

Constraints:
Allowed Values: immediate, pending-reboot

Parameters:
applyMethod Indicates when to apply parameter updates.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ApplyMethod
    public Parameter withApplyMethod(ApplyMethod applyMethod) {
        this. = applyMethod.toString();
        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 (getApplyType() != nullsb.append("ApplyType: " + getApplyType() + ",");
        if (getDataType() != nullsb.append("DataType: " + getDataType() + ",");
        if (getAllowedValues() != nullsb.append("AllowedValues: " + getAllowedValues() + ",");
        if (isModifiable() != nullsb.append("IsModifiable: " + isModifiable() + ",");
        if (getMinimumEngineVersion() != nullsb.append("MinimumEngineVersion: " + getMinimumEngineVersion() + ",");
        if (getApplyMethod() != nullsb.append("ApplyMethod: " + getApplyMethod() );
        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 + ((getApplyType() == null) ? 0 : getApplyType().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()); 
        hashCode = prime * hashCode + ((getApplyMethod() == null) ? 0 : getApplyMethod().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.getApplyType() == null ^ this.getApplyType() == nullreturn false;
        if (other.getApplyType() != null && other.getApplyType().equals(this.getApplyType()) == 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
        if (other.getApplyMethod() == null ^ this.getApplyMethod() == nullreturn false;
        if (other.getApplyMethod() != null && other.getApplyMethod().equals(this.getApplyMethod()) == 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