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 response element in the action DescribeDBEngineVersions.

 
 public class CharacterSet implements SerializableCloneable {

    
The name of the character set.
 
     private String characterSetName;

    
The description of the character set.
 
     private String characterSetDescription;

    
The name of the character set.

Returns:
The name of the character set.
 
     public String getCharacterSetName() {
         return ;
     }
    
    
The name of the character set.

Parameters:
characterSetName The name of the character set.
 
     public void setCharacterSetName(String characterSetName) {
         this. = characterSetName;
     }
    
    
The name of the character set.

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

Parameters:
characterSetName The name of the character set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CharacterSet withCharacterSetName(String characterSetName) {
         this. = characterSetName;
         return this;
     }

    
The description of the character set.

Returns:
The description of the character set.
 
     public String getCharacterSetDescription() {
         return ;
     }
    
    
The description of the character set.

Parameters:
characterSetDescription The description of the character set.
 
     public void setCharacterSetDescription(String characterSetDescription) {
         this. = characterSetDescription;
     }
    
    
The description of the character set.

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

Parameters:
characterSetDescription The description of the character set.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CharacterSet withCharacterSetDescription(String characterSetDescription) {
         this. = characterSetDescription;
        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 (getCharacterSetName() != nullsb.append("CharacterSetName: " + getCharacterSetName() + ",");
        if (getCharacterSetDescription() != nullsb.append("CharacterSetDescription: " + getCharacterSetDescription() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getCharacterSetName() == null) ? 0 : getCharacterSetName().hashCode()); 
        hashCode = prime * hashCode + ((getCharacterSetDescription() == null) ? 0 : getCharacterSetDescription().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CharacterSet == falsereturn false;
        CharacterSet other = (CharacterSet)obj;
        
        if (other.getCharacterSetName() == null ^ this.getCharacterSetName() == nullreturn false;
        if (other.getCharacterSetName() != null && other.getCharacterSetName().equals(this.getCharacterSetName()) == falsereturn false
        if (other.getCharacterSetDescription() == null ^ this.getCharacterSetDescription() == nullreturn false;
        if (other.getCharacterSetDescription() != null && other.getCharacterSetDescription().equals(this.getCharacterSetDescription()) == falsereturn false
        return true;
    }
    
    @Override
    public CharacterSet clone() {
        try {
            return (CharacterSetsuper.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