public SwapEnvironmentCNAMEsRequest withDestinationEnvironmentId(String destinationEnvironmentId) {
        setDestinationEnvironmentId(destinationEnvironmentId);
        return this;
    }
<p>
The ID of the destination environment.
</p>
<p>
Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the
<code>DestinationEnvironmentName</code>. You may also specify both. You must specify the
<code>SourceEnvironmentId</code> with the <code>DestinationEnvironmentId</code>.
</p>

@param destinationEnvironmentId
       The ID of the destination environment.</p>
       <p>
       Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the
       <code>DestinationEnvironmentName</code>. You may also specify both. You must specify the
       <code>SourceEnvironmentId</code> with the <code>DestinationEnvironmentId</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/SwapEnvironmentCNAMEsRequest.java