public ListDeviceResourcesResult withResources(ResourceSummary... resources) {
        if (this.resources == null) {
            setResources(new java.util.ArrayList<ResourceSummary>(resources.length));
        }
        for (ResourceSummary ele : resources) {
            this.resources.add(ele);
        }
        return this;
    }
<p>
A structure defining the resource's type, Amazon Resource Name (ARN), and ID.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to
override the existing values.
</p>

@param resources
       A structure defining the resource's type, Amazon Resource Name (ARN), and ID.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/ListDeviceResourcesResult.java