public SamplingRuleRecord withSamplingRule(SamplingRule samplingRule) {
        setSamplingRule(samplingRule);
        return this;
    }
<p>
The sampling rule.
</p>

@param samplingRule
       The sampling rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-xray/src/main/java/com/amazonaws/services/xray/model/SamplingRuleRecord.java