public String getType() {
        return this.type;
    }
<p>
The type of environment. Valid values include the following:
</p>
<ul>
<li>
<p>
<code>ec2</code>: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
</p>
</li>
<li>
<p>
<code>ssh</code>: Your own server connects to the environment.
</p>
</li>
</ul>

@return The type of environment. Valid values include the following:</p>
        <ul>
        <li>
        <p>
        <code>ec2</code>: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
        </p>
        </li>
        <li>
        <p>
        <code>ssh</code>: Your own server connects to the environment.
        </p>
        </li>
@see EnvironmentType
aws-java-sdk-cloud9/src/main/java/com/amazonaws/services/cloud9/model/Environment.java