public InstanceSummary withInstanceType(String instanceType) {
        setInstanceType(instanceType);
        return this;
    }
<p>
Information about which environment an instance belongs to in a blue/green deployment.
</p>
<ul>
<li>
<p>
BLUE: The instance is part of the original environment.
</p>
</li>
<li>
<p>
GREEN: The instance is part of the replacement environment.
</p>
</li>
</ul>

@param instanceType
       Information about which environment an instance belongs to in a blue/green deployment.</p>
       <ul>
       <li>
       <p>
       BLUE: The instance is part of the original environment.
       </p>
       </li>
       <li>
       <p>
       GREEN: The instance is part of the replacement environment.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceType
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/InstanceSummary.java