public ListArtifactsResult withArtifacts(Artifact... artifacts) {
        if (this.artifacts == null) {
            setArtifacts(new java.util.ArrayList<Artifact>(artifacts.length));
        }
        for (Artifact ele : artifacts) {
            this.artifacts.add(ele);
        }
        return this;
    }
<p>
A list of artifacts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setArtifacts(java.util.Collection)} or {@link #withArtifacts(java.util.Collection)} if you want to
override the existing values.
</p>

@param artifacts
       A list of artifacts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/ListArtifactsResult.java