public SavingsPlan withEc2InstanceFamily(String ec2InstanceFamily) {
        setEc2InstanceFamily(ec2InstanceFamily);
        return this;
    }
<p>
The EC2 instance family.
</p>

@param ec2InstanceFamily
       The EC2 instance family.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-savingsplans/src/main/java/com/amazonaws/services/savingsplans/model/SavingsPlan.java