code: public CacheCluster withCacheSecurityGroups(CacheSecurityGroupMembership... cacheSecurityGroups) {
          if (this.cacheSecurityGroups == null) {
              setCacheSecurityGroups(new com.amazonaws.internal.SdkInternalList<CacheSecurityGroupMembership>(cacheSecurityGroups.length));
          }
          for (CacheSecurityGroupMembership ele : cacheSecurityGroups) {
              this.cacheSecurityGroups.add(ele);
          }
          return this;
      }
docs: <p>
  A list of cache security group elements, composed of name and status sub-elements.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCacheSecurityGroups(java.util.Collection)} or {@link #withCacheSecurityGroups(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param cacheSecurityGroups
  A list of cache security group elements, composed of name and status sub-elements.
  @return Returns a reference to this object so that method calls can be chained together.