public void setOutpostArn(String outpostArn) {
        this.outpostArn = outpostArn;
    }
<p>
The Amazon Resource Name (ARN) of the Outpost on which to create the volume.
</p>
<p>
If you intend to use a volume with an instance running on an outpost, then you must create the volume on the same
outpost as the instance. You can't use a volume created in an Amazon Web Services Region with an instance on an
Amazon Web Services outpost, or the other way around.
</p>

@param outpostArn
       The Amazon Resource Name (ARN) of the Outpost on which to create the volume.</p>
       <p>
       If you intend to use a volume with an instance running on an outpost, then you must create the volume on
       the same outpost as the instance. You can't use a volume created in an Amazon Web Services Region with an
       instance on an Amazon Web Services outpost, or the other way around.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVolumeRequest.java