public CreateFlowLogsRequest withResourceIds(String... resourceIds) {
        if (this.resourceIds == null) {
            setResourceIds(new com.amazonaws.internal.SdkInternalList<String>(resourceIds.length));
        }
        for (String ele : resourceIds) {
            this.resourceIds.add(ele);
        }
        return this;
    }
<p>
The IDs of the resources to monitor. For example, if the resource type is <code>VPC</code>, specify the IDs of
the VPCs.
</p>
<p>
Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the other resource types.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceIds(java.util.Collection)} or {@link #withResourceIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param resourceIds
       The IDs of the resources to monitor. For example, if the resource type is <code>VPC</code>, specify the
       IDs of the VPCs.</p>
       <p>
       Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the other resource
       types.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateFlowLogsRequest.java