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;
 

Option group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

 
 public class OptionGroupOptionSetting implements SerializableCloneable {

    
The name of the option group option.
 
     private String settingName;

    
The description of the option group option.
 
     private String settingDescription;

    
The default value for the option group option.
 
     private String defaultValue;

    
The DB engine specific parameter type for the option group option.
 
     private String applyType;

    
Indicates the acceptable values for the option group option.
 
     private String allowedValues;

    
Boolean value where true indicates that this option group option can be changed from the default value.
 
     private Boolean isModifiable;

    
The name of the option group option.

Returns:
The name of the option group option.
 
     public String getSettingName() {
         return ;
     }
    
    
The name of the option group option.

Parameters:
settingName The name of the option group option.
 
     public void setSettingName(String settingName) {
         this. = settingName;
     }
    
    
The name of the option group option.

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

Parameters:
settingName The name of the option group option.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public OptionGroupOptionSetting withSettingName(String settingName) {
         this. = settingName;
         return this;
     }

    
The description of the option group option.

Returns:
The description of the option group option.
 
     public String getSettingDescription() {
         return ;
     }
    
    
The description of the option group option.

Parameters:
settingDescription The description of the option group option.
    public void setSettingDescription(String settingDescription) {
        this. = settingDescription;
    }
    
    
The description of the option group option.

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

Parameters:
settingDescription The description of the option group option.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionGroupOptionSetting withSettingDescription(String settingDescription) {
        this. = settingDescription;
        return this;
    }

    
The default value for the option group option.

Returns:
The default value for the option group option.
    public String getDefaultValue() {
        return ;
    }
    
    
The default value for the option group option.

Parameters:
defaultValue The default value for the option group option.
    public void setDefaultValue(String defaultValue) {
        this. = defaultValue;
    }
    
    
The default value for the option group option.

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

Parameters:
defaultValue The default value for the option group option.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionGroupOptionSetting withDefaultValue(String defaultValue) {
        this. = defaultValue;
        return this;
    }

    
The DB engine specific parameter type for the option group option.

Returns:
The DB engine specific parameter type for the option group option.
    public String getApplyType() {
        return ;
    }
    
    
The DB engine specific parameter type for the option group option.

Parameters:
applyType The DB engine specific parameter type for the option group option.
    public void setApplyType(String applyType) {
        this. = applyType;
    }
    
    
The DB engine specific parameter type for the option group option.

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

Parameters:
applyType The DB engine specific parameter type for the option group option.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionGroupOptionSetting withApplyType(String applyType) {
        this. = applyType;
        return this;
    }

    
Indicates the acceptable values for the option group option.

Returns:
Indicates the acceptable values for the option group option.
    public String getAllowedValues() {
        return ;
    }
    
    
Indicates the acceptable values for the option group option.

Parameters:
allowedValues Indicates the acceptable values for the option group option.
    public void setAllowedValues(String allowedValues) {
        this. = allowedValues;
    }
    
    
Indicates the acceptable values for the option group option.

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

Parameters:
allowedValues Indicates the acceptable values for the option group option.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionGroupOptionSetting withAllowedValues(String allowedValues) {
        this. = allowedValues;
        return this;
    }

    
Boolean value where true indicates that this option group option can be changed from the default value.

Returns:
Boolean value where true indicates that this option group option can be changed from the default value.
    public Boolean isModifiable() {
        return ;
    }
    
    
Boolean value where true indicates that this option group option can be changed from the default value.

Parameters:
isModifiable Boolean value where true indicates that this option group option can be changed from the default value.
    public void setIsModifiable(Boolean isModifiable) {
        this. = isModifiable;
    }
    
    
Boolean value where true indicates that this option group option can be changed from the default value.

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

Parameters:
isModifiable Boolean value where true indicates that this option group option can be changed from the default value.
Returns:
A reference to this updated object so that method calls can be chained together.
    public OptionGroupOptionSetting withIsModifiable(Boolean isModifiable) {
        this. = isModifiable;
        return this;
    }

    
Boolean value where true indicates that this option group option can be changed from the default value.

Returns:
Boolean value where true indicates that this option group option can be changed from the default value.
    public Boolean getIsModifiable() {
        return ;
    }

    
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 (getSettingName() != nullsb.append("SettingName: " + getSettingName() + ",");
        if (getSettingDescription() != nullsb.append("SettingDescription: " + getSettingDescription() + ",");
        if (getDefaultValue() != nullsb.append("DefaultValue: " + getDefaultValue() + ",");
        if (getApplyType() != nullsb.append("ApplyType: " + getApplyType() + ",");
        if (getAllowedValues() != nullsb.append("AllowedValues: " + getAllowedValues() + ",");
        if (isModifiable() != nullsb.append("IsModifiable: " + isModifiable() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getSettingName() == null) ? 0 : getSettingName().hashCode()); 
        hashCode = prime * hashCode + ((getSettingDescription() == null) ? 0 : getSettingDescription().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultValue() == null) ? 0 : getDefaultValue().hashCode()); 
        hashCode = prime * hashCode + ((getApplyType() == null) ? 0 : getApplyType().hashCode()); 
        hashCode = prime * hashCode + ((getAllowedValues() == null) ? 0 : getAllowedValues().hashCode()); 
        hashCode = prime * hashCode + ((isModifiable() == null) ? 0 : isModifiable().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof OptionGroupOptionSetting == falsereturn false;
        OptionGroupOptionSetting other = (OptionGroupOptionSetting)obj;
        
        if (other.getSettingName() == null ^ this.getSettingName() == nullreturn false;
        if (other.getSettingName() != null && other.getSettingName().equals(this.getSettingName()) == falsereturn false
        if (other.getSettingDescription() == null ^ this.getSettingDescription() == nullreturn false;
        if (other.getSettingDescription() != null && other.getSettingDescription().equals(this.getSettingDescription()) == falsereturn false
        if (other.getDefaultValue() == null ^ this.getDefaultValue() == nullreturn false;
        if (other.getDefaultValue() != null && other.getDefaultValue().equals(this.getDefaultValue()) == falsereturn false
        if (other.getApplyType() == null ^ this.getApplyType() == nullreturn false;
        if (other.getApplyType() != null && other.getApplyType().equals(this.getApplyType()) == 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
        return true;
    }
    
    @Override
    public OptionGroupOptionSetting clone() {
        try {
            return (OptionGroupOptionSettingsuper.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