public Instance withSshKeyName(String sshKeyName) {
        setSshKeyName(sshKeyName);
        return this;
    }
<p>
The name of the SSH key being used to connect to the instance (<code>LightsailDefaultKeyPair</code>).
</p>

@param sshKeyName
       The name of the SSH key being used to connect to the instance (<code>LightsailDefaultKeyPair</code>).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/Instance.java