public UpdateComponentRequest withDeploymentType(ComponentDeploymentUpdateType deploymentType) {
        this.deploymentType = deploymentType.toString();
        return this;
    }
<p>
The deployment type. It defines the mode for updating a component, as follows:
</p>
<dl>
<dt/>
<dd>
<p>
<code>NONE</code>
</p>
<p>
In this mode, a deployment <i>doesn't</i> occur. Only the requested metadata parameters are updated. You can only
specify <code>description</code> in this mode.
</p>
</dd>
<dt/>
<dd>
<p>
<code>CURRENT_VERSION</code>
</p>
<p>
In this mode, the component is deployed and updated with the new <code>serviceSpec</code>,
<code>templateSource</code>, and/or <code>type</code> that you provide. Only requested parameters are updated.
</p>
</dd>
</dl>

@param deploymentType
       The deployment type. It defines the mode for updating a component, as follows:</p>
       <dl>
       <dt/>
       <dd>
       <p>
       <code>NONE</code>
       </p>
       <p>
       In this mode, a deployment <i>doesn't</i> occur. Only the requested metadata parameters are updated. You
       can only specify <code>description</code> in this mode.
       </p>
       </dd>
       <dt/>
       <dd>
       <p>
       <code>CURRENT_VERSION</code>
       </p>
       <p>
       In this mode, the component is deployed and updated with the new <code>serviceSpec</code>,
       <code>templateSource</code>, and/or <code>type</code> that you provide. Only requested parameters are
       updated.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see ComponentDeploymentUpdateType
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/UpdateComponentRequest.java