public void setAttributesToGet(java.util.Collection<String> attributesToGet) {
        if (attributesToGet == null) {
            this.attributesToGet = null;
            return;
        }

        this.attributesToGet = new java.util.ArrayList<String>(attributesToGet);
    }
<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>

@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>.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/ScanRequest.java