public FunctionMetadata withStage(FunctionStage stage) {
        this.stage = stage.toString();
        return this;
    }
<p>
The stage that the function is in, either <code>DEVELOPMENT</code> or <code>LIVE</code>.
</p>
<p>
When a function is in the <code>DEVELOPMENT</code> stage, you can test the function with
<code>TestFunction</code>, and update it with <code>UpdateFunction</code>.
</p>
<p>
When a function is in the <code>LIVE</code> stage, you can attach the function to a distribution's cache
behavior, using the function's ARN.
</p>

@param stage
       The stage that the function is in, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p>
       <p>
       When a function is in the <code>DEVELOPMENT</code> stage, you can test the function with
       <code>TestFunction</code>, and update it with <code>UpdateFunction</code>.
       </p>
       <p>
       When a function is in the <code>LIVE</code> stage, you can attach the function to a distribution's cache
       behavior, using the function's ARN.
@return Returns a reference to this object so that method calls can be chained together.
@see FunctionStage
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/FunctionMetadata.java