public String getVpcId() {
        return this.vpcId;
    }
<p>
The ID of the VPC that the stack is to be launched into. The VPC must be in the stack's region. All instances are
launched into this VPC. You cannot change the ID later.
</p>
<ul>
<li>
<p>
If your account supports EC2-Classic, the default value is <code>no VPC</code>.
</p>
</li>
<li>
<p>
If your account does not support EC2-Classic, the default value is the default VPC for the specified region.
</p>
</li>
</ul>
<p>
If the VPC ID corresponds to a default VPC and you have specified either the <code>DefaultAvailabilityZone</code>
or the <code>DefaultSubnetId</code> parameter only, OpsWorks Stacks infers the value of the other parameter. If
you specify neither parameter, OpsWorks Stacks sets these parameters to the first valid Availability Zone for the
specified region and the corresponding default VPC subnet ID, respectively.
</p>
<p>
If you specify a nondefault VPC ID, note the following:
</p>
<ul>
<li>
<p>
It must belong to a VPC in your account that is in the specified region.
</p>
</li>
<li>
<p>
You must specify a value for <code>DefaultSubnetId</code>.
</p>
</li>
</ul>
<p>
For more information about how to use OpsWorks Stacks with a VPC, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html">Running a Stack in a VPC</a>.
For more information about default VPC and EC2-Classic, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html">Supported Platforms</a>.
</p>

@return The ID of the VPC that the stack is to be launched into. The VPC must be in the stack's region. All
        instances are launched into this VPC. You cannot change the ID later.</p>
        <ul>
        <li>
        <p>
        If your account supports EC2-Classic, the default value is <code>no VPC</code>.
        </p>
        </li>
        <li>
        <p>
        If your account does not support EC2-Classic, the default value is the default VPC for the specified
        region.
        </p>
        </li>
        </ul>
        <p>
        If the VPC ID corresponds to a default VPC and you have specified either the
        <code>DefaultAvailabilityZone</code> or the <code>DefaultSubnetId</code> parameter only, OpsWorks Stacks
        infers the value of the other parameter. If you specify neither parameter, OpsWorks Stacks sets these
        parameters to the first valid Availability Zone for the specified region and the corresponding default
        VPC subnet ID, respectively.
        </p>
        <p>
        If you specify a nondefault VPC ID, note the following:
        </p>
        <ul>
        <li>
        <p>
        It must belong to a VPC in your account that is in the specified region.
        </p>
        </li>
        <li>
        <p>
        You must specify a value for <code>DefaultSubnetId</code>.
        </p>
        </li>
        </ul>
        <p>
        For more information about how to use OpsWorks Stacks with a VPC, see <a
        href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html">Running a Stack in a
        VPC</a>. For more information about default VPC and EC2-Classic, see <a
        href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html">Supported
        Platforms</a>.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateStackRequest.java