public void setDeploymentTargets(DeploymentTargets deploymentTargets) {
        this.deploymentTargets = deploymentTargets;
    }
<p>
[Service-managed permissions] The Organizations accounts in which to update associated stack instances.
</p>
<p>
To update all the stack instances associated with this stack set, do not specify <code>DeploymentTargets</code>
or <code>Regions</code>.
</p>
<p>
If the stack set update includes changes to the template (that is, if <code>TemplateBody</code> or
<code>TemplateURL</code> is specified), or the <code>Parameters</code>, CloudFormation marks all stack instances
with a status of <code>OUTDATED</code> prior to updating the stack instances in the specified accounts and Amazon
Web Services Regions. If the stack set update doesn't include changes to the template or parameters,
CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack
instances with their existing stack instance status.
</p>

@param deploymentTargets
       [Service-managed permissions] The Organizations accounts in which to update associated stack
       instances.</p>
       <p>
       To update all the stack instances associated with this stack set, do not specify
       <code>DeploymentTargets</code> or <code>Regions</code>.
       </p>
       <p>
       If the stack set update includes changes to the template (that is, if <code>TemplateBody</code> or
       <code>TemplateURL</code> is specified), or the <code>Parameters</code>, CloudFormation marks all stack
       instances with a status of <code>OUTDATED</code> prior to updating the stack instances in the specified
       accounts and Amazon Web Services Regions. If the stack set update doesn't include changes to the template
       or parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while
       leaving all other stack instances with their existing stack instance status.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/UpdateStackSetRequest.java