public Environment withConnectionType(ConnectionType connectionType) {
        this.connectionType = connectionType.toString();
        return this;
    }
<p>
The connection type used for connecting to an Amazon EC2 environment. <code>CONNECT_SSH</code> is selected by
default.
</p>

@param connectionType
       The connection type used for connecting to an Amazon EC2 environment. <code>CONNECT_SSH</code> is selected
       by default.
@return Returns a reference to this object so that method calls can be chained together.
@see ConnectionType
aws-java-sdk-cloud9/src/main/java/com/amazonaws/services/cloud9/model/Environment.java