code: public ConfigurationItem withRelationships(Relationship... relationships) {
          if (this.relationships == null) {
              setRelationships(new com.amazonaws.internal.SdkInternalList<Relationship>(relationships.length));
          }
          for (Relationship ele : relationships) {
              this.relationships.add(ele);
          }
          return this;
      }
docs: <p>
  A list of related AWS resources.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRelationships(java.util.Collection)} or {@link #withRelationships(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param relationships
  A list of related AWS resources.
  @return Returns a reference to this object so that method calls can be chained together.