public AgentConfiguration withShouldProfile(Boolean shouldProfile) {
        setShouldProfile(shouldProfile);
        return this;
    }
<p>
A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to
<code>true</code> to enable profiling.
</p>

@param shouldProfile
       A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to
       <code>true</code> to enable profiling.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeguruprofiler/src/main/java/com/amazonaws/services/codeguruprofiler/model/AgentConfiguration.java