code: public QueryRequest withAttributesToGet(String... attributesToGet) {
          if (this.attributesToGet == null) {
              setAttributesToGet(new java.util.ArrayList<String>(attributesToGet.length));
          }
          for (String ele : attributesToGet) {
              this.attributesToGet.add(ele);
          }
          return this;
      }
docs: <p>
  This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href=
  "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html"
  >AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAttributesToGet(java.util.Collection)} or {@link #withAttributesToGet(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param attributesToGet
  This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a
  href=
  "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html"
  >AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.
  @return Returns a reference to this object so that method calls can be chained together.