public RunInstancesRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) {
        setInstanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior);
        return this;
    }
<p>
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
</p>
<p>
Default: <code>stop</code>
</p>

@param instanceInitiatedShutdownBehavior
       Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
       operating system command for system shutdown).</p>
       <p>
       Default: <code>stop</code>
@return Returns a reference to this object so that method calls can be chained together.
@see ShutdownBehavior
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RunInstancesRequest.java