/** * <p> * A list of cache node types and their corresponding values for this parameter. * </p> * * @param cacheNodeTypeSpecificValues * A list of cache node types and their corresponding values for this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNodeTypeSpecificParameter withCacheNodeTypeSpecificValues(java.util.Collection<CacheNodeTypeSpecificValue> cacheNodeTypeSpecificValues) { setCacheNodeTypeSpecificValues(cacheNodeTypeSpecificValues); return this; }
/** * <p> * A list of cache node types and their corresponding values for this parameter. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCacheNodeTypeSpecificValues(java.util.Collection)} or * {@link #withCacheNodeTypeSpecificValues(java.util.Collection)} if you want to override the existing values. * </p> * * @param cacheNodeTypeSpecificValues * A list of cache node types and their corresponding values for this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNodeTypeSpecificParameter withCacheNodeTypeSpecificValues(CacheNodeTypeSpecificValue... cacheNodeTypeSpecificValues) { if (this.cacheNodeTypeSpecificValues == null) { setCacheNodeTypeSpecificValues(new com.amazonaws.internal.SdkInternalList<CacheNodeTypeSpecificValue>(cacheNodeTypeSpecificValues.length)); } for (CacheNodeTypeSpecificValue ele : cacheNodeTypeSpecificValues) { this.cacheNodeTypeSpecificValues.add(ele); } return this; }
/** * <p> * A list of cache node types and their corresponding values for this parameter. * </p> * * @param cacheNodeTypeSpecificValues * A list of cache node types and their corresponding values for this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNodeTypeSpecificParameter withCacheNodeTypeSpecificValues(java.util.Collection<CacheNodeTypeSpecificValue> cacheNodeTypeSpecificValues) { setCacheNodeTypeSpecificValues(cacheNodeTypeSpecificValues); return this; }
/** * <p> * A list of cache node types and their corresponding values for this parameter. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCacheNodeTypeSpecificValues(java.util.Collection)} or * {@link #withCacheNodeTypeSpecificValues(java.util.Collection)} if you want to override the existing values. * </p> * * @param cacheNodeTypeSpecificValues * A list of cache node types and their corresponding values for this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNodeTypeSpecificParameter withCacheNodeTypeSpecificValues(CacheNodeTypeSpecificValue... cacheNodeTypeSpecificValues) { if (this.cacheNodeTypeSpecificValues == null) { setCacheNodeTypeSpecificValues(new com.amazonaws.internal.SdkInternalList<CacheNodeTypeSpecificValue>(cacheNodeTypeSpecificValues.length)); } for (CacheNodeTypeSpecificValue ele : cacheNodeTypeSpecificValues) { this.cacheNodeTypeSpecificValues.add(ele); } return this; }