@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getCacheParameterGroupFamily() == null) ? 0 : getCacheParameterGroupFamily().hashCode()); hashCode = prime * hashCode + ((getCacheEngineDescription() == null) ? 0 : getCacheEngineDescription().hashCode()); hashCode = prime * hashCode + ((getCacheEngineVersionDescription() == null) ? 0 : getCacheEngineVersionDescription().hashCode()); return hashCode; }
/** * <p> * The description of the cache engine. * </p> * * @param cacheEngineDescription * The description of the cache engine. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheEngineDescription(String cacheEngineDescription) { setCacheEngineDescription(cacheEngineDescription); return this; }
/** * <p> * The description of the cache engine version. * </p> * * @param cacheEngineVersionDescription * The description of the cache engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheEngineVersionDescription(String cacheEngineVersionDescription) { setCacheEngineVersionDescription(cacheEngineVersionDescription); return this; }
public CacheEngineVersion unmarshall(StaxUnmarshallerContext context) throws Exception { CacheEngineVersion cacheEngineVersion = new CacheEngineVersion(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheEngineVersion.setEngine(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheParameterGroupFamily(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheEngineDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheEngineVersionDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The name of the cache engine. * </p> * * @param engine * The name of the cache engine. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withEngine(String engine) { setEngine(engine); return this; }
/** * <p> * The name of the cache parameter group family associated with this cache engine. * </p> * <p> * Valid values are: <code>memcached1.4</code> | <code>redis2.6</code> | <code>redis2.8</code> | * <code>redis3.2</code> | <code>redis4.0</code> * </p> * * @param cacheParameterGroupFamily * The name of the cache parameter group family associated with this cache engine.</p> * <p> * Valid values are: <code>memcached1.4</code> | <code>redis2.6</code> | <code>redis2.8</code> | * <code>redis3.2</code> | <code>redis4.0</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheParameterGroupFamily(String cacheParameterGroupFamily) { setCacheParameterGroupFamily(cacheParameterGroupFamily); return this; }
public CacheEngineVersion unmarshall(StaxUnmarshallerContext context) throws Exception { CacheEngineVersion cacheEngineVersion = new CacheEngineVersion(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheEngineVersion.setEngine(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheParameterGroupFamily(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheEngineDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheEngineVersion.setCacheEngineVersionDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The name of the cache engine. * </p> * * @param engine * The name of the cache engine. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withEngine(String engine) { setEngine(engine); return this; }
/** * <p> * The name of the cache parameter group family associated with this cache engine. * </p> * <p> * Valid values are: <code>memcached1.4</code> | <code>redis2.6</code> | <code>redis2.8</code> | * <code>redis3.2</code> | <code>redis4.0</code> * </p> * * @param cacheParameterGroupFamily * The name of the cache parameter group family associated with this cache engine.</p> * <p> * Valid values are: <code>memcached1.4</code> | <code>redis2.6</code> | <code>redis2.8</code> | * <code>redis3.2</code> | <code>redis4.0</code> * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheParameterGroupFamily(String cacheParameterGroupFamily) { setCacheParameterGroupFamily(cacheParameterGroupFamily); return this; }
return false; CacheEngineVersion other = (CacheEngineVersion) obj; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getCacheParameterGroupFamily() == null ^ this.getCacheParameterGroupFamily() == null) return false; if (other.getCacheParameterGroupFamily() != null && other.getCacheParameterGroupFamily().equals(this.getCacheParameterGroupFamily()) == false) return false; if (other.getCacheEngineDescription() == null ^ this.getCacheEngineDescription() == null) return false; if (other.getCacheEngineDescription() != null && other.getCacheEngineDescription().equals(this.getCacheEngineDescription()) == false) return false; if (other.getCacheEngineVersionDescription() == null ^ this.getCacheEngineVersionDescription() == null) return false; if (other.getCacheEngineVersionDescription() != null && other.getCacheEngineVersionDescription().equals(this.getCacheEngineVersionDescription()) == false) return false; return true;
/** * <p> * The description of the cache engine. * </p> * * @param cacheEngineDescription * The description of the cache engine. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheEngineDescription(String cacheEngineDescription) { setCacheEngineDescription(cacheEngineDescription); return this; }
/** * <p> * The description of the cache engine version. * </p> * * @param cacheEngineVersionDescription * The description of the cache engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheEngineVersion withCacheEngineVersionDescription(String cacheEngineVersionDescription) { setCacheEngineVersionDescription(cacheEngineVersionDescription); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getCacheParameterGroupFamily() != null) sb.append("CacheParameterGroupFamily: ").append(getCacheParameterGroupFamily()).append(","); if (getCacheEngineDescription() != null) sb.append("CacheEngineDescription: ").append(getCacheEngineDescription()).append(","); if (getCacheEngineVersionDescription() != null) sb.append("CacheEngineVersionDescription: ").append(getCacheEngineVersionDescription()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getCacheParameterGroupFamily() == null) ? 0 : getCacheParameterGroupFamily().hashCode()); hashCode = prime * hashCode + ((getCacheEngineDescription() == null) ? 0 : getCacheEngineDescription().hashCode()); hashCode = prime * hashCode + ((getCacheEngineVersionDescription() == null) ? 0 : getCacheEngineVersionDescription().hashCode()); return hashCode; }
return false; CacheEngineVersion other = (CacheEngineVersion) obj; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getCacheParameterGroupFamily() == null ^ this.getCacheParameterGroupFamily() == null) return false; if (other.getCacheParameterGroupFamily() != null && other.getCacheParameterGroupFamily().equals(this.getCacheParameterGroupFamily()) == false) return false; if (other.getCacheEngineDescription() == null ^ this.getCacheEngineDescription() == null) return false; if (other.getCacheEngineDescription() != null && other.getCacheEngineDescription().equals(this.getCacheEngineDescription()) == false) return false; if (other.getCacheEngineVersionDescription() == null ^ this.getCacheEngineVersionDescription() == null) return false; if (other.getCacheEngineVersionDescription() != null && other.getCacheEngineVersionDescription().equals(this.getCacheEngineVersionDescription()) == false) return false; return true;
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getCacheParameterGroupFamily() != null) sb.append("CacheParameterGroupFamily: ").append(getCacheParameterGroupFamily()).append(","); if (getCacheEngineDescription() != null) sb.append("CacheEngineDescription: ").append(getCacheEngineDescription()).append(","); if (getCacheEngineVersionDescription() != null) sb.append("CacheEngineVersionDescription: ").append(getCacheEngineVersionDescription()); sb.append("}"); return sb.toString(); }