public void setMetadataOptions(InstanceMetadataOptionsRequest metadataOptions) {
        this.metadataOptions = metadataOptions;
    }
<p>
The metadata options for the instance. For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">Instance metadata and user
data</a>.
</p>

@param metadataOptions
       The metadata options for the instance. For more information, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">Instance metadata
       and user data</a>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RunInstancesRequest.java