code: public DescribeEnvironmentMembershipsResult withMemberships(EnvironmentMember... memberships) {
          if (this.memberships == null) {
              setMemberships(new java.util.ArrayList<EnvironmentMember>(memberships.length));
          }
          for (EnvironmentMember ele : memberships) {
              this.memberships.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the environment members for the environment.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setMemberships(java.util.Collection)} or {@link #withMemberships(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param memberships
  Information about the environment members for the environment.
  @return Returns a reference to this object so that method calls can be chained together.