public CreateStackRequest withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups) {
        setUseOpsworksSecurityGroups(useOpsworksSecurityGroups);
        return this;
    }
<p>
Whether to associate the OpsWorks Stacks built-in security groups with the stack's layers.
</p>
<p>
OpsWorks Stacks provides a standard set of built-in security groups, one for each layer, which are associated
with layers by default. With <code>UseOpsworksSecurityGroups</code> you can instead provide your own custom
security groups. <code>UseOpsworksSecurityGroups</code> has the following settings:
</p>
<ul>
<li>
<p>
True - OpsWorks Stacks automatically associates the appropriate built-in security group with each layer (default
setting). You can associate additional security groups with a layer after you create it, but you cannot delete
the built-in security group.
</p>
</li>
<li>
<p>
False - OpsWorks Stacks does not associate built-in security groups with layers. You must create appropriate EC2
security groups and associate a security group with each layer that you create. However, you can still manually
associate a built-in security group with a layer on creation; custom security groups are required only for those
layers that need custom settings.
</p>
</li>
</ul>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html">Create a New Stack</a>.
</p>

@param useOpsworksSecurityGroups
       Whether to associate the OpsWorks Stacks built-in security groups with the stack's layers.</p>
       <p>
       OpsWorks Stacks provides a standard set of built-in security groups, one for each layer, which are
       associated with layers by default. With <code>UseOpsworksSecurityGroups</code> you can instead provide
       your own custom security groups. <code>UseOpsworksSecurityGroups</code> has the following settings:
       </p>
       <ul>
       <li>
       <p>
       True - OpsWorks Stacks automatically associates the appropriate built-in security group with each layer
       (default setting). You can associate additional security groups with a layer after you create it, but you
       cannot delete the built-in security group.
       </p>
       </li>
       <li>
       <p>
       False - OpsWorks Stacks does not associate built-in security groups with layers. You must create
       appropriate EC2 security groups and associate a security group with each layer that you create. However,
       you can still manually associate a built-in security group with a layer on creation; custom security
       groups are required only for those layers that need custom settings.
       </p>
       </li>
       </ul>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html">Create a New
       Stack</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateStackRequest.java