code: public GetTransitGatewayRouteTableAssociationsResult withAssociations(TransitGatewayRouteTableAssociation... associations) {
          if (this.associations == null) {
              setAssociations(new com.amazonaws.internal.SdkInternalList<TransitGatewayRouteTableAssociation>(associations.length));
          }
          for (TransitGatewayRouteTableAssociation ele : associations) {
              this.associations.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the associations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAssociations(java.util.Collection)} or {@link #withAssociations(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param associations
  Information about the associations.
  @return Returns a reference to this object so that method calls can be chained together.