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;
 

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

 
 public class DBParameterGroup implements SerializableCloneable {

    
Provides the name of the DB parameter group.
 
     private String dBParameterGroupName;

    
Provides the name of the DB parameter group family that this DB parameter group is compatible with.
 
     private String dBParameterGroupFamily;

    
Provides the customer-specified description for this DB parameter group.
 
     private String description;

    
Provides the name of the DB parameter group.

Returns:
Provides the name of the DB parameter group.
 
     public String getDBParameterGroupName() {
         return ;
     }
    
    
Provides the name of the DB parameter group.

Parameters:
dBParameterGroupName Provides the name of the DB parameter group.
 
     public void setDBParameterGroupName(String dBParameterGroupName) {
         this. = dBParameterGroupName;
     }
    
    
Provides the name of the DB parameter group.

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

Parameters:
dBParameterGroupName Provides the name of the DB parameter group.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBParameterGroup withDBParameterGroupName(String dBParameterGroupName) {
         this. = dBParameterGroupName;
         return this;
     }

    
Provides the name of the DB parameter group family that this DB parameter group is compatible with.

Returns:
Provides the name of the DB parameter group family that this DB parameter group is compatible with.
 
     public String getDBParameterGroupFamily() {
         return ;
     }
    
    
Provides the name of the DB parameter group family that this DB parameter group is compatible with.

Parameters:
dBParameterGroupFamily Provides the name of the DB parameter group family that this DB parameter group is compatible with.
 
    public void setDBParameterGroupFamily(String dBParameterGroupFamily) {
        this. = dBParameterGroupFamily;
    }
    
    
Provides the name of the DB parameter group family that this DB parameter group is compatible with.

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

Parameters:
dBParameterGroupFamily Provides the name of the DB parameter group family that this DB parameter group is compatible with.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBParameterGroup withDBParameterGroupFamily(String dBParameterGroupFamily) {
        this. = dBParameterGroupFamily;
        return this;
    }

    
Provides the customer-specified description for this DB parameter group.

Returns:
Provides the customer-specified description for this DB parameter group.
    public String getDescription() {
        return ;
    }
    
    
Provides the customer-specified description for this DB parameter group.

Parameters:
description Provides the customer-specified description for this DB parameter group.
    public void setDescription(String description) {
        this. = description;
    }
    
    
Provides the customer-specified description for this DB parameter group.

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

Parameters:
description Provides the customer-specified description for this DB parameter group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBParameterGroup withDescription(String description) {
        this. = description;
        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 (getDBParameterGroupName() != nullsb.append("DBParameterGroupName: " + getDBParameterGroupName() + ",");
        if (getDBParameterGroupFamily() != nullsb.append("DBParameterGroupFamily: " + getDBParameterGroupFamily() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDBParameterGroupName() == null) ? 0 : getDBParameterGroupName().hashCode()); 
        hashCode = prime * hashCode + ((getDBParameterGroupFamily() == null) ? 0 : getDBParameterGroupFamily().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DBParameterGroup == falsereturn false;
        DBParameterGroup other = (DBParameterGroup)obj;
        
        if (other.getDBParameterGroupName() == null ^ this.getDBParameterGroupName() == nullreturn false;
        if (other.getDBParameterGroupName() != null && other.getDBParameterGroupName().equals(this.getDBParameterGroupName()) == falsereturn false
        if (other.getDBParameterGroupFamily() == null ^ this.getDBParameterGroupFamily() == nullreturn false;
        if (other.getDBParameterGroupFamily() != null && other.getDBParameterGroupFamily().equals(this.getDBParameterGroupFamily()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        return true;
    }
    
    @Override
    public DBParameterGroup clone() {
        try {
            return (DBParameterGroupsuper.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