public PhysicalResource withAppComponents(AppComponent... appComponents) {
        if (this.appComponents == null) {
            setAppComponents(new java.util.ArrayList<AppComponent>(appComponents.length));
        }
        for (AppComponent ele : appComponents) {
            this.appComponents.add(ele);
        }
        return this;
    }
<p>
The application components that belong to this resource.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAppComponents(java.util.Collection)} or {@link #withAppComponents(java.util.Collection)} if you want
to override the existing values.
</p>

@param appComponents
       The application components that belong to this resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/PhysicalResource.java