public ApplicationComponent withMonitor(Boolean monitor) {
        setMonitor(monitor);
        return this;
    }
<p>
Indicates whether the application component is monitored.
</p>

@param monitor
       Indicates whether the application component is monitored.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/ApplicationComponent.java